diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2016-03-31 12:05:17 -0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-31 16:04:05 -0400 |
commit | 32867fcc0ef9e56939d5200ad983801bbfd581ad (patch) | |
tree | fcc35d6fa50f5d15306a1eee995615bc4604d3cb | |
parent | 9bd9ddb7f89edae241d2da78e3119f226b9b0cf6 (diff) | |
download | op-kernel-dev-32867fcc0ef9e56939d5200ad983801bbfd581ad.zip op-kernel-dev-32867fcc0ef9e56939d5200ad983801bbfd581ad.tar.gz |
fec: Do not access unexisting register in Coldfire
Commit 55cd48c821de ("net: fec: stop the "rcv is not +last, " error
messages") introduces a write to a register that does not exist in
Coldfire.
Move the FEC_FTRL register access inside the FEC_QUIRK_HAS_RACC 'if' block,
so that we guarantee it will not be used on Coldfire CPUs.
Reported-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/freescale/fec_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index 37c0815..08243c2 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -943,8 +943,8 @@ fec_restart(struct net_device *ndev) else val &= ~FEC_RACC_OPTIONS; writel(val, fep->hwp + FEC_RACC); + writel(PKT_MAXBUF_SIZE, fep->hwp + FEC_FTRL); } - writel(PKT_MAXBUF_SIZE, fep->hwp + FEC_FTRL); #endif /* |