diff options
| author | Florian Fainelli <[email protected]> | 2015-10-17 21:22:46 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-10-19 06:07:12 +0000 |
| commit | 37850e37fcfb4dd831bc9e33221e8c49a732956f (patch) | |
| tree | 6ad2868a2f479da816ce19eb8666e0456ad70c5d /net/switchdev/switchdev.c | |
| parent | Merge tag 'wireless-drivers-for-davem-2015-10-17' of git://git.kernel.org/pub... (diff) | |
| download | kernel-37850e37fcfb4dd831bc9e33221e8c49a732956f.tar.gz kernel-37850e37fcfb4dd831bc9e33221e8c49a732956f.zip | |
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: 6cc8e6d4dcb36 ("net: bcmgenet: Delay PHY initialization to bcmgenet_open()")
Signed-off-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
