]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "USB: Work around BIOS bugs by quiescing USB controllers earlier"
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 11 Oct 2009 22:57:57 +0000 (15:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 11 Oct 2009 22:57:57 +0000 (15:57 -0700)
commit40ecb5d8e7ad4100fb2835aa152eec0952540b10
treec6a2c4c287af50bc37292a7cbceaacea07b67b1c
parent61f1b9edc95b33df689a3ef47d0887d2179baacf
Revert "USB: Work around BIOS bugs by quiescing USB controllers earlier"

This reverts commit bbd25ecf2d3c97b3387a9791351e18082859f04a, as per

http://bugzilla.kernel.org/show_bug.cgi?id=14374
http://marc.info/?l=linux-kernel&m=125446885705223&w=4

We simply can't do the USB handoff at FIXUP_HEADER time, since it will
often require us to have valid IO mappings etc.  But that in turn
requires a whole different approach, not this trivial one-liner.

Maybe we could teach all the USB quirk handoff handlers to only do the
quirk if the device has all its registers set up (since if it isn't
initialized, it's unlikely to be active), but regardless that will need
a whole lot more code than just saying "let's do it really early".

The proper fix is almost certainly to just leave the legacy IOMMU
mappings active until after all devices have been initialized.

Reported-by: Nick Piggin <npiggin@suse.de>
Cc: David Woodhouse <David.Woodhouse@intel.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/usb/host/pci-quirks.c