u-boot/drivers/net/fm
Ioana Ciornei 64a0fb4cc3 net: memac_phy: add a timeout to MDIO operations
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>
2021-02-08 14:01:14 +05:30
..
b4860.c env: Move env_get_f() to env.h 2019-08-11 16:43:41 -04:00
dtsec.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
eth.c dm: core: Access device ofnode through functions 2021-01-05 12:24:41 -07:00
fdt.c common: Drop image.h from common header 2020-05-18 17:33:33 -04:00
fm.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
fm.h driver: net: fm: add DM ETH support 2020-04-29 11:10:54 +05:30
init.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ls1043.c armv8/ls1043ardb: RGMII ports require internal delay 2020-03-30 08:06:52 +05:30
ls1046.c armv8/ls1046ardb: RGMII ports require internal delay 2020-03-30 08:06:52 +05:30
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
memac.c driver: net: fm: add support for XFI 2020-09-24 20:57:32 +05:30
memac_phy.c net: memac_phy: add a timeout to MDIO operations 2021-02-08 14:01:14 +05:30
p1023.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
p4080.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
p5020.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
p5040.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
t1024.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
t1040.c powerpc: t1040: Correct RCW EC2 settings 2018-10-29 13:19:43 -07:00
t2080.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
t4240.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tgec.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
tgec_phy.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00