We have encountered circumstances when a board design does not include pull-up resistors on the external MDIO buses which are not used. This leads to the MDIO data line not being pulled-up, thus the MDIO controller will always see the line as busy. Without a timeout in the MDIO bus driver, the execution is stuck in an infinite loop when any access is initiated on that external bus. Add a timeout in the driver so that we are protected in this circumstance. This is similar to what is being done in the Linux xgmac_mdio driver. Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Reviewed-by: Madalin Bucur <madalin.bucur@oss.nxp.com> [Rebased] Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com> |
||
|---|---|---|
| .. | ||
| Makefile | ||
| b4860.c | ||
| dtsec.c | ||
| eth.c | ||
| fdt.c | ||
| fm.c | ||
| fm.h | ||
| init.c | ||
| ls1043.c | ||
| ls1046.c | ||
| memac.c | ||
| memac_phy.c | ||
| p1023.c | ||
| p4080.c | ||
| p5020.c | ||
| p5040.c | ||
| t1024.c | ||
| t1040.c | ||
| t2080.c | ||
| t4240.c | ||
| tgec.c | ||
| tgec_phy.c | ||