Hi, nxp:
Is there anything update? It seems to have something to do with the reset timing of the serdes,If I add a delay of 100ms after deassert_reset(serdes) during the initialization of serdes.I can read the ep config on the RC side.
I read the RMS32SERDES documentation,Only one description of PCIE_PHY_MPLLA_CTRL[MPLL_STATE] was found, but this seems to be irrelevant. I continued to initialize the register after asserting that its BIT30 was 1, and the problem remained.
--- a/kernel/drivers/phy/freescale/phy-fsl-s32gen1-serdes.c
+++ b/kernel/drivers/phy/freescale/phy-fsl-s32gen1-serdes.c
@@ -865,6 +865,8 @@ static int init_serdes(struct serdes *serdes)
if (ret)
return ret;
+ mdelay(100);
+
dev_info(serdes->dev, "Using mode %d for SerDes subsystem\n",
ctrl->ss_mode);