]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: do not use slave MII bus for fixed PHYs
authorFlorian Fainelli <f.fainelli@gmail.com>
Sat, 14 Mar 2015 20:21:59 +0000 (13:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Mar 2015 23:16:44 +0000 (19:16 -0400)
commitad551415e4a6ddb11e67012dfea6aaa844756f64
treec6dab92b2cf8a51d83baec86ac95a03187263824
parent76e97650bfdafb63ab080fb2583b324b2d6c17b3
net: dsa: do not use slave MII bus for fixed PHYs

Commit afe9d4ccdc795 ("net: dsa: fully divert PHY reads/writes if
requested") introduced a check for particular PHYs that need to be
accessed using the slave MII bus created by DSA, but this check was too
inclusive. This would prevent fixed PHYs from being successfully
registered because those should not go through the slave MII bus created
by DSA.

Make sure we check that the PHY is not a fixed PHY to prevent that from
happening.

Fixes: afe9d4ccdc795 ("net: dsa: fully divert PHY reads/writes if requested")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c