]> www.infradead.org Git - users/willy/xarray.git/commitdiff
phy: phy-snps-eusb2: make reset control optional
authorIvaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
Sun, 4 May 2025 14:45:24 +0000 (17:45 +0300)
committerVinod Koul <vkoul@kernel.org>
Wed, 14 May 2025 10:43:38 +0000 (11:43 +0100)
Not all SoCs expose the reset line controls to the kernel, so make them
optional.

Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20250504144527.1723980-8-ivo.ivanov.ivanov1@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/phy-snps-eusb2.c

index 4094786d273707bebe5fefbf538596bffdcdb6e2..f05333901cd45dc361c8c2c8c2d9da7b16d37f31 100644 (file)
@@ -408,7 +408,7 @@ static int snps_eusb2_hsphy_probe(struct platform_device *pdev)
        if (IS_ERR(phy->base))
                return PTR_ERR(phy->base);
 
-       phy->phy_reset = devm_reset_control_get_exclusive(dev, NULL);
+       phy->phy_reset = devm_reset_control_get_optional_exclusive(dev, NULL);
        if (IS_ERR(phy->phy_reset))
                return PTR_ERR(phy->phy_reset);