]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/85xx: Fix ethernet link detection on MPC8569E-MDS boards
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Wed, 24 Jun 2009 16:30:28 +0000 (20:30 +0400)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 30 Jul 2009 04:14:18 +0000 (23:14 -0500)
commit7a14b00cc757f0277e853351061151d82b48f25b
treeb314ef84f8f28d7ec7d24aa23dfd9c6804ee51e3
parent9ea0a0cf44c20beef73d1b1406743fcad6ee3fa9
powerpc/85xx: Fix ethernet link detection on MPC8569E-MDS boards

Linux isn't able to detect link changes on ethernet ports that were
used by U-Boot. This is because U-Boot wrongly clears interrupt
polarity bit (INTPOL, 0x400) in the extended status register (EXT_SR,
0x1b) of Marvell PHYs.

There is no easy way for PHY drivers to know IRQ line polarity (we
could extract it from the device tree and pass it to phydevs, but
that'll be quite a lot of work), so for now just reset the PHYs to
their default states.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/platforms/85xx/mpc85xx_mds.c