USB: fix scatterlist PIO case (IOMMU)
authorDavid Brownell <david-b@pacbell.net>
Sun, 22 Jul 2007 22:13:13 +0000 (15:13 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 30 Jul 2007 20:27:45 +0000 (13:27 -0700)
commita12b8db02035673153bbf19bb3641a08bed9e4b8
treec168c7816fb9da3e3a1596f42c1def295addf77b
parente31c18804f584dd838a752f6628e8c15bd7a3372
USB: fix scatterlist PIO case (IOMMU)

Update the scatterlist logic so that PIO options are also disabled
when an IOMMU may have coalesced pages during dma_map_sg() ... it's
not just HIGHMEM that can make trouble supporting both PIO and DMA
based host controller drivers.

There also seems to be a cross-arch issue here, with 64bit powerpc
not using an IOMMU define ... and its IOMMU_VMERGE config can always
be overridden on the kernel command line.  So this is better, but
still imperfect.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/message.c