diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2016-03-31 18:05:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-31 23:04:05 +0300 |
commit | 32867fcc0ef9e56939d5200ad983801bbfd581ad (patch) | |
tree | fcc35d6fa50f5d15306a1eee995615bc4604d3cb /drivers/net | |
parent | 9bd9ddb7f89edae241d2da78e3119f226b9b0cf6 (diff) | |
download | linux-32867fcc0ef9e56939d5200ad983801bbfd581ad.tar.xz |
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>
Diffstat (limited to 'drivers/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 37c081583084..08243c2ff4b4 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 /* |