[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b28e86f1-3730-4739-9499-24bed32c16b9@linaro.org>
Date: Fri, 13 Sep 2024 10:04:53 +0200
From: Neil Armstrong <neil.armstrong@...aro.org>
To: Jonas Karlman <jonas@...boo.se>, Andrzej Hajda <andrzej.hajda@...el.com>,
Robert Foss <rfoss@...nel.org>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>, Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>,
Laurent Pinchart <Laurent.pinchart@...asonboard.com>,
Jernej Skrabec <jernej.skrabec@...il.com>
Cc: Christian Hewitt <christianshewitt@...il.com>,
Diederik de Haas <didi.debian@...ow.org>,
Christopher Obbard <chris.obbard@...labora.com>,
dri-devel@...ts.freedesktop.org, linux-rockchip@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 04/10] drm: bridge: dw_hdmi: Use passed mode instead of
stored previous_mode
On 08/09/2024 15:28, Jonas Karlman wrote:
> Use the passed mode instead of mixing use of passed mode and the stored
> previous_mode. The passed mode is currenly always the previous_mode.
>
> Also fix a small typo and add a variable to help shorten a code line.
>
> Signed-off-by: Jonas Karlman <jonas@...boo.se>
> ---
> v2: Update commit message, s/type/typo/
> ---
> drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 9 ++++-----
> 1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
> index 5b67640b1d0a..87fb6fd5cffd 100644
> --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
> +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
> @@ -2240,6 +2240,7 @@ static int dw_hdmi_setup(struct dw_hdmi *hdmi,
> const struct drm_connector *connector,
> const struct drm_display_mode *mode)
> {
> + const struct drm_display_info *display = &connector->display_info;
> int ret;
>
> hdmi_disable_overflow_interrupts(hdmi);
> @@ -2285,12 +2286,10 @@ static int dw_hdmi_setup(struct dw_hdmi *hdmi,
> hdmi->hdmi_data.video_mode.mdataenablepolarity = true;
>
> /* HDMI Initialization Step B.1 */
> - hdmi_av_composer(hdmi, &connector->display_info, mode);
> + hdmi_av_composer(hdmi, display, mode);
>
> - /* HDMI Initializateion Step B.2 */
> - ret = hdmi->phy.ops->init(hdmi, hdmi->phy.data,
> - &connector->display_info,
> - &hdmi->previous_mode);
> + /* HDMI Initialization Step B.2 */
> + ret = hdmi->phy.ops->init(hdmi, hdmi->phy.data, display, mode);
> if (ret)
> return ret;
> hdmi->phy.enabled = true;
Reviewed-by: Neil Armstrong <neil.armstrong@...aro.org>
Powered by blists - more mailing lists