]> git.baikalelectronics.ru Git - uboot.git/commit
pci: layerscape: Only set EP CFG READY bit
authorPankaj Bansal <pankaj.bansal@nxp.com>
Mon, 14 Oct 2019 11:43:19 +0000 (11:43 +0000)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 8 Nov 2019 05:43:38 +0000 (11:13 +0530)
commitc0e1e5fc1693d874cb500f29dd25c2fcacd082a9
treee4752310eec24b695fa134c322c0d04ef4868cc0
parent8b96091491264a59f8a1ab388e36916d292073b3
pci: layerscape: Only set EP CFG READY bit

In ls_pcie_ep_enable_cfg(), as part of EP setup,config ready bit
of pci controller is set, so that RC can read the config space of EP.

While setting the config ready bit, LTSSM_EN bit in same register was
also inadvertently getting cleared. This restarts the link training
between RC and EP.

Update code to just set the desired CFG_READY bit (bit 0),
while leaving the other bits unchanged.

Signed-off-by: Pankaj Bansal <pankaj.bansal@nxp.com>
Reviewed-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/pci/pcie_layerscape.c