diff options
author | Ofer Heifetz <oferh@marvell.com> | 2015-05-04 12:42:42 +0300 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2021-09-19 19:53:00 +0100 |
commit | a6c063b2e7386818f69d1c0e0f2d11f3be48a866 (patch) | |
tree | 8ab2abfe716b70abf5015697a566db2d58201a3d | |
parent | aa8cbfa666fafd764e5f4aaef3c38732c551a2e6 (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.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-mvebu.c b/drivers/usb/host/xhci-mvebu.c index 8ca1a235d164..4871959ed698 100644 --- a/drivers/usb/host/xhci-mvebu.c +++ b/drivers/usb/host/xhci-mvebu.c @@ -43,6 +43,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; @@ -72,6 +80,8 @@ int xhci_mvebu_mbus_init_quirk(struct usb_hcd *hcd) */ iounmap(base); + xhci_mvebu_quirks(pdev); + return 0; } |