From: Liu Ying <victor.liu@nxp.com>
To: Biju <biju.das.au@gmail.com>,
Andrzej Hajda <andrzej.hajda@intel.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Robert Foss <rfoss@kernel.org>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>
Cc: Biju Das <biju.das.jz@bp.renesas.com>,
Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
Jonas Karlman <jonas@kwiboo.se>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
Geert Uytterhoeven <geert+renesas@glider.be>,
Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>,
linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH] drm/bridge: ite-it6263: Add basic resume support
Date: Thu, 16 Apr 2026 13:53:13 +0800 [thread overview]
Message-ID: <69e04806-5ad5-46f4-b65b-c88af477fd94@nxp.com> (raw)
In-Reply-To: <20260415113954.179006-1-biju.das.jz@bp.renesas.com>
Hi Biju,
On Wed, Apr 15, 2026 at 12:39:52PM +0100, Biju wrote:
> [You don't often get email from biju.das.au@gmail.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> From: Biju Das <biju.das.jz@bp.renesas.com>
>
> RZ/G3L SMARC EVK has a single-link LVDS connected to an ITE IT6263 chip.
> On the RZ/G3L SMARC EVK using PSCI, s2ram powers down the ITE IT6263 chip.
> Add a minimal system resume callback to restore the bridge after s2ram.
> The it6263_resume() callback re-establishes the LVDS I2C address and
> reconfigures the LVDS output. Wire it into a dev_pm_ops struct using
> SET_SYSTEM_SLEEP_PM_OPS with no suspend handler, and attach it to the
> driver via pm_sleep_ptr().
drm_mode_config_helper_{suspend,resume} called by a display controller
driver's system PM callbacks should be able to kind of provide system
PM for this bridge through this bridge driver's atomic_{disable,enable}
callbacks. To do this, regulator enablement, GPIO reset control and
bridge initialization need to be moved from probe to atomic_enable,
plus regulator disablement needs to be added to atomic_disable.
The bridge initialization includes it6263_lvds_set_i2c_addr(),
it6263_lvds_config() and it6263_hdmi_config(). Make sense?
>
> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
> ---
> drivers/gpu/drm/bridge/ite-it6263.c | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
>
> diff --git a/drivers/gpu/drm/bridge/ite-it6263.c b/drivers/gpu/drm/bridge/ite-it6263.c
> index 4f3ebb7af4d4..9727ebef48e8 100644
> --- a/drivers/gpu/drm/bridge/ite-it6263.c
> +++ b/drivers/gpu/drm/bridge/ite-it6263.c
> @@ -906,6 +906,24 @@ static int it6263_probe(struct i2c_client *client)
> return devm_drm_bridge_add(dev, &it->bridge);
> }
>
> +static int it6263_resume(struct device *dev)
> +{
> + struct it6263 *it = dev_get_drvdata(dev);
> + int ret;
> +
> + ret = it6263_lvds_set_i2c_addr(it);
> + if (ret)
> + return ret;
> +
> + it6263_lvds_config(it);
> +
> + return 0;
> +}
> +
> +static const struct dev_pm_ops it6263_pm_ops = {
> + SET_SYSTEM_SLEEP_PM_OPS(NULL, it6263_resume)
> +};
> +
> static const struct of_device_id it6263_of_match[] = {
> { .compatible = "ite,it6263", },
> { }
> @@ -922,6 +940,7 @@ static struct i2c_driver it6263_driver = {
> .probe = it6263_probe,
> .driver = {
> .name = "it6263",
> + .pm = pm_sleep_ptr(&it6263_pm_ops),
> .of_match_table = it6263_of_match,
> },
> .id_table = it6263_i2c_ids,
> --
> 2.43.0
>
--
Regards,
Liu Ying
next prev parent reply other threads:[~2026-04-16 5:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-15 11:39 Biju
2026-04-16 5:53 ` Liu Ying [this message]
2026-04-16 8:25 ` Biju Das
2026-04-22 9:37 ` kernel test robot
2026-04-22 9:43 ` Biju Das
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=69e04806-5ad5-46f4-b65b-c88af477fd94@nxp.com \
--to=victor.liu@nxp.com \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=andrzej.hajda@intel.com \
--cc=biju.das.au@gmail.com \
--cc=biju.das.jz@bp.renesas.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=geert+renesas@glider.be \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
--cc=rfoss@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/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®