]> git.itanic.dy.fi Git - linux-stable/commit
net: dsa: qca8k: extend slave-bus implementations
authorChristian Lamparter <chunkeey@gmail.com>
Fri, 22 Mar 2019 00:05:03 +0000 (01:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Mar 2019 17:47:10 +0000 (10:47 -0700)
commitdb460c54b67fc2cbe6dcef88b7bf3cba8e07f80e
treec63d835133f0528e8fc0176ce48f13e2ca5aa8b1
parent1eec7151ae0e134bd42e3f128066b2ff8da21393
net: dsa: qca8k: extend slave-bus implementations

This patch implements accessors for the QCA8337 MDIO access
through the MDIO_MASTER register, which makes it possible to
access the PHYs on slave-bus through the switch. In cases
where the switch ports are already mapped via external
"phy-phandles", the internal mdio-bus is disabled in order to
prevent a duplicated discovery and enumeration of the same
PHYs. Don't use mixed external and internal mdio-bus
configurations, as this is not supported by the hardware.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c
drivers/net/dsa/qca8k.h