OpenCloudOS-Kernel/drivers/net/ethernet/stmicro/stmmac
Florian Fainelli 806fd188ce net: stmmac: dwmac-sunxi: Provide TX and RX fifo sizes
After commit bfcb813203 ("net: dsa:
configure the MTU for switch ports") my Lamobo R1 platform which uses
an allwinner,sun7i-a20-gmac compatible Ethernet MAC started to fail
by rejecting a MTU of 1536. The reason for that is that the DMA
capabilities are not readable on this version of the IP, and there
is also no 'tx-fifo-depth' property being provided in Device Tree. The
property is documented as optional, and is not provided.

Chen-Yu indicated that the FIFO sizes are 4KB for TX and 16KB for RX, so
provide these values through platform data as an immediate fix until
various Device Tree sources get updated accordingly.

Fixes: eaf4fac478 ("net: stmmac: Do not accept invalid MTU values")
Suggested-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-04-16 13:47:53 -07:00
..
Kconfig net: stmmac: create dwmac-intel.c to contain all Intel platform 2020-03-30 20:10:34 -07:00
Makefile net: stmmac: create dwmac-intel.c to contain all Intel platform 2020-03-30 20:10:34 -07:00
altr_tse_pcs.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
altr_tse_pcs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
chain_mode.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
common.h net: stmmac: Add support for VLAN Rx filtering 2020-03-30 10:36:44 -07:00
descs.h net: stmmac: Initial support for TBS 2020-01-13 18:31:48 -08:00
descs_com.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
dwmac-anarion.c net: of_get_phy_mode: Change API to solve int/unit warnings 2019-11-04 11:21:25 -08:00
dwmac-dwc-qos-eth.c net: stmmac: dwc-qos: avoid clk and reset for acpi device 2019-12-17 13:55:23 -08:00
dwmac-generic.c
dwmac-intel.c net: stmmac: add EHL 2.5Gbps PCI info and PCI ID 2020-03-30 20:10:34 -07:00
dwmac-ipq806x.c net: of_get_phy_mode: Change API to solve int/unit warnings 2019-11-04 11:21:25 -08:00
dwmac-lpc18xx.c
dwmac-mediatek.c net-next: stmmac: mediatek: add more support for RMII 2019-12-17 13:48:30 -08:00
dwmac-meson.c net: stmmac: dwmac-meson: use devm_platform_ioremap_resource() to simplify code 2019-08-21 13:52:33 -07:00
dwmac-meson8b.c net: stmmac: dwmac-meson8b: Fix the RGMII TX delay on Meson8b/8m2 SoCs 2019-12-27 16:37:07 -08:00
dwmac-oxnas.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 446 2019-06-05 17:37:18 +02:00
dwmac-qcom-ethqos.c net: stmmac: fix a possible endless loop 2020-02-07 11:23:34 +01:00
dwmac-rk.c net: stmmac: dwmac-rk: fix error path in rk_gmac_probe 2020-03-21 19:58:48 -07:00
dwmac-socfpga.c net: stmmac: socfpga: Allow all RGMII modes 2020-04-14 16:39:07 -07:00
dwmac-sti.c net: of_get_phy_mode: Change API to solve int/unit warnings 2019-11-04 11:21:25 -08:00
dwmac-stm32.c net: ethernet: stmmac: don't warn about missing optional wakeup IRQ 2020-02-24 15:38:46 -08:00
dwmac-sun8i.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-01-09 12:13:43 -08:00
dwmac-sunxi.c net: stmmac: dwmac-sunxi: Provide TX and RX fifo sizes 2020-04-16 13:47:53 -07:00
dwmac4.h net: stmmac: Add support for VLAN Rx filtering 2020-03-30 10:36:44 -07:00
dwmac4_core.c net: stmmac: Add support for VLAN Rx filtering 2020-03-30 10:36:44 -07:00
dwmac4_descs.c net: stmmac: gmac4+: Add TBS support 2020-01-13 18:31:48 -08:00
dwmac4_descs.h net: stmmac: gmac4+: Add TBS support 2020-01-13 18:31:48 -08:00
dwmac4_dma.c net: stmmac: gmac4+: Add TBS support 2020-01-13 18:31:48 -08:00
dwmac4_dma.h net: stmmac: gmac4+: Add TBS support 2020-01-13 18:31:48 -08:00
dwmac4_lib.c net: stmmac: use readl_poll_timeout() function in dwmac4_dma_reset() 2020-03-16 02:10:09 -07:00
dwmac5.c net: stmmac: gmac5+: Fix missing return 2020-01-10 11:29:44 -08:00
dwmac5.h net: stmmac: gmac5+: Add support for Frame Preemption 2019-12-18 12:17:11 -08:00
dwmac100.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
dwmac100_core.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-06-17 20:20:36 -07:00
dwmac100_dma.c net: stmmac: Fix descriptors address being in > 32 bits address space 2019-07-09 12:20:08 -07:00
dwmac1000.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-06-17 20:20:36 -07:00
dwmac1000_core.c net: stmmac: dwmac1000: fix out-of-bounds mac address reg setting 2020-04-03 15:58:54 -07:00
dwmac1000_dma.c net: stmmac: Fix descriptors address being in > 32 bits address space 2019-07-09 12:20:08 -07:00
dwmac_dma.h net: stmmac: Let TX and RX interrupts be independently enabled/disabled 2019-12-18 12:14:08 -08:00
dwmac_lib.c net: stmmac: dwmac_lib: remove unnecessary checks in dwmac_dma_reset() 2020-03-19 21:05:27 -07:00
dwxgmac2.h net: stmmac: xgmac: Add TBS support 2020-01-13 18:31:48 -08:00
dwxgmac2_core.c net: stmmac: xgmac: Fix VLAN register handling 2020-04-02 07:04:45 -07:00
dwxgmac2_descs.c net: stmmac: xgmac: Add TBS support 2020-01-13 18:31:48 -08:00
dwxgmac2_dma.c net: stmmac: xgmac: Add TBS support 2020-01-13 18:31:48 -08:00
dwxlgmac2.h net: stmmac: Add support for Enterprise MAC version 2020-03-17 21:37:25 -07:00
enh_desc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
hwif.c net: stmmac: Add support for Enterprise MAC version 2020-03-17 21:37:25 -07:00
hwif.h net: stmmac: Add support for VLAN Rx filtering 2020-03-30 10:36:44 -07:00
mmc.h net: stmmac: xgmac: Implement MMC counters 2019-08-08 22:20:18 -07:00
mmc_core.c net: stmmac: mmc: Add Frame Preemption counters on GMAC5+ cores 2019-12-18 12:17:11 -08:00
norm_desc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
ring_mode.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
stmmac.h net: stmmac: Initial support for TBS 2020-01-13 18:31:48 -08:00
stmmac_ethtool.c stmmac: let core reject the unsupported coalescing parameters 2020-03-05 12:12:34 -08:00
stmmac_hwtstamp.c net: stmmac: use readl_poll_timeout() function in init_systime() 2020-03-16 02:10:09 -07:00
stmmac_main.c net: stmmac: Fix VLAN filtering when HW does not support it 2020-04-01 11:25:03 -07:00
stmmac_mdio.c net: stmmac: Integrate it with DesignWare XPCS 2020-03-09 20:13:16 -07:00
stmmac_pci.c net: stmmac: create dwmac-intel.c to contain all Intel platform 2020-03-30 20:10:34 -07:00
stmmac_pcs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
stmmac_platform.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-03-25 18:58:11 -07:00
stmmac_platform.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
stmmac_ptp.c net: reject PTP periodic output requests with unsupported flags 2019-11-15 12:48:32 -08:00
stmmac_ptp.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
stmmac_selftests.c net: sched: rename more stats_types 2020-03-23 20:54:23 -07:00
stmmac_tc.c net: rename flow_action_hw_stats_types* -> flow_action_hw_stats* 2020-03-17 21:12:39 -07:00