net: designware: eqos: mimic Linux gmac4 mdio_{read, write}
The code was ported over from U-Boot and has some things different than
the Kernel driver:

- It reads ->mdio_address, but the kernel driver doesn't
- It doesn't write ->mdio_data in a read, but the kernel driver does
- It has delays in addition to spinning on MII_BUSY, but the kernel driver
  doesn't

Adopt the same flow as used by the kernel.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent d64a4e2 commit 5cf4c736c1625fe3b532bb2d1d8318f35a2034a7
@Ahmad Fatoum Ahmad Fatoum authored on 26 Feb 2020
Sascha Hauer committed on 2 Mar 2020
Showing 4 changed files
View
drivers/net/designware_eqos.c
View
drivers/net/designware_eqos.h
View
drivers/net/designware_stm32.c
View
drivers/net/designware_tegra186.c