]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ftgmac100: Disable HW checksum generation on AST2400, enable on others
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 12 Apr 2017 03:27:03 +0000 (13:27 +1000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Apr 2017 14:17:01 +0000 (10:17 -0400)
commit6aff0bf641cf69e487d7b46fc8be773d161f814d
tree511cbe137d6afbf974821805c4725156d0b69d41
parent78d28543a6093fad8f1b00a5debbde02f392ebb4
ftgmac100: Disable HW checksum generation on AST2400, enable on others

We found out that HW checksum generation only works from AST2500
onward. This disables it on AST2400 and removes the "no-hw-checksum"
properties in the device-trees. The problem we had wasn't related
to NC-SI.

Also rework the logic testing for that property so it can be used
to disable HW checksum generation and checking regardless of whether
NC-SI is used or not in case other variants out there need this.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm/boot/dts/aspeed-g4.dtsi
arch/arm/boot/dts/aspeed-g5.dtsi
drivers/net/ethernet/faraday/ftgmac100.c