Re: [PATCH 1/8] drm/panel: himax-hx8394: Handle errors from mipi_dsi_dcs_set_display_on() better

2024-05-19 Thread Dmitry Baryshkov
On Fri, May 17, 2024 at 02:36:36PM -0700, Douglas Anderson wrote: > If mipi_dsi_dcs_set_display_on() returned an error then we'd store > that in the "ret" variable and jump to error handling. We'd then > attempt an orderly poweroff. Unfortunately we then blew away the value > stored in "ret". That

[PATCH 1/8] drm/panel: himax-hx8394: Handle errors from mipi_dsi_dcs_set_display_on() better

2024-05-17 Thread Douglas Anderson
If mipi_dsi_dcs_set_display_on() returned an error then we'd store that in the "ret" variable and jump to error handling. We'd then attempt an orderly poweroff. Unfortunately we then blew away the value stored in "ret". That means that if the orderly poweroff actually worked then we're return 0 (no