]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: altera: Fix TLP_CFG_DW0 for TLP write
authorLey Foon Tan <ley.foon.tan@intel.com>
Tue, 28 Feb 2017 10:37:16 +0000 (18:37 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 28 Feb 2017 21:06:29 +0000 (15:06 -0600)
commitedc7c1caf3e7f0f65dfe58231f7465dd6dc9dde0
treedf189b2dc21fb2fafe42989154287f896de5eeb8
parent0c94db780a10085ae09cb748481b0a7706ec1ebd
PCI: altera: Fix TLP_CFG_DW0 for TLP write

98eff4a6c506 ("PCI: altera: Simplify TLB_CFG_DW0 usage") used
TLP_FMTTYPE_CFGRD* (instead of TLP_FMTTYPE_CFGWR*) for TLP writes, which
causes writing to configuration space to fail.  Fix it by using correct
FMTTYPE for write operation.

Fixes: 98eff4a6c506 ("PCI: altera: Simplify TLB_CFG_DW0 usage")
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: stable@vger.kernel.org # v4.9+
drivers/pci/host/pcie-altera.c