net: fec: enable hardware checksum only on imx6q-fec
authorShawn Guo <shawn.guo@linaro.org>
Wed, 8 May 2013 21:08:22 +0000 (21:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 May 2013 23:12:44 +0000 (16:12 -0700)
commit4849625569874d474ce351efd84b1f487ba08c94
treee8419c453804898c292107352d0474136399bbca
parent1e9e9901ee13a48e3cbb96ec3631c685590f8aea
net: fec: enable hardware checksum only on imx6q-fec

Commit 4c09eed (net: fec: Enable imx6 enet checksum acceleration.)
enables hardware checksum acceleration unconditionally for all fec
variants.  This is inappropriate, because some variants like imx5 have
no such support on hardware.  Consequently, fec is broken on these
platforms.  Fix it by enabling hardware checksum only on imx6q-fec type
of controllers.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Jim Baxter <jim_baxter@mentor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c