]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: Fix internal PHY link state
authorJaedon Shin <jaedon.shin@gmail.com>
Fri, 19 Feb 2016 04:48:50 +0000 (13:48 +0900)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Feb 2016 04:51:40 +0000 (23:51 -0500)
commitc294523e6f68cb3b9ddce44e653ac05ecefcfbbf
tree94a7153e47f33dd6d2c8c5f17edad1f122782fb9
parent98a379e5e683fb37311d56c92b450962c72c687a
net: bcmgenet: Fix internal PHY link state

The PHY link state is not chaged in GENETv2 caused by the previous
commit fda06b0ad354 ("net: bcmgenet: Properly configure PHY to ignore
interrupt") was set to PHY_IGNORE_INTERRUPT in bcmgenet_mii_probe().

The internal PHY should use phy_mac_interrupt() when not in use
PHY_POLL. The statement for phy_mac_interrupt() has two conditions. The
first condition to check GENET_HAS_MDIO_INTR is not related PHY link
state, so this patch removes it.

Fixes: fda06b0ad354 ("net: bcmgenet: Properly configure PHY to ignore interrupt")
Signed-off-by: Jaedon Shin <jaedon.shin@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