[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1459436717-12809-1-git-send-email-festevam@gmail.com>
Date: Thu, 31 Mar 2016 12:05:17 -0300
From: Fabio Estevam <festevam@...il.com>
To: davem@...emloft.net
Cc: fugang.duan@....com, troy.kisky@...ndarydevices.com,
gerg@...inux.org, netdev@...r.kernel.org,
Fabio Estevam <fabio.estevam@....com>
Subject: [PATCH] fec: Do not access unexisting register in Coldfire
From: Fabio Estevam <fabio.estevam@....com>
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@...inux.org>
Signed-off-by: Fabio Estevam <fabio.estevam@....com>
---
drivers/net/ethernet/freescale/fec_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
/*
--
1.9.1
Powered by blists - more mailing lists