diff options
author | Greg Ungerer <gerg@uclinux.org> | 2015-06-20 08:51:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-29 03:02:40 +0300 |
commit | 18803495a7eeef3c0ce67e37779115c71732eed1 (patch) | |
tree | 1ef11b8b18564f92e3947a4b60f6663c565c8c5e /drivers/net/ethernet/3com | |
parent | eb686231fce3770299760f24fdcf5ad041f44153 (diff) | |
download | linux-18803495a7eeef3c0ce67e37779115c71732eed1.tar.xz |
net: fec: don't access RACC register when not available
Not all silicon implementations of the Freescale FEC hardware module
have the RACC (Receive Accelerator Function) register, so we should not
be trying to access it on those that don't. Currently none of the ColdFire
based parts with a FEC have it.
Support for RACC was introduced by commit 4c09eed9 ("net: fec: Enable imx6
enet checksum acceleration"). A fix was introduced in commit d1391930
("net: fec: Fix build for MCF5272") that disables its use on the ColdFire
M5272 part, but it doesn't fix the general case of other ColdFire parts.
To fix we create a quirk flag, FEC_QUIRK_HAS_RACC, and check it before
working with the RACC register.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/3com')
0 files changed, 0 insertions, 0 deletions