summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOfer Heifetz <oferh@marvell.com>2015-05-04 12:42:42 +0300
committerRussell King <rmk+kernel@armlinux.org.uk>2019-11-10 23:04:50 +0000
commitd3f0ccf1891bbe21fdd9888bb56bb59ff48ee123 (patch)
treee48d979ae9bba72ddac6885322b54e10dc1533ee
parent6169a0494501daebd3bf4d8ebab708f40bcf6264 (diff)
usb: host: xhci: mvebu: add reset on resume quirk
The resume operation of mvebu xHCI host have some issues, so The XHCI_RESET_ON_RESUME quirk is added for it. Signed-off-by: Ofer Heifetz <oferh@marvell.com> Tested-by: Nadav Haklai <nadavh@marvell.com> Signed-off-by: Grzegorz Jaszczyk <jaz@semihalf.com> Reviewed-by: Lior Amsalem <alior@marvell.com> Tested-by: Lior Amsalem <alior@marvell.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
-rw-r--r--drivers/usb/host/xhci-mvebu.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-mvebu.c b/drivers/usb/host/xhci-mvebu.c
index 60651a50770f..728a51798b11 100644
--- a/drivers/usb/host/xhci-mvebu.c
+++ b/drivers/usb/host/xhci-mvebu.c
@@ -42,6 +42,14 @@ static void xhci_mvebu_mbus_config(void __iomem *base,
}
}
+static void xhci_mvebu_quirks(struct platform_device *pdev)
+{
+ struct usb_hcd *hcd = platform_get_drvdata(pdev);
+ struct xhci_hcd *xhci = hcd_to_xhci(hcd);
+
+ xhci->quirks |= XHCI_RESET_ON_RESUME;
+}
+
int xhci_mvebu_mbus_init_quirk(struct usb_hcd *hcd)
{
struct device *dev = hcd->self.controller;
@@ -71,6 +79,8 @@ int xhci_mvebu_mbus_init_quirk(struct usb_hcd *hcd)
*/
iounmap(base);
+ xhci_mvebu_quirks(pdev);
+
return 0;
}