summaryrefslogtreecommitdiff
path: root/lib/membuff.c
diff options
context:
space:
mode:
authorRyosuke Saito <ryosuke.saito@linaro.org>2023-08-03 23:56:48 +0900
committerTom Rini <trini@konsulko.com>2023-09-22 15:54:35 -0400
commitc5b42e3e9e757ab44da3006e713d8d02b65aa9fe (patch)
tree17fe87556484c5c9f1dbe5bd0acd18a17e4f8bd0 /lib/membuff.c
parent65adf86f1ac1712a794cbe8251cf8ab74e146302 (diff)
net: sni_netsec: Add workaround for timeout error
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@522d0000 Waiting for PHY auto negotiation to complete... done netsec_wait_while_busy: timeout Using ethernet@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@linaro.org> Tested-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Diffstat (limited to 'lib/membuff.c')
0 files changed, 0 insertions, 0 deletions