aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/fsl_ls_mdio.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-01-17 08:35:11 -0500
committerTom Rini <trini@konsulko.com>2022-01-17 08:35:11 -0500
commitd928b365cc73426b0de883249700b3057b738cf3 (patch)
tree576648536fb0b380fd23a39301fb6510cfff856d /drivers/net/fsl_ls_mdio.c
parentd71dbe657c3c22f50ecb3df133e5cdd884daae7d (diff)
parent046bf8d4c512ad6501fe9e77508bbe1292a29fef (diff)
Merge branch 'next' of https://source.denx.de/u-boot/custodians/u-boot-net
- PXE label override support - Fastboot UDP configurable port - new phy driver: TI DP83869HM - and few minor fixes to dsa.
Diffstat (limited to 'drivers/net/fsl_ls_mdio.c')
-rw-r--r--drivers/net/fsl_ls_mdio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/fsl_ls_mdio.c b/drivers/net/fsl_ls_mdio.c
index 6d4e682fdf..f213e0dd85 100644
--- a/drivers/net/fsl_ls_mdio.c
+++ b/drivers/net/fsl_ls_mdio.c
@@ -84,7 +84,7 @@ static int dm_fsl_ls_mdio_read(struct udevice *dev, int addr,
memac_out_32(&regs->mdio_ctl, mdio_ctl);
/* Wait till the MDIO write is complete */
- while ((memac_in_32(&regs->mdio_data)) & MDIO_DATA_BSY)
+ while ((memac_in_32(&regs->mdio_stat)) & MDIO_STAT_BSY)
;
/* Return all Fs if nothing was there */
@@ -107,7 +107,7 @@ static int dm_fsl_ls_mdio_write(struct udevice *dev, int addr, int devad,
memac_out_32(&regs->mdio_data, MDIO_DATA(val));
/* Wait till the MDIO write is complete */
- while ((memac_in_32(&regs->mdio_data)) & MDIO_DATA_BSY)
+ while ((memac_in_32(&regs->mdio_stat)) & MDIO_STAT_BSY)
;
return 0;