mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 23:59:33 -04:00
drm: renesas: rz-du: Make DU reset control optional for RZ/T2H support
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user