]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: don't set phydev->link from MAC
authorDoug Berger <opendmb@gmail.com>
Wed, 16 Oct 2019 23:06:29 +0000 (16:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Oct 2019 17:00:07 +0000 (10:00 -0700)
commit21ab49b2363e13b210810e2f88e0088f584d2432
tree1bbc59f7f943d26a37cd899f4d90879c350a3b94
parent7591d50514dd320d49d61066f221f84c5d617d3d
net: bcmgenet: don't set phydev->link from MAC

When commit 3f70533fdf37 ("net: phy: remove parameter new_link from
phy_mac_interrupt()") removed the new_link parameter it set the
phydev->link state from the MAC before invoking phy_mac_interrupt().

However, once commit 828930c11553 ("net: phy: avoid unneeded MDIO
reads in genphy_read_status") was added this initialization prevents
the proper determination of the connection parameters by the function
genphy_read_status().

This commit removes that initialization to restore the proper
functionality.

Fixes: 828930c11553 ("net: phy: avoid unneeded MDIO reads in genphy_read_status")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c