]> git.baikalelectronics.ru Git - kernel.git/commit
usb: host: xhci: fix compilation error for non-PCI based stacks
authorMoiz Sonasath <m-sonasath@ti.com>
Wed, 5 Sep 2012 05:34:26 +0000 (08:34 +0300)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 5 Sep 2012 19:26:11 +0000 (12:26 -0700)
commit072e5b5c6b7ddaed913cfa289d8b82a372ad4808
treedbe534ec50153d563220dc692df6f40ed1d8bad0
parentfccb7be94b1fe12ff78e0f9f533c8ab4dd1afe55
usb: host: xhci: fix compilation error for non-PCI based stacks

For non PCI-based stacks, this function call
usb_disable_xhci_ports(to_pci_dev(hcd->self.controller));
made from xhci_shutdown is not applicable.

Ideally, we wouldn't have any PCI-specific code on
a generic driver such as the xHCI stack, but it looks
like we should just stub usb_disable_xhci_ports() out
for non-PCI devices.

[ balbi@ti.com: slight improvement to commit log ]

This patch should be backported to kernels as old as 3.0, since the
commit it fixes (851dfaffbc627a56bed1e1c5c1df20ac0871aa75 "xhci: Switch
PPT ports to EHCI on shutdown.") was marked for stable.

Signed-off-by: Moiz Sonasath<m-sonasath@ti.com>
Signed-off-by: Ruchika Kharwar <ruchika@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@vger.kernel.org
drivers/usb/host/pci-quirks.h