PCI: Work around Ivytown NTB BAR size issue
authorJon Mason <jon.mason@intel.com>
Mon, 6 May 2013 08:03:33 +0000 (08:03 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 15 May 2013 16:51:14 +0000 (10:51 -0600)
commit12b03188ab2afed784e416b4fb1366b4a6915ac0
tree1ada2cce42bae495af2780f002c387b707b05aee
parentf722406faae2d073cc1d01063d1123c35425939e
PCI: Work around Ivytown NTB BAR size issue

Certain NTB devices have a hardware erratum where, regardless of
pre-configured value, reading the BAR size returns 4096.  To work around
this issue, add a PCI quirk to read the appropriate values from an
alternative register in PCI config space and move the resource endpoints
to the appropriate location.

Signed-off-by: Jon Mason <jon.mason@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/quirks.c