mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 17:01:14 +00:00
a47279154e
Manually rebased patches: bcm27xx: patches-5.4/950-0267-xhci-add-quirk-for-host-controllers-that-don-t-updat.patch bcm53xx: patches-5.4/180-usb-xhci-add-support-for-performing-fake-doorbell.patch layerscape: patches-5.4/802-can-0025-can-flexcan-add-LPSR-mode-support-for-i.MX7D.patch patches-5.4/808-i2c-0002-MLK-10893-i2c-imx-add-irqf_no_suspend.patch patches-5.4/820-usb-0016-MLK-16735-usb-host-add-XHCI_CDNS_HOST-flag.patch Removed since could be reverse-applied by quilt: mediatek: patches-5.4/0700-arm-dts-mt7623-add-missing-pause-for-switchport.patch All modifications made by update_kernel.sh Build system: x86_64 Build-tested: ipq806x/R7800, ath79/generic, bcm27xx/bcm2711, x86_64 Run-tested: ipq806x/R7800, x86_64 No dmesg regressions, everything functional Signed-off-by: John Audia <graysky@archlinux.us> Tested-by: Curtis Deptuck <curtdept@me.com> [x86_64] Rebase of 802-can-0025-can-flexcan-add-LPSR-mode-support-for-i.MX7D.patch Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
46 lines
1.6 KiB
Diff
46 lines
1.6 KiB
Diff
From b5c498026a95f9d80be23711dd6c178cc78d6c33 Mon Sep 17 00:00:00 2001
|
|
From: Peter Chen <peter.chen@nxp.com>
|
|
Date: Wed, 15 Aug 2018 14:59:55 +0800
|
|
Subject: [PATCH] MLK-18794-1 usb: host: xhci: add .bus_suspend override
|
|
|
|
Some platforms (eg: Cadence USB3) have special requirements to add
|
|
platform USB register setting between xhci_bus_suspend and
|
|
platform USB controller suspend routine. Eg, The Cadence USB3 needs
|
|
RX detect clock switch from 24Mhz to 32Khz within 100ms after set
|
|
port to U3, but sometimes, for USB3 HUB connection, the USB2
|
|
bus suspend will cost more than 100ms, and introduce the disconnection
|
|
before the PHY enters low power mode, then the state is in mess from
|
|
controller side.
|
|
|
|
So in this commit, we introduce .bus_suspend for xhci_driver_overrides
|
|
for above use cases.
|
|
|
|
Signed-off-by: Peter Chen <peter.chen@nxp.com>
|
|
(cherry picked from commit f6baa57913ceb40da14a945820cb87e8d6ceb7c7)
|
|
---
|
|
drivers/usb/host/xhci.c | 2 ++
|
|
drivers/usb/host/xhci.h | 1 +
|
|
2 files changed, 3 insertions(+)
|
|
|
|
--- a/drivers/usb/host/xhci.c
|
|
+++ b/drivers/usb/host/xhci.c
|
|
@@ -5381,6 +5381,8 @@ void xhci_init_driver(struct hc_driver *
|
|
drv->reset = over->reset;
|
|
if (over->start)
|
|
drv->start = over->start;
|
|
+ if (over->bus_suspend)
|
|
+ drv->bus_suspend = over->bus_suspend;
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(xhci_init_driver);
|
|
--- a/drivers/usb/host/xhci.h
|
|
+++ b/drivers/usb/host/xhci.h
|
|
@@ -1912,6 +1912,7 @@ struct xhci_driver_overrides {
|
|
size_t extra_priv_size;
|
|
int (*reset)(struct usb_hcd *hcd);
|
|
int (*start)(struct usb_hcd *hcd);
|
|
+ int (*bus_suspend)(struct usb_hcd *hcd);
|
|
};
|
|
|
|
#define XHCI_CFC_DELAY 10
|