[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AAsA8gAQCF1C9rDJm0RSQaqC.3.1588820955909.Hmail.bernard@vivo.com>
Date: Thu, 7 May 2020 11:09:15 +0800 (GMT+08:00)
From: Bernard <bernard@...o.com>
To: Bernard Zhao <bernard@...o.com>
Cc: Neil Armstrong <narmstrong@...libre.com>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
Kevin Hilman <khilman@...libre.com>,
dri-devel@...ts.freedesktop.org, linux-amlogic@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
opensource.kernel@...o.com
Subject: Re:[PATCH] drm/meson: pm resume add return errno branch
From: Bernard Zhao <bernard@...o.com>
Date: 2020-04-28 21:17:47
To: Neil Armstrong <narmstrong@...libre.com>,David Airlie <airlied@...ux.ie>,Daniel Vetter <daniel@...ll.ch>,Kevin Hilman <khilman@...libre.com>,dri-devel@...ts.freedesktop.org,linux-amlogic@...ts.infradead.org,linux-arm-kernel@...ts.infradead.org,linux-kernel@...r.kernel.org
Cc: opensource.kernel@...o.com,Bernard Zhao <bernard@...o.com>
Subject: [PATCH] drm/meson: pm resume add return errno branch>pm_resump api did not handle drm_mode_config_helper_resume error.
>This change add handle to return drm_mode_config_helper_resume`s
>error number. This code logic is aligned with api pm_suspend.
>After this change, the code maybe a bit readable.
>
>Signed-off-by: Bernard Zhao <bernard@...o.com>
>---
> drivers/gpu/drm/meson/meson_drv.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
>diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu/drm/meson/meson_drv.c
>index b5f5eb7b4bb9..8c2e1b47e81a 100644
>--- a/drivers/gpu/drm/meson/meson_drv.c
>+++ b/drivers/gpu/drm/meson/meson_drv.c
>@@ -412,9 +412,7 @@ static int __maybe_unused meson_drv_pm_resume(struct device *dev)
> if (priv->afbcd.ops)
> priv->afbcd.ops->init(priv);
>
>- drm_mode_config_helper_resume(priv->drm);
>-
>- return 0;
>+ return drm_mode_config_helper_resume(priv->drm);
> }
>
> static int compare_of(struct device *dev, void *data)
>--
>2.26.2
>
Powered by blists - more mailing lists