]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 13 Mar 2017 21:20:54 +0000 (15:20 -0600)
commit490117a2ec1ccc4688be42ec2f38df33935bbfab
treef6fe67e06a5edd704679da136f9296c596c13b94
parent79ba019dd0199b254f1d04bb98defd281635d050
PCI: altera: Fix TLP_CFG_DW0 for TLP write

BugLink: http://bugs.launchpad.net/bugs/1672544
commit 2a7275a3d867b228216886aae35e1f64291180b1 upstream.

eb5767122feb ("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: eb5767122feb ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/pci/host/pcie-altera.c