mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
fsl_pq_mdio: Revive UCC MDIO support
commit 1577ecef76
("netdev: Merge UCC
and gianfar MDIO bus drivers") introduced a regression so that UCC
MDIO buses no longer work.
This is because fsl_pq_mdio driver wrongly masks all non-TBI PHYs
for !fsl,gianfar-mdio buses, while it should do that only for
fsl,gianfar-tbi buses.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
da1aa63ec3
commit
0ac023faa6
1 changed files with 1 additions and 1 deletions
|
@ -387,7 +387,7 @@ static int fsl_pq_mdio_probe(struct of_device *ofdev,
|
|||
* The TBIPHY-only buses will find PHYs at every address,
|
||||
* so we mask them all but the TBI
|
||||
*/
|
||||
if (!of_device_is_compatible(np, "fsl,gianfar-mdio"))
|
||||
if (of_device_is_compatible(np, "fsl,gianfar-tbi"))
|
||||
new_bus->phy_mask = ~(1 << tbiaddr);
|
||||
|
||||
err = mdiobus_register(new_bus);
|
||||
|
|
Loading…
Reference in a new issue