Skip to content

Commit d460be7

Browse files
ivoszbgvinodkoul
authored andcommitted
phy: phy-snps-eusb2: make repeater optional
As described in the device tree bindings, it's not necessary for the SNPS eUSB2 phy to be connected to a repeater. In configurations where there are such instances, the driver probing fails and the usb controller does not work. Make the repeater optional to avoid that, which also lets us use the eUSB2 phy when it's connected to a repeater that is not configurable by the kernel (for example it's missing a driver), as long as it has been configured beforehand (usually by the bootloader). Signed-off-by: Ivaylo Ivanov <[email protected]> Acked-by: Neil Armstrong <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 3983b4e commit d460be7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/phy/phy-snps-eusb2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ static int snps_eusb2_hsphy_probe(struct platform_device *pdev)
426426
return dev_err_probe(dev, ret,
427427
"failed to get regulator supplies\n");
428428

429-
phy->repeater = devm_of_phy_get_by_index(dev, np, 0);
429+
phy->repeater = devm_of_phy_optional_get(dev, np, 0);
430430
if (IS_ERR(phy->repeater))
431431
return dev_err_probe(dev, PTR_ERR(phy->repeater),
432432
"failed to get repeater\n");

0 commit comments

Comments
 (0)