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 Merge tag 'ieee802154-for-net-2025-01-03' of git://git.kernel.org/pub/scm/linux/kernel/git/wpan/wpan 2025-01-04 17:00:44 -08:00
ipa
ipvlan ipvlan: Support bonding events 2025-01-10 18:10:24 -08:00
mctp Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-01-09 16:11:47 -08:00
mdio Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-12-19 11:35:07 -08:00
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 team: prevent adding a device which is already a team device lower 2025-01-03 11:56:40 +00:00
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 net: wan: framer: Simplify API framer_provider_simple_of_xlate() implementation 2024-12-15 14:13:56 -08:00
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
amt.c
bareudp.c bareudp: Handle stats using NETDEV_PCPU_STAT_DSTATS. 2024-12-06 17:56:53 -08:00
dummy.c
eql.c
geneve.c geneve: Handle stats using NETDEV_PCPU_STAT_DSTATS. 2024-12-06 17:56:52 -08:00
gtp.c gtp: Prepare ip4_route_output_gtp() to .flowi4_tos conversion. 2025-01-17 19:01:33 -08:00
ifb.c
Kconfig
LICENSE.SRC
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
Makefile
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 netconsole: Warn if MAX_USERDATA_ITEMS limit is exceeded 2025-01-09 18:06:36 -08:00
netkit.c netkit: Allow for configuring needed_{head,tail}room 2025-01-06 09:48:49 +01:00
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
Space.c
sungem_phy.c
tap.c ptr_ring: do not block hard interrupts in ptr_ring_resize_multiple() 2024-12-18 17:55:30 -08:00
tun.c tun: revert fix group permission check 2025-02-05 18:22:11 -08:00
veth.c xdp: get rid of xdp_frame::mem.id 2024-12-12 18:22:52 -08:00
virtio_net.c virtio_net: ensure netdev_tx_reset_queue is called on bind xsk for tx 2024-12-10 11:22:21 +01:00
vrf.c vrf: Make pcpu_dstats update functions available to other modules. 2024-12-06 17:56:52 -08:00
vsockmon.c
xen-netfront.c xen/netfront: fix crash when removing device 2024-12-13 09:12:24 +01:00