]> git.dujemihanovic.xyz Git - u-boot.git/commit
pci: layerscape: Fix the LUT and msi-map mismatch issue
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Tue, 9 Nov 2021 11:26:24 +0000 (16:56 +0530)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 9 Nov 2021 11:48:23 +0000 (17:18 +0530)
commitbe3841603467b42d90010d164cb7e2744f61e06d
treea0ad81a893874100c8f6af601175b9f5b5d4995a
parenta97a071d10d2b2d49b86f92481f766ed30f6a5ed
pci: layerscape: Fix the LUT and msi-map mismatch issue

In the current code, it doesn't reset the cursors of LUT entry and
StreamID at the beginning of the fixup, so it can result in LUT entry
setup and msi-map mismatch and LUT entries and StreamID leaking
when reload and fixup the DTB.
This patch move the initialization of LUT entry and StreamID cursors
to the beginning of the fixup to resolve the issues.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/pci/pcie_layerscape_fixup.c
drivers/pci/pcie_layerscape_fixup_common.c
drivers/pci/pcie_layerscape_gen4.c
drivers/pci/pcie_layerscape_gen4_fixup.c
drivers/pci/pcie_layerscape_rc.c