net: cpsw: Make phy its own driver
This makes of_phy_device_connect() work properly when the phy is
specified in the device tree. Without it of_mdio_find_phy() will
not find the right device. It will match:

bus->parent->device_node == phy_node->parent

Without this patch bus->parent->device_node will be the ethernet node
and phy_node->parent will be the ti,cpsw-mdio node. With the MDIO device
node registered as device of its own both nodes above will be the
ti,cpsw-mdio node.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent b3f6d0f commit 81937bf0c5c586436c3a6af9df9c4ad5357acb79
@Sascha Hauer Sascha Hauer authored on 26 Aug 2019
Showing 1 changed file
View
drivers/net/cpsw.c