]> git.sur5r.net Git - u-boot/commit
sun8i_emac: Fix mdio read sequence
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Wed, 16 Nov 2016 01:40:27 +0000 (01:40 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 28 Nov 2016 20:10:31 +0000 (15:10 -0500)
commit1deeecb6e41a42d0e24fec30d2bb74c56d7a0d9b
tree9c95c22ff8e70bb4c35e10f7834da461ca4e0434
parent5782954c2bd7e84730b1670095cdeba3a7618ece
sun8i_emac: Fix mdio read sequence

To send a parametrized command to the PHY over MDIO, we should write
the data first, the trigger the execution by the command register
write. Fix the access pattern in our MDIO write routine.
Apparently this doesn't really matter with the Realtek PHY on the
Pine64, but other PHYs (which require more setup) will choke on
the wrong order.
[Andre: add commit message]

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Jagan Teki <jagan@openedev.com>
drivers/net/sun8i_emac.c