]> git.dujemihanovic.xyz Git - u-boot.git/commit
bcmgenet, sun8i_emac: Don't connect PHY two times
authorMarek Behún <marek.behun@nic.cz>
Wed, 6 Apr 2022 22:33:07 +0000 (00:33 +0200)
committerRamon Fried <ramon@neureality.ai>
Sun, 10 Apr 2022 05:44:13 +0000 (08:44 +0300)
commitb638814e91f772beb1c05e4d04cf6513ac37af59
treeda90717a6dec821db91f25881efad176715ba66a
parent79bef5fb1f0ce6b090017d2525a42f94e1577673
bcmgenet, sun8i_emac: Don't connect PHY two times

The bcmgenet and sun8i_emac drivers call phy_connect(), which finds /
creates the PHY and also connects it to the eth device via
phy_connect_dev(), then set some phydev members (bcmgenet only), and
then call phy_connect_dev() explicitly again.

Drop the second phy_connect_dev(), since it is unnecesary.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/bcmgenet.c
drivers/net/sun8i_emac.c