]> git.karo-electronics.de Git - linux-beck.git/commit
net: phy: bcm63xx: Utilize correct config_intr function
authorDaniel Gonzalez Cabanelas <dgcbueu@gmail.com>
Wed, 18 Jan 2017 00:26:55 +0000 (16:26 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Feb 2017 08:47:10 +0000 (09:47 +0100)
commitb335e65666610c456a5fed734cdd04ec84639a52
treea03785d8d1bacf7b5666886ac66e8207ef289011
parent948e137ad9ba0d4ff8ebc5ee994dc26fe3ebc4f6
net: phy: bcm63xx: Utilize correct config_intr function

[ Upstream commit cd33b3e0da43522ff8e8f2b2b71d3d08298512b0 ]

Commit a1cba5613edf ("net: phy: Add Broadcom phy library for common
interfaces") make the BCM63xx PHY driver utilize bcm_phy_config_intr()
which would appear to do the right thing, except that it does not write
to the MII_BCM63XX_IR register but to MII_BCM54XX_ECR which is
different.

This would be causing invalid link parameters and events from being
generated by the PHY interrupt.

Fixes: a1cba5613edf ("net: phy: Add Broadcom phy library for common interfaces")
Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/phy/bcm63xx.c