]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: hisi: Fix hisi_pcie_cfg_read() 32-bit reads
authorDongdong Liu <liudongdong3@huawei.com>
Fri, 4 Dec 2015 22:32:25 +0000 (16:32 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 4 Dec 2015 22:32:25 +0000 (16:32 -0600)
commitd5da987303f0bf4c0537533106125fa33a2349e6
tree9b13509d3fa6afcb6cf3a5d9f70c4ab295bb3a05
parent83936bd0418f8d92b9cbee18df5916ae28f54918
PCI: hisi: Fix hisi_pcie_cfg_read() 32-bit reads

For 32-bit config reads (size == 4), hisi_pcie_cfg_read() returned success
but never filled in the data we read.

Return the register data for 32-bit config reads.

Without this fix, PCI doesn't work at all because enumeration depends on
32-bit config reads.  The driver was tested internally, but got broken in
the process of upstreaming, so this fixes the breakage.

Fixes: 1bf2beda4d55 ("PCI: hisi: Add HiSilicon SoC Hip05 PCIe driver")
Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Zhou Wang <wangzhou1@hisilicon.com>
drivers/pci/host/pcie-hisi.c