summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>2026-04-30 11:09:29 +0100
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-07-31 09:47:07 +0200
commit284a6530a4e9dd19edaaafdd0398945fc54b0601 (patch)
tree12a6f170ec20584c7da7df7ca35b18c29cf553f0 /drivers
parente98a1f15787430ed131207e83ba2f2b35dafafe3 (diff)
downloadlinux-284a6530a4e9dd19edaaafdd0398945fc54b0601.tar.gz
linux-284a6530a4e9dd19edaaafdd0398945fc54b0601.zip
media: renesas: vsp1: Make reset control optional to support platforms without a reset line
Switch the VSP1 driver to use devm_reset_control_get_optional_shared() when requesting its reset control. Some newer Renesas SoCs integrating VSP1 such as RZ/T2H do not provide a reset line for the VSP IP block. 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/20260430100929.1088281-4-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/platform/renesas/vsp1/vsp1_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/renesas/vsp1/vsp1_drv.c b/drivers/media/platform/renesas/vsp1/vsp1_drv.c
index 627b5046fa80..605fac57bd93 100644
--- a/drivers/media/platform/renesas/vsp1/vsp1_drv.c
+++ b/drivers/media/platform/renesas/vsp1/vsp1_drv.c
@@ -947,7 +947,7 @@ static int vsp1_probe(struct platform_device *pdev)
if (irq < 0)
return irq;
- vsp1->rstc = devm_reset_control_get_shared(&pdev->dev, NULL);
+ vsp1->rstc = devm_reset_control_get_optional_shared(&pdev->dev, NULL);
if (IS_ERR(vsp1->rstc))
return dev_err_probe(&pdev->dev, PTR_ERR(vsp1->rstc),
"failed to get reset control\n");