diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2020-04-15 00:39:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-16 22:47:53 +0200 |
commit | 806fd188ce2a4f8b587e83e73c478e6484fbfa55 (patch) | |
tree | d6f06e94fc68cba6d78cb373a901cc5f144e185d /drivers/isdn | |
parent | net: dsa: mt7530: fix tagged frames pass-through in VLAN-unaware mode (diff) | |
download | linux-806fd188ce2a4f8b587e83e73c478e6484fbfa55.tar.xz linux-806fd188ce2a4f8b587e83e73c478e6484fbfa55.zip |
net: stmmac: dwmac-sunxi: Provide TX and RX fifo sizes
After commit bfcb813203e619a8960a819bf533ad2a108d8105 ("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: eaf4fac47807 ("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>
Diffstat (limited to 'drivers/isdn')
0 files changed, 0 insertions, 0 deletions