]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] mpc5200: Fix FEC error handling on FIFO errors
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 15 Apr 2008 15:44:39 +0000 (01:44 +1000)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 29 Apr 2008 13:18:51 +0000 (07:18 -0600)
commit68b1c95aad10b23dc4bea4155720e418caf11e3c
treed4ff70539df7adfee8e0468962366791ccf7da88
parent9e72bd4f016a74ff0402bf7e19515673b807c694
[POWERPC] mpc5200: Fix FEC error handling on FIFO errors

The error handling for the mpc5200 fec interrupt is broken. The intended
behaviour is like this:

* If one of FEC_IEVENT_RFIFO_ERROR and FEC_IEVENT_XFIFO_ERROR happens,
  the datasheet says (MPC5200B User's Guide R1.2, p. 14-13): "When this
  occurs, software must ensure both the FIFO Controller and BestComm are
  soft-reset".

* On any other error (non-TFINT) interrupt, just issue a debug message.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/net/fec_mpc52xx.c