Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm: renesas: rz-du: mipi_dsi: Make "rst" reset control optional for RZ/V2H(P)

In preparation for adding support for the Renesas RZ/V2H(P) SoC, make the
"rst" reset control optional in the MIPI DSI driver. The RZ/V2H(P) SoC
does not provide this reset line, and attempting to acquire it using the
mandatory API causes probe failure.

Switching to devm_reset_control_get_optional_exclusive() ensures
compatibility with both SoCs that provide this reset line and those that
do not, such as RZ/V2H(P).

Co-developed-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20250609225630.502888-6-prabhakar.mahadev-lad.rj@bp.renesas.com

authored by

Lad Prabhakar and committed by
Biju Das
e96bec00 2991c3f0

+1 -1
+1 -1
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
··· 937 937 if (IS_ERR(dsi->vclk)) 938 938 return PTR_ERR(dsi->vclk); 939 939 940 - dsi->rstc = devm_reset_control_get_exclusive(dsi->dev, "rst"); 940 + dsi->rstc = devm_reset_control_get_optional_exclusive(dsi->dev, "rst"); 941 941 if (IS_ERR(dsi->rstc)) 942 942 return dev_err_probe(dsi->dev, PTR_ERR(dsi->rstc), 943 943 "failed to get rst\n");