net: dsa: mv88e6xxx: add call to mv88e6xxx_ports_cmode_init to probe for new DSA...
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 4 Mar 2019 18:39:03 +0000 (19:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2019 21:04:41 +0000 (13:04 -0800)
In the original patch I missed to add mv88e6xxx_ports_cmode_init()
to the second probe function, the one for the new DSA framework.

Fixes: ed8fe20205ac ("net: dsa: mv88e6xxx: prevent interrupt storm caused by mv88e6390x_port_set_cmode")
Reported-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c

index cb2b9c3bc08c6001002f98abf575491380ac6ee5..47e1c24073b540bdcca114ab73664d45e0d136a1 100644 (file)
@@ -4904,6 +4904,7 @@ static int mv88e6xxx_probe(struct mdio_device *mdiodev)
        if (err)
                goto out;
 
+       mv88e6xxx_ports_cmode_init(chip);
        mv88e6xxx_phy_init(chip);
 
        if (chip->info->ops->get_eeprom) {