android_kernel_xiaomi_sm8350/drivers/net/fs_enet
Anton Vorontsov eedbc705f9 fs_enet: Revive fixed link support
Since commit aa73832c5a ("Rework
fs_enet driver to use of_mdio infrastructure") the fixed-link support
is broken in the fs_enet driver.

This patch fixes the support by removing a check for phy_node, and adding
a call to of_phy_connect_fixed_link().

Also set netdev parent device via SET_NETDEV_DEV() call, this is needed
so that OF MDIO core could find a node pointer for a device.

Plus, fix "if (IS_ERR(phydev))" check, in case of errors,
of_phy_connect() returns NULL, not ERR_PTR as phy_connect().

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-07-22 09:27:19 -07:00
..
fec.h
fs_enet-main.c fs_enet: Revive fixed link support 2009-07-22 09:27:19 -07:00
fs_enet.h fs_enet: Remove dead code 2009-04-28 02:05:21 -07:00
Kconfig
mac-fcc.c
mac-fec.c fs_enet: Remove dead code 2009-04-28 02:05:21 -07:00
mac-scc.c
Makefile
mii-bitbang.c net: Rework fs_enet driver to use of_mdio infrastructure 2009-04-27 02:53:51 -07:00
mii-fec.c net: Rework fs_enet driver to use of_mdio infrastructure 2009-04-27 02:53:51 -07:00