From: William Wu Date: Tue, 1 Aug 2017 07:15:00 +0000 (+0800) Subject: usb: ehci-platform: use no relinquish port quirk only for rk3288 X-Git-Tag: release-20171130_firefly~4^2~63 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=80e9c60c52382dc5f10d684fc3201404aaec100d;p=firefly-linux-kernel-4.4.55.git usb: ehci-platform: use no relinquish port quirk only for rk3288 rk3288 and rk3288w use the same dts which includes no relinquish port quirk, however rk3288w ohci can work well, so we need to add an additional condition to disable ohci only for rk3288. Change-Id: Ic2bd0ce577cbebe7ae2cf1b153f9e46935022f77 Signed-off-by: William Wu --- diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c index 7866008c4350..bedf6565caa4 100644 --- a/drivers/usb/host/ehci-platform.c +++ b/drivers/usb/host/ehci-platform.c @@ -214,7 +214,8 @@ static int ehci_platform_probe(struct platform_device *dev) "has-transaction-translator")) hcd->has_tt = 1; - if (of_property_read_bool(dev->dev.of_node, + if (of_machine_is_compatible("rockchip,rk3288") && + of_property_read_bool(dev->dev.of_node, "rockchip-relinquish-port")) ehci_platform_hc_driver.relinquish_port = ehci_rockchip_relinquish_port;