From: "Guido Günther" <agx@sigxcpu.org>
To: Liu Ying <victor.liu@nxp.com>
Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
a.hajda@samsung.com, narmstrong@baylibre.com,
robert.foss@linaro.org, Laurent.pinchart@ideasonboard.com,
jonas@kwiboo.se, jernej.skrabec@siol.net, airlied@linux.ie,
daniel@ffwll.ch, robert.chiras@nxp.com, linux-imx@nxp.com
Subject: Re: [PATCH v3 0/3] drm/bridge: nwl-dsi: Get MIPI DSI controller and PHY ready in ->mode_set()
Date: Fri, 30 Apr 2021 11:17:52 +0200 [thread overview]
Message-ID: <YIvLQLEjWjCFVmXI@bogon.m.sigxcpu.org> (raw)
In-Reply-To: <1619170003-4817-1-git-send-email-victor.liu@nxp.com>
Hi Liu,
On Fri, Apr 23, 2021 at 05:26:40PM +0800, Liu Ying wrote:
> Hi,
>
> This series aims to make the nwl-dsi bridge be able to connect with
> more MIPI DSI panels. Some MIPI DSI panel drivers like 'raydium,rm68200'
> send MIPI_DCS_SET_DISPLAY_ON commands in panel_funcs->prepare(), which
> requires the MIPI DSI controller and PHY to be ready beforehand.
> However, the existing nwl-dsi driver gets the MIPI DSI controller and
> PHY ready in bridge_funcs->pre_enable(), which happens after the
> panel_funcs->prepare(). So, this series shifts the bridge operation
> ealier from bridge_funcs->pre_enable() to bridge_funcs->mode_set().
>
> Patch 3/3 does the essential bridge operation shift.
>
> Patch 1/3 and 2/3 are split from the original single patch in v2 and
> are needed by patch 3/3. This split-up helps clarify changes better.
> The split-up is done in this way:
>
> 1) Patch 1/3 forces a full modeset when crtc_state->active is changed to
> be true(which implies only connector's DPMS is brought out of "Off"
> status, though not necessarily). This makes sure ->mode_set() and
> ->atomic_disable() will be called in pairs.
> 2) Patch 2/3 removes a check on unchanged HS clock rate from ->mode_set(),
> to make sure MIPI DSI controller and PHY are brought up and taken down
> in pairs.
> 3) Patch 3/3 shifts the bridge operation as the last step.
Looks good to me and tested on imx8mq Librem 5 Devkit with
https://lore.kernel.org/linux-arm-kernel/cover.1617968250.git.agx@sigxcpu.org/
on top so
Reviewed-by: Guido Günther <agx@sigxcpu.org>
Tested-by: Guido Günther <agx@sigxcpu.org>
Cheers,
-- Guido
>
>
> v2->v3:
> * Split the single patch in v2 into 3 patches. (Neil)
>
> v1->v2:
> * Fix a typo in commit message - s/unchange/unchanged/
>
>
> Liu Ying (3):
> drm/bridge: nwl-dsi: Force a full modeset when crtc_state->active is
> changed to be true
> drm/bridge: nwl-dsi: Remove a check on unchanged HS clock rate from
> ->mode_set()
> drm/bridge: nwl-dsi: Get MIPI DSI controller and PHY ready in
> ->mode_set()
>
> drivers/gpu/drm/bridge/nwl-dsi.c | 86 +++++++++++++++++---------------
> 1 file changed, 46 insertions(+), 40 deletions(-)
>
> --
> 2.25.1
>
prev parent reply other threads:[~2021-04-30 9:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-23 9:26 Liu Ying
2021-04-23 9:26 ` [PATCH v3 1/3] drm/bridge: nwl-dsi: Force a full modeset when crtc_state->active is changed to be true Liu Ying
2021-04-30 8:35 ` Neil Armstrong
[not found] ` <CAG3jFytcPzo81t8hubAf4Gb1zrVzZVB5D6qP-Dnchef6Zus25Q@mail.gmail.com>
2021-04-30 11:45 ` Liu Ying
2021-04-23 9:26 ` [PATCH v3 2/3] drm/bridge: nwl-dsi: Remove a check on unchanged HS clock rate from ->mode_set() Liu Ying
2021-04-30 8:35 ` Neil Armstrong
2021-04-23 9:26 ` [PATCH v3 3/3] drm/bridge: nwl-dsi: Get MIPI DSI controller and PHY ready in ->mode_set() Liu Ying
2021-04-30 8:35 ` Neil Armstrong
2021-04-30 8:35 ` [PATCH v3 0/3] " Neil Armstrong
2021-04-30 9:17 ` Guido Günther [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YIvLQLEjWjCFVmXI@bogon.m.sigxcpu.org \
--to=agx@sigxcpu.org \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=a.hajda@samsung.com \
--cc=airlied@linux.ie \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=jernej.skrabec@siol.net \
--cc=jonas@kwiboo.se \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=narmstrong@baylibre.com \
--cc=robert.chiras@nxp.com \
--cc=robert.foss@linaro.org \
--cc=victor.liu@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®