linux_dsm_epyc7002/drivers/net/ethernet/broadcom/genet
Florian Fainelli 37850e37fc net: bcmgenet: Fix early link interrupt enabling
Link interrupts are enabled in init_umac(), which is too early for us to
process them since we do not yet have a valid PHY device pointer. On
BCM7425 chips for instance, we will crash calling phy_mac_interrupt()
because phydev is NULL.

Fix this by moving the link interrupts enabling in
bcmgenet_netif_start(), under a specific function:
bcmgenet_link_intr_enable() and while at it, update the comments
surrounding the code.

Fixes: 6cc8e6d4dc ("net: bcmgenet: Delay PHY initialization to bcmgenet_open()")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-10-18 23:07:12 -07:00
..
bcmgenet_wol.c net: bcmgenet: properly disable password matching 2015-03-05 21:15:21 -05:00
bcmgenet.c net: bcmgenet: Fix early link interrupt enabling 2015-10-18 23:07:12 -07:00
bcmgenet.h net: bcmgenet: Remove init parameter from bcmgenet_mii_config 2015-07-20 20:48:14 -07:00
bcmmii.c phy: fixed_phy: Add gpio to determine link up/down. 2015-08-31 14:48:02 -07:00
Makefile