]> git.baikalelectronics.ru Git - uboot.git/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)
commit468e99aa2bb032cefbfbb0da0197f600e452eefc
tree9c95c22ff8e70bb4c35e10f7834da461ca4e0434
parent97fdd6901d491f29c9c9dcc27978b9083d49a053
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