]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm: renesas: rz-du: Make DU reset control optional for RZ/T2H support
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Tue, 19 May 2026 16:08:23 +0000 (17:08 +0100)
committerBiju Das <biju.das.jz@bp.renesas.com>
Fri, 22 May 2026 06:17:01 +0000 (07:17 +0100)
Update the DU CRTC initialisation to request the reset control using
devm_reset_control_get_optional_shared(). On RZ/T2H SoCs the DU block does
not expose a reset line, and treating the reset as mandatory prevents the
driver from probing on those platforms.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Link: https://patch.msgid.link/20260519160825.4082566-4-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
drivers/gpu/drm/renesas/rz-du/rzg2l_du_crtc.c

index 26b95153ce8818e0dc90ee09e22a50b72ffe0475..48065f4952a3ecb0d4ec792703dac6be54297caf 100644 (file)
@@ -380,7 +380,7 @@ int rzg2l_du_crtc_create(struct rzg2l_du_device *rcdu)
        struct drm_plane *primary;
        int ret;
 
-       rcrtc->rstc = devm_reset_control_get_shared(rcdu->dev, NULL);
+       rcrtc->rstc = devm_reset_control_get_optional_shared(rcdu->dev, NULL);
        if (IS_ERR(rcrtc->rstc)) {
                dev_err(rcdu->dev, "can't get cpg reset\n");
                return PTR_ERR(rcrtc->rstc);