]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm: renesas: rzg2l_mipi_dsi: Fix deassert/assert of CMN_RSTB signal
authorBiju Das <biju.das.jz@bp.renesas.com>
Mon, 30 Mar 2026 10:44:46 +0000 (11:44 +0100)
committerBiju Das <biju.das.jz@bp.renesas.com>
Thu, 16 Apr 2026 05:54:10 +0000 (06:54 +0100)
commit8065890f5cda3f8a503f3b9d326aab0e9cca39e7
tree47bb518361c6f04c023b0ad60a706128454cb7d6
parent7cbba8a8ba0219a267844d3116dbc77cecb4fcf8
drm: renesas: rzg2l_mipi_dsi: Fix deassert/assert of CMN_RSTB signal

The RZ/G2L hardware manual (Rev. 1.50, May 2025), Section 34.4.2.1,
requires deasserting the CMN_RSTB signal after setting the Link registers.
Move the reset_control_deassert() call from rzg2l_mipi_dsi_dphy_init() to
rzg2l_mipi_dsi_startup(), placing it after the Link register writes. This
reset signal is optional for RZ/V2H SoCs, so add a NULL check. Drop the
unused ret variable from rzg2l_mipi_dsi_dphy_init().

The CMN_RSTB signal is not required for reading PHY registers in the
probe. Move reset_control_assert() from rzg2l_mipi_dsi_dphy_exit() to
rzg2l_mipi_dsi_stop(), placing it before the dphy_exit() call. Since this
reset signal is optional for RZ/V2H, the call is a no-op on that SoC.

Tested-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Reviewed-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Link: https://patch.msgid.link/20260330104450.128512-4-biju.das.jz@bp.renesas.com
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c