[PATCH 1/1] net: sni_netsec: Add workaround for timeout error
Tom Rini
trini at konsulko.com
Sat Sep 23 00:26:37 CEST 2023
On Thu, Aug 03, 2023 at 11:56:48PM +0900, Ryosuke Saito wrote:
> The NETSEC GMAC occasionally falls into a weird state where
> MAC_REG_DESC_SOFT_RST has never been cleared and shows errors like the
> below when networking commands are issued:
>
> => ping 192.168.1.1
> ethernet at 522d0000 Waiting for PHY auto negotiation to complete... done
> netsec_wait_while_busy: timeout
> Using ethernet at 522d0000 device
>
> ARP Retry count exceeded; starting again
> ping failed; host 192.168.1.1 is not alive
>
> It happens on not only 'ping' but also 'dhcp', 'tftp' and so on.
>
> Luckily, restarting the NETSEC GMAC and trying again seems to fix the
> problematic state. So first ensure that we haven't entered the state by
> checking MAC_REG_DESC_SOFT_RST to be cleared; otherwise, restarting
> NETSEC/PHY and trying again would work as a workaround.
>
> Signed-off-by: Ryosuke Saito <ryosuke.saito at linaro.org>
> Tested-By: Masahisa Kojima <masahisa.kojima at linaro.org>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230922/c9aba3a5/attachment.sig>
More information about the U-Boot
mailing list