mirror-linux/drivers/net
Russell King (Oracle) 2a64c96356 Revert "net: stmmac: Specify hardware capability value when FIFO size isn't specified"
This reverts commit 8865d22656, which caused breakage for platforms
which are not using xgmac2 or gmac4. Only these two cores have the
capability of providing the FIFO sizes from hardware capability fields
(which are provided in priv->dma_cap.[tr]x_fifo_size.)

All other cores can not, which results in these two fields containing
zero. We also have platforms that do not provide a value in
priv->plat->[tr]x_fifo_size, resulting in these also being zero.

This causes the new tests introduced by the reverted commit to fail,
and produce e.g.:

	stmmaceth f0804000.eth: Can't specify Rx FIFO size

An example of such a platform which fails is QEMU's npcm750-evb.
This uses dwmac1000 which, as noted above, does not have the capability
to provide the FIFO sizes from hardware.

Therefore, revert the commit to maintain compatibility with the way
the driver used to work.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/4e98f967-f636-46fb-9eca-d383b9495b86@roeck-us.net
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tested-by: Steven Price <steven.price@arm.com>
Fixes: 8865d22656 ("net: stmmac: Specify hardware capability value when FIFO size isn't specified")
Link: https://patch.msgid.link/E1tfeyR-003YGJ-Gb@rmk-PC.armlinux.org.uk
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2025-02-06 11:53:54 +01:00
..
arcnet
bonding First batch of fixes for 6.14. Nothing really stands out, 2025-01-30 12:24:20 -08:00
caif
can can: grcan: move napi_enable() from under spin lock 2025-01-13 19:05:11 -08:00
dsa Networking changes for 6.14. 2025-01-22 08:28:57 -08:00
ethernet Revert "net: stmmac: Specify hardware capability value when FIFO size isn't specified" 2025-02-06 11:53:54 +01:00
fddi
fjes
hamradio
hippi
hyperv hv_netvsc: Replace one-element array with flexible array member 2025-01-17 19:07:48 -08:00
ieee802154
ipa
ipvlan
mctp
mdio
netdevsim First batch of fixes for 6.14. Nothing really stands out, 2025-01-30 12:24:20 -08:00
pcs Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-01-16 10:34:59 -08:00
phy net: phy: c45-tjaxx: add delay between MDIO write and read in soft_reset 2025-01-27 15:02:51 -08:00
plip
ppp
pse-pd net: pse-pd: Clean ethtool header of PSE structures 2025-01-14 13:56:33 +01:00
slip
team
thunderbolt
usb usbnet: ipheth: document scope of NCM implementation 2025-01-28 12:16:32 +01:00
vmxnet3 vmxnet3: Fix tx queue race condition with XDP 2025-02-01 17:17:32 -08:00
vxlan vxlan: Fix uninit-value in vxlan_vnifilter_dump() 2025-01-27 14:53:13 -08:00
wan
wireguard
wireless First batch of fixes for 6.14. Nothing really stands out, 2025-01-30 12:24:20 -08:00
wwan net: wwan: iosm: Fix hibernation by re-binding the driver around it 2025-01-15 17:39:54 -08:00
xen-netback
Kconfig
LICENSE.SRC
Makefile
Space.c
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c gtp: Prepare ip4_route_output_gtp() to .flowi4_tos conversion. 2025-01-17 19:01:33 -08:00
ifb.c
loopback.c net: loopback: Hold rtnl_net_lock() in blackhole_netdev_init(). 2025-01-15 14:20:08 -08:00
macsec.c
macvlan.c
macvtap.c
mdio.c
mhi_net.c
mii.c net: mii: Fix the Speed display when the network cable is not connected 2025-01-20 12:02:38 -08:00
net_failover.c
netconsole.c
netkit.c
nlmon.c
ntb_netdev.c
pfcp.c pfcp: Destroy device along with udp socket's netns dismantle. 2025-01-14 11:20:04 +01:00
rionet.c
sb1000.c
sungem_phy.c
tap.c
tun.c tun: revert fix group permission check 2025-02-05 18:22:11 -08:00
veth.c
virtio_net.c
vrf.c
vsockmon.c
xen-netfront.c