[U-Boot] net: lpc32xx: fix ignored MDIO busy wait status on read

Tom Rini trini at konsulko.com
Thu Jan 14 14:22:19 CET 2016


On Sun, Dec 27, 2015 at 05:12:24AM +0200, Vladimir Zapolskiy wrote:

> The change fixes PHY write operation, which incorrectly waits for
> released busy state before issuing a write operation, this breaks
> sequential write/read operation logic, because read operation
> starts immediately on request and it completes, when busy state is
> gone.
> 
> Instead of adding the second preceding busy state check to read
> function, do busy state release check after issuing a write operation,
> this method of operation is also recommended by the LPC32xx User's
> Manual, see MII Mgmt Indicators Register notes:
> 
>   For PHY Write if scan is not used:
>   1. Write 0 to MCMD
>   2. Write PHY address and register address to MADR
>   3. Write data to MWTD
>   4. Wait for busy bit to be cleared in MIND
> 
> Reported-by: Alexandre Messier <amessier at tycoint.com>
> Signed-off-by: Vladimir Zapolskiy <vz at mleia.com>
> Tested-by: Alexandre Messier <amessier at tycoint.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160114/7540ee7d/attachment.sig>


More information about the U-Boot mailing list