|
|
@@ -24,10 +24,10 @@ Signed-off-by: Peter Chen <[email protected]>
|
|
|
|
|
|
--- 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;
|
|
|
+@@ -5385,6 +5385,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;
|
|
|
}
|
|
|
@@ -35,10 +35,10 @@ Signed-off-by: Peter Chen <[email protected]>
|
|
|
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);
|
|
|
+@@ -1915,6 +1915,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);
|
|
|
};
|
|
|
|