]> git.baikalelectronics.ru Git - kernel.git/commit
fsl_pq_mido: Set the first UCC as the mii management interface master
authorHaiying Wang <Haiying.Wang@freescale.com>
Tue, 2 Jun 2009 04:04:14 +0000 (04:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jun 2009 09:52:46 +0000 (02:52 -0700)
commit3a8995fef212d6430c5dbb07c77d7aa74e5ade1d
tree4d73a04e7265788a47a9bbf7981ceeadc25e761b
parent384a110e07972127324b8e3395ee16378750726d
fsl_pq_mido: Set the first UCC as the mii management interface master

Current code makes the UCC whose register range includes the current mdio
register to be the MII managemnt interface master of the QE. If there is more
than one mdio bus for QE, the UCC of the last mdio bus will be the MII
management interface master which will make the primary mdio bus working
unproperly, e.g. can not get the right clock. Normally the primary mdio bus is
the first UEC's mdio bus.
This patch allows the first UCC to be the MII management interface master of the
multiple UCC mdio buses.

Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fsl_pq_mdio.c