]> git.baikalelectronics.ru Git - kernel.git/commit
net/fec_mpc52xx: Fix kernel panic on FEC error
authorJohn Bonesio <bones@secretlab.ca>
Wed, 14 Oct 2009 22:10:19 +0000 (15:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Oct 2009 22:10:19 +0000 (15:10 -0700)
commit3facad3a45e11fa77713afa2e703ff740947bbc1
treec2dd58c451a5923011fbfd1b8beea67b6077f766
parentd2514034eee95459ad5851bd17a6bbe7a9fa9cb8
net/fec_mpc52xx: Fix kernel panic on FEC error

The MDIO bus cannot be accessed at interrupt context, but on an FEC
error, the fec_mpc52xx driver reset function also tries to reset the
PHY.  Since the error is detected at IRQ context, and the PHY functions
try to sleep, the kernel ends up panicking.

Resetting the PHY on an FEC error isn't even necessary.  This patch
solves the problem by removing the PHY reset entirely.

Signed-off-by: John Bonesio <bones@secretlab.ca>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fec_mpc52xx.c