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:
Frank Wang
2017-03-29 18:26:34 +08:00
committed by Tao Huang
parent b8c4606c8e
commit 2eb3227bff
2 changed files with 20 additions and 1 deletions

View File

@@ -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);
}
}