From: Mathias Nyman Date: Wed, 1 Jun 2016 15:09:10 +0000 (+0300) Subject: UPSTREAM: xhci: fix platform quirks overwrite regression in 4.7-rc1 X-Git-Tag: firefly_0821_release~1755 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d92316c1a817e99c9a6554339102eb54b4d38145;p=firefly-linux-kernel-4.4.55.git UPSTREAM: xhci: fix platform quirks overwrite regression in 4.7-rc1 commit b1c127ae990b ("usb: host: xhci: plat: make use of new methods in xhci_plat_priv") sets xhci->quirks before calling xhci_gen_setup(), which will overwrite them. Don't overwite the quirks, just add the new ones Fixes: b1c127ae990b ("usb: host: xhci: plat: make use of new methods in xhci_plat_priv") Reported-by: Yoshihiro Shimoda Change-Id: I7751ccaa1f3c8000ad0d47f9fba84084b2db96da Cc: Felipe Balbi Signed-off-by: Mathias Nyman Signed-off-by: Greg Kroah-Hartman Signed-off-by: Wu Liang feng (cherry picked from commit 757de492f2d5711d4f5b386eb9bdd5cdc99eb30e) --- diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 6fe0174da226..4019b7335aac 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -4909,7 +4909,7 @@ int xhci_gen_setup(struct usb_hcd *hcd, xhci_get_quirks_t get_quirks) xhci->hcc_params2 = readl(&xhci->cap_regs->hcc_params2); xhci_print_registers(xhci); - xhci->quirks = quirks; + xhci->quirks |= quirks; get_quirks(dev, xhci);