]> git.baikalelectronics.ru Git - kernel.git/commit
USB: ehci: make debug port in-use detection functional again
authorJan Beulich <JBeulich@suse.com>
Wed, 19 Dec 2012 16:15:56 +0000 (16:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jan 2013 18:34:33 +0000 (10:34 -0800)
commitf9ffe08e1558895bb560c717440e1692989201f5
tree065f92a49b02978cec2f49df5b4dc1eac9cf1910
parent36ea663de35376bab2cfce0c3a2d9a02b114d7bb
USB: ehci: make debug port in-use detection functional again

Debug port in-use determination must be done before the controller gets
reset the first time, i.e. before the call to ehci_setup() as of commit
ac6395f3bb56946a68af8754ce43a5d0b15dd0e0. That commit effectively
rendered commit 428d98aae70da035042f3094ebab32cc7267a293 useless.

While moving that code around, also fix the BAR determination - the
respective capability field is a 3- rather than a 2-bit one -, and use
PCI_CAP_ID_DBG instead of the literal 0x0a.

It's unclear to me whether the debug port functionality is important
enough to warrant fixing this in stable kernels too.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: stable <stable@vger.kernel.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-pci.c