mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 09:12:39 +00:00
9d21eccc6b
Removed because in upstream generic/backport-5.4/050-gro-fix-napi_gro_frags-Fast-GRO-breakage-due-to-IP-a.patch ath79/patches-5.4/0050-spi-ath79-remove-spi-master-setup-and-cleanup-assign.patch ramips/patches-5.4/999-fix-pci-init-mt7620.patch Manually rebased ath79/patches-5.4/0033-spi-ath79-drop-pdata-support.patch All others updated automatically. Compile-tested on: x86/64, ath79/generic Runtime-tested on: x86/64, ath79/generic Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
46 lines
1.7 KiB
Diff
46 lines
1.7 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
|
|
@@ -5405,6 +5405,8 @@ void xhci_init_driver(struct hc_driver *
|
|
drv->check_bandwidth = over->check_bandwidth;
|
|
if (over->reset_bandwidth)
|
|
drv->reset_bandwidth = over->reset_bandwidth;
|
|
+ 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
|
|
@@ -1916,6 +1916,7 @@ struct xhci_driver_overrides {
|
|
int (*start)(struct usb_hcd *hcd);
|
|
int (*check_bandwidth)(struct usb_hcd *, struct usb_device *);
|
|
void (*reset_bandwidth)(struct usb_hcd *, struct usb_device *);
|
|
+ int (*bus_suspend)(struct usb_hcd *hcd);
|
|
};
|
|
|
|
#define XHCI_CFC_DELAY 10
|