summaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pcie-mobiveil.c
diff options
context:
space:
mode:
authorAlan Mikhak <alan.mikhak@sifive.com>2019-05-23 23:57:27 +0200
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2019-06-11 11:57:54 +0200
commitdbb7bbcc8ad248b1ab05bd27dfdb587ef4023dab (patch)
tree897ba4e75074e961113d697d4e21676705403862 /drivers/pci/controller/pcie-mobiveil.c
parentPCI: endpoint: Skip odd BAR when skipping 64bit BAR (diff)
downloadlinux-dbb7bbcc8ad248b1ab05bd27dfdb587ef4023dab.tar.xz
linux-dbb7bbcc8ad248b1ab05bd27dfdb587ef4023dab.zip
PCI: endpoint: Clear BAR before freeing its space
Associated pci_epf_bar structure is needed in pci_epc_clear_bar() to clear a BAR correctly but it is reset in pci_epf_free_space() (that is called first) which results in pci_epc_clear_bar() failure. Reorder the pci_epc_clear_bar()/pci_epf_free_space() calls execution to fix the issue. Signed-off-by: Alan Mikhak <alan.mikhak@sifive.com> [lorenzo.pieralisi@arm.com: reworded the commit log] Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/pci/controller/pcie-mobiveil.c')
0 files changed, 0 insertions, 0 deletions