]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/bridge: ite-it6263: Move chip initialization code from probe to atomic_enable
authorBiju Das <biju.das.jz@bp.renesas.com>
Fri, 1 May 2026 06:11:58 +0000 (07:11 +0100)
committerLiu Ying <victor.liu@nxp.com>
Wed, 6 May 2026 05:43:01 +0000 (13:43 +0800)
commit6d0cc72b3ad5a631d7ecb2c14de82ca0c2a1ceda
tree49c987ab36b07fd664a2894b188bbdc51c720c51
parent3cc5d7a595197e4438f8f5a4f8cc53497fb7aed6
drm/bridge: ite-it6263: Move chip initialization code from probe to atomic_enable

On the RZ/G3L SMARC EVK, suspend to RAM powers down the ITE IT6263 chip.
The display controller driver's system PM callbacks invoke
drm_mode_config_helper_{suspend,resume}, which in turn call the bridge's
atomic_{disable,enable} callbacks to handle suspend/resume for the bridge
without dedicated PM ops.

To support proper reinitialization after power loss, move reset_gpio into
the it6263 struct so it is accessible beyond probe time. Relocate
it6263_hw_reset(), it6263_lvds_set_i2c_addr(), it6263_lvds_config() and
it6263_hdmi_config() from probe to atomic_enable, ensuring the chip is
fully reset and reconfigured on every enable, including after a
suspend/resume cycle.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Liu Ying <victor.liu@nxp.com>
Link: https://patch.msgid.link/20260501061200.20129-1-biju.das.jz@bp.renesas.com
Signed-off-by: Liu Ying <victor.liu@nxp.com>
drivers/gpu/drm/bridge/ite-it6263.c