mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
b44: fix carrier detection on bind
commit bcf64aa379 upstream.
For carrier detection to work properly when binding the driver with a cable
unplugged, netif_carrier_off() should be called after register_netdev(),
not before.
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
84d7536c1e
commit
c1faa695d6
|
|
@ -2175,8 +2175,6 @@ static int __devinit b44_init_one(struct ssb_device *sdev,
|
|||
dev->irq = sdev->irq;
|
||||
SET_ETHTOOL_OPS(dev, &b44_ethtool_ops);
|
||||
|
||||
netif_carrier_off(dev);
|
||||
|
||||
err = ssb_bus_powerup(sdev->bus, 0);
|
||||
if (err) {
|
||||
dev_err(sdev->dev,
|
||||
|
|
@ -2216,6 +2214,8 @@ static int __devinit b44_init_one(struct ssb_device *sdev,
|
|||
goto err_out_powerdown;
|
||||
}
|
||||
|
||||
netif_carrier_off(dev);
|
||||
|
||||
ssb_set_drvdata(sdev, dev);
|
||||
|
||||
/* Chip reset provides power to the b44 MAC & PCI cores, which
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user