OSDN Git Service

USB: add runtime frame_no quirk for big-endian OHCI
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / drivers / usb / host / ohci-ppc-of.c
index c43b66a..0a74269 100644 (file)
@@ -134,8 +134,11 @@ ohci_hcd_ppc_of_probe(struct of_device *op, const struct of_device_id *match)
        }
 
        ohci = hcd_to_ohci(hcd);
-       if (is_bigendian)
+       if (is_bigendian) {
                ohci->flags |= OHCI_QUIRK_BE_MMIO | OHCI_QUIRK_BE_DESC;
+               if (of_device_is_compatible(dn, "mpc5200-ohci"))
+                       ohci->flags |= OHCI_QUIRK_FRAME_NO;
+       }
 
        ohci_hcd_init(ohci);