Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32867fcc authored by Fabio Estevam's avatar Fabio Estevam Committed by David S. Miller
Browse files

fec: Do not access unexisting register in Coldfire



Commit 55cd48c8 ("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: default avatarGreg Ungerer <gerg@uclinux.org>
Signed-off-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9bd9ddb7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}
#endif

	/*