aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorRafał Miłecki <[email protected]>2023-02-27 10:11:56 +0100
committerPaolo Abeni <[email protected]>2023-02-28 11:10:05 +0100
commitf99e6d7c4ed3be2531bd576425a5bd07fb133bd7 (patch)
treecf1438946bc8827ca09bb539c2c1dd6006a288a2 /tools/testing/selftests/bpf/progs/test_autoload.c
parent5ca26d6039a6b42341f7f5cc8d10d30ca1561a7b (diff)
bgmac: fix *initial* chip reset to support BCM5358
While bringing hardware up we should perform a full reset including the switch bit (BGMAC_BCMA_IOCTL_SW_RESET aka SICF_SWRST). It's what specification says and what reference driver does. This seems to be critical for the BCM5358. Without this hardware doesn't get initialized properly and doesn't seem to transmit or receive any packets. Originally bgmac was calling bgmac_chip_reset() before setting "has_robosw" property which resulted in expected behaviour. That has changed as a side effect of adding platform device support which regressed BCM5358 support. Fixes: f6a95a24957a ("net: ethernet: bgmac: Add platform device support") Cc: Jon Mason <[email protected]> Signed-off-by: Rafał Miłecki <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions