usb: ehci: add rockchip relinquishing port quirk support
Add a quirk to support rockchip relinquishing port from abnormal ohci to ehci when FS/LS devices plug in. To support this function, the rockchip-relinquish-port property must be specified in ehci node of dt. Change-Id: I91b58905132282ef2a836d54a1c7ace1e334d119 Signed-off-by: William Wu <william.wu@rock-chips.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
This commit is contained in:
@@ -5272,7 +5272,8 @@ loop:
|
||||
done:
|
||||
hub_port_disable(hub, port1, 1);
|
||||
if (hcd->driver->relinquish_port && !hub->hdev->parent) {
|
||||
if (status != -ENOTCONN && status != -ENODEV)
|
||||
if ((status != -ENOTCONN && status != -ENODEV) ||
|
||||
(status == -ENOTCONN && of_machine_is_compatible("rockchip,rk3288")))
|
||||
hcd->driver->relinquish_port(hcd, port1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user