PCI: Add function 0 DMA alias quirk for Ricoh devices
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 22 May 2014 23:07:49 +0000 (17:07 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 28 May 2014 21:20:45 +0000 (15:20 -0600)
commitec637fb2d4f7a7167c323dc1d22837d1270a21bc
treec8c30293f6674351b9b9b53adac763fbc673ff7d
parent31c2b8153c58f11ddb80dfd392c16f13c2d709c6
PCI: Add function 0 DMA alias quirk for Ricoh devices

The existing quirk for these devices (pci_get_dma_source()) doesn't really
solve the problem; re-implement it using the DMA alias iterator.  We'll
come back later and remove the existing quirk and dma_source interface.
Note that device ID 0xe822 is typically function 0 and 0xe230 has been
tested to not need the quirk and are therefore removed versus the
equivalent dma_source quirk.  If there exist in other configurations we can
re-add them.

Link: https://bugzilla.redhat.com/show_bug.cgi?id=605888
Tested-by: Pat Erley <pat-lkml@erley.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/quirks.c