Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nios2: dts: Fix tse_mac "max-frame-size" property

The given value of 1518 seems to refer to the layer 2 ethernet frame
size without 802.1Q tag. Actual use of the "max-frame-size" including in
the consumer of the "altr,tse-1.0" compatible is the MTU.

Fixes: 95acd4c7b69c ("nios2: Device tree support")
Fixes: 61c610ec61bb ("nios2: Add Max10 device tree")
Cc: <stable@vger.kernel.org>
Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>

authored by

Janne Grunau and committed by
Dinh Nguyen
85041e12 ac9a7868

+2 -2
+1 -1
arch/nios2/boot/dts/10m50_devboard.dts
··· 97 97 rx-fifo-depth = <8192>; 98 98 tx-fifo-depth = <8192>; 99 99 address-bits = <48>; 100 - max-frame-size = <1518>; 100 + max-frame-size = <1500>; 101 101 local-mac-address = [00 00 00 00 00 00]; 102 102 altr,has-supplementary-unicast; 103 103 altr,enable-sup-addr = <1>;
+1 -1
arch/nios2/boot/dts/3c120_devboard.dts
··· 106 106 interrupt-names = "rx_irq", "tx_irq"; 107 107 rx-fifo-depth = <8192>; 108 108 tx-fifo-depth = <8192>; 109 - max-frame-size = <1518>; 109 + max-frame-size = <1500>; 110 110 local-mac-address = [ 00 00 00 00 00 00 ]; 111 111 phy-mode = "rgmii-id"; 112 112 phy-handle = <&phy0>;