]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
spi: rzv2h-rspi: make resets optional
authorCosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Wed, 19 Nov 2025 16:14:22 +0000 (18:14 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 24 Nov 2025 14:10:39 +0000 (14:10 +0000)
The Renesas RZ/T2H (R9A09G077) and RZ/N2H (R9A09G087) SoCs don't have
reset lines for the SPI peripheral, make them optional to prepare for
adding support for them.

Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Link: https://patch.msgid.link/20251119161434.595677-2-cosmin-gabriel.tanislav.xa@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rzv2h-rspi.c

index dcc431ba60a9e50a9d5a370cc2eb8143ea96030f..09b9362e9b1fa4b5d7af60be9693e075cc956551 100644 (file)
@@ -384,8 +384,8 @@ static int rzv2h_rspi_probe(struct platform_device *pdev)
 
        rspi->resets[0].id = "presetn";
        rspi->resets[1].id = "tresetn";
-       ret = devm_reset_control_bulk_get_exclusive(dev, RSPI_RESET_NUM,
-                                                   rspi->resets);
+       ret = devm_reset_control_bulk_get_optional_exclusive(dev, RSPI_RESET_NUM,
+                                                            rspi->resets);
        if (ret)
                return dev_err_probe(dev, ret, "cannot get resets\n");