37 lines
1.3 KiB
Diff
37 lines
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Andre Przywara <[email protected]>
|
|
Date: Mon, 10 May 2021 11:01:31 +0100
|
|
Subject: drv:phy: sun4i-usb: Allow reset line to be shared
|
|
|
|
The USB HCIs (and PHYs?) in Allwinner's newer generation SoCs (H616)
|
|
rely on the reset line of USB PHY 2 to be de-asserted, even when only
|
|
one of the other PHYs is actually in use.
|
|
|
|
To make those ports work, we include this reset line in the HCIs' resets
|
|
property, which requires this line to be shareable.
|
|
|
|
Change the call to allocate the reset line to mark it as shared, to
|
|
enable the other ports on those SoCs.
|
|
|
|
Signed-off-by: Andre Przywara <[email protected]>
|
|
---
|
|
drivers/phy/allwinner/phy-sun4i-usb.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c
|
|
index 111111111111..222222222222 100644
|
|
--- a/drivers/phy/allwinner/phy-sun4i-usb.c
|
|
+++ b/drivers/phy/allwinner/phy-sun4i-usb.c
|
|
@@ -822,7 +822,7 @@ static int sun4i_usb_phy_probe(struct platform_device *pdev)
|
|
continue;
|
|
|
|
snprintf(name, sizeof(name), "usb%d_reset", i);
|
|
- phy->reset = devm_reset_control_get(dev, name);
|
|
+ phy->reset = devm_reset_control_get_shared(dev, name);
|
|
if (IS_ERR(phy->reset)) {
|
|
if (PTR_ERR(phy->reset) == -ENOENT)
|
|
break;
|
|
--
|
|
Armbian
|
|
|