PCI: designware-ep: Allow pci_epc_set_bar() update inbound map address
authorFrank Li <Frank.Li@nxp.com>
Tue, 22 Feb 2022 16:23:52 +0000 (10:23 -0600)
committerJon Mason <jdmason@kudzu.us>
Tue, 9 Aug 2022 21:53:58 +0000 (17:53 -0400)
commit4284c88fff0efc4e418abb53d78e02dc4f099d6c
tree490534f0b516471281af08cbf7612f6b88af0554
parenta914fc529f59dcd9f59633157cf7ee70822ebcac
PCI: designware-ep: Allow pci_epc_set_bar() update inbound map address

ntb_mw_set_trans() will set memory map window after endpoint function
driver bind. The inbound map address need be updated dynamically when
using NTB by PCIe Root Port and PCIe Endpoint connection.

Checking if iatu already assigned to the BAR, if yes, using assigned iatu
number to update inbound address map and skip set BAR's register.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/pci/controller/dwc/pcie-designware-ep.c