Files
u-boot/drivers
Andre Przywara f20f9465db net: sun8i_emac: Simplify mdio_read/mdio_write functions
When preparing the register value for the MDIO command register, we
start with a zeroed register, so there is no need to mask off certain
bits before setting them.
Simplify the sequence, and rename the variable to a more matching
mii_cmd on the way.

Also the open-coded time-out routine can be replaced with a much safer
and easier-to-read call to wait_for_bit_le32().

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Tested-by: Amit Singh Tomar <amittomer25@gmail.com> # Pine64+
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
2020-10-21 23:42:51 +05:30
..
2020-08-03 22:19:54 -04:00
2020-10-15 18:36:55 -04:00
2020-07-27 14:16:29 +05:30
2020-09-01 14:47:43 +02:00
2020-10-05 14:10:59 -04:00
2020-05-18 21:19:18 -04:00
2020-10-05 14:10:59 -04:00
2020-10-15 18:36:56 -04:00
2020-10-15 18:36:56 -04:00
2020-09-28 09:38:11 +02:00
2020-10-16 09:44:27 -04:00
2020-10-16 09:44:27 -04:00
2020-09-25 11:27:21 +08:00
2020-08-03 22:19:54 -04:00
2020-08-24 14:11:31 -04:00