]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6df67f8abf2a2353e70a909cb577797f7b9f4511
tree490534f0b516471281af08cbf7612f6b88af0554
parent2b71966c2441de15edf7c1a6ff6096774baaf3cf
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