PCI: dwc: dra7xx: Workaround for errata id i870
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 27 Mar 2017 09:45:11 +0000 (15:15 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 28 Apr 2017 15:23:18 +0000 (10:23 -0500)
commitf7a2757f6cd0aa4e1075188a3a0081a583fcee24
treeb5d51ac2e92f66382054829e48d48b69b507b048
parent40cc72e2b51f61956f965510ceba35bddb0c373f
PCI: dwc: dra7xx: Workaround for errata id i870

According to errata i870, access to the PCIe slave port that are not 32-bit
aligned will result in incorrect mapping to TLP Address and Byte enable
fields.

Accessing non 32-bit aligned data causes incorrect data in the target
buffer if memcpy is used. Implement the workaround for this errata here.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/dwc/pci-dra7xx.c