From: Ivaylo Ivanov Date: Sun, 4 May 2025 14:45:24 +0000 (+0300) Subject: phy: phy-snps-eusb2: make reset control optional X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=aba7a966b50d11deeb3e2f1a66182d150eeb7843;p=users%2Fwilly%2Fxarray.git phy: phy-snps-eusb2: make reset control optional Not all SoCs expose the reset line controls to the kernel, so make them optional. Signed-off-by: Ivaylo Ivanov Reviewed-by: Dmitry Baryshkov Link: https://lore.kernel.org/r/20250504144527.1723980-8-ivo.ivanov.ivanov1@gmail.com Signed-off-by: Vinod Koul --- diff --git a/drivers/phy/phy-snps-eusb2.c b/drivers/phy/phy-snps-eusb2.c index 4094786d2737..f05333901cd4 100644 --- a/drivers/phy/phy-snps-eusb2.c +++ b/drivers/phy/phy-snps-eusb2.c @@ -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);