PCI: qcom: Limit TLP size to 2K to work around hardware issue
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 29 Jun 2017 15:34:55 +0000 (17:34 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Sun, 2 Jul 2017 23:45:09 +0000 (18:45 -0500)
commitb8f2a856560361753a6ac846977e4c1e21bf64f7
treee671f9b12ebf53e6ba7b3b709440ee6d2aae21db
parent7a5966eb9123d9e335c0ea04f0fbb0c71e418186
PCI: qcom: Limit TLP size to 2K to work around hardware issue

Limit TLP size to 2K to work around a hardware bug in the v0 version of
PCIe IP.  When using default TLP size of 4K, the internal buffer gets
corrupted due to this hardware bug.

This bug was originally noticed during ssh session between APQ8064-based
board and PC.  Network packets got corrupted randomly and terminated the ssh
session due to this bug.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/dwc/pcie-qcom.c