kernel: bump 5.4 to 5.4.230
[openwrt/staging/pepe2k.git] / target / linux / layerscape / patches-5.4 / 820-usb-0018-MLK-18794-1-usb-host-xhci-add-.bus_suspend-override.patch
index 438978050433507c729d763b864b3bb1495030e7..12113dc8311256eafe19b7b281ea09df3451dc8b 100644 (file)
@@ -24,10 +24,10 @@ Signed-off-by: Peter Chen <peter.chen@nxp.com>
 
 --- a/drivers/usb/host/xhci.c
 +++ b/drivers/usb/host/xhci.c
-@@ -5436,6 +5436,8 @@ void xhci_init_driver(struct hc_driver *
-                       drv->check_bandwidth = over->check_bandwidth;
-               if (over->reset_bandwidth)
+@@ -5452,6 +5452,8 @@ void xhci_init_driver(struct hc_driver *
                        drv->reset_bandwidth = over->reset_bandwidth;
+               if (over->update_hub_device)
+                       drv->update_hub_device = over->update_hub_device;
 +              if (over->bus_suspend)
 +                      drv->bus_suspend = over->bus_suspend;
        }
@@ -35,10 +35,10 @@ Signed-off-by: Peter Chen <peter.chen@nxp.com>
  EXPORT_SYMBOL_GPL(xhci_init_driver);
 --- a/drivers/usb/host/xhci.h
 +++ b/drivers/usb/host/xhci.h
-@@ -1923,6 +1923,7 @@ struct xhci_driver_overrides {
-       int (*start)(struct usb_hcd *hcd);
-       int (*check_bandwidth)(struct usb_hcd *, struct usb_device *);
+@@ -1926,6 +1926,7 @@ struct xhci_driver_overrides {
        void (*reset_bandwidth)(struct usb_hcd *, struct usb_device *);
+       int (*update_hub_device)(struct usb_hcd *hcd, struct usb_device *hdev,
+                           struct usb_tt *tt, gfp_t mem_flags);
 +      int (*bus_suspend)(struct usb_hcd *hcd);
  };