]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: fix write to USB3_PSSEN and XUSB2PRM pci config registers
authorXenia Ragiadakou <burzalodowa@gmail.com>
Fri, 20 Sep 2013 16:45:53 +0000 (19:45 +0300)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 9 Oct 2013 23:27:13 +0000 (16:27 -0700)
commit7d91b22673ddcbf84ada9e552b030a751ff593f2
treef9e8e397b9d926dc0894668a7a1a029b65926405
parent06210da536efc67cbe6f55f5daa89a675bf12662
xhci: fix write to USB3_PSSEN and XUSB2PRM pci config registers

The function pci_write_config_dword() sets the appropriate byteordering
internally so the value argument should not be converted to little-endian.
This bug was found by sparse.

This patch is not suitable for stable.  Since cpu_to_lei32 is a no-op on
little endian systems, this bug would only affect big endian Intel
systems with the EHCI to xHCI port switchover, which are non-existent,
AFAIK.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/pci-quirks.c