[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <464e68fd-7175-4de1-b037-3a40c1e134c5@wanadoo.fr>
Date: Thu, 20 Jun 2024 19:23:45 +0200
From: Christophe JAILLET <christophe.jaillet@...adoo.fr>
To: Chen Ni <nichen@...as.ac.cn>, neil.armstrong@...aro.org,
quic_jesszhan@...cinc.com, maarten.lankhorst@...ux.intel.com,
mripard@...nel.org, tzimmermann@...e.de, airlied@...il.com, daniel@...ll.ch
Cc: dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] drm/panel: ltk050h3146w: add check for
mipi_dsi_dcs_enter_sleep_mode
Le 20/06/2024 à 09:47, Chen Ni a écrit :
> Add check for the return value of mipi_dsi_dcs_enter_sleep_mode() and
> return the error if it fails in order to catch the error.
>
> Signed-off-by: Chen Ni <nichen@...as.ac.cn>
> ---
> drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c b/drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c
> index 292aa26a456d..24bf05d0589f 100644
> --- a/drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c
> +++ b/drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c
> @@ -526,7 +526,7 @@ static int ltk050h3146w_unprepare(struct drm_panel *panel)
> return ret;
> }
>
> - mipi_dsi_dcs_enter_sleep_mode(dsi);
> + ret = mipi_dsi_dcs_enter_sleep_mode(dsi);
> if (ret < 0) {
> dev_err(ctx->dev, "failed to enter sleep mode: %d\n", ret);
> return ret;
Reviewed-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
See:
https://lore.kernel.org/all/588e8b4519487f6d33419c4b0fa7f8ea1b26cb58.1619869792.git.christophe.jaillet@wanadoo.fr/
which never got any feedback.
CJ
Powered by blists - more mailing lists