linux-stable/drivers/net/ethernet/broadcom/genet
Phil Elwell 0a6380cb4c net: bcmgenet: Reset RBUF on first open
If the RBUF logic is not reset when the kernel starts then there
may be some data left over from any network boot loader. If the
64-byte packet headers are enabled then this can be fatal.

Extend bcmgenet_dma_disable to do perform the reset, but not when
called from bcmgenet_resume in order to preserve a wake packet.

N.B. This different handling of resume is just based on a hunch -
why else wouldn't one reset the RBUF as well as the TBUF? If this
isn't the case then it's easy to change the patch to make the RBUF
reset unconditional.

See: https://github.com/raspberrypi/linux/issues/3850
See: https://github.com/raspberrypi/firmware/issues/1882

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Signed-off-by: Maarten Vanraes <maarten@rmail.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-04-03 11:07:00 +01:00
..
Makefile
bcmgenet.c net: bcmgenet: Reset RBUF on first open 2024-04-03 11:07:00 +01:00
bcmgenet.h ethtool: replace struct ethtool_eee with a new struct ethtool_keee on kernel side 2024-01-31 12:30:47 +00:00
bcmgenet_wol.c net: bcmgenet: Add support for PHY-based Wake-on-LAN 2023-05-13 16:56:29 +01:00
bcmmii.c Revert "net: bcmgenet: Ensure MDIO unregistration has clocks enabled" 2024-02-21 12:46:17 +00:00