]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: fix the carrier off when autoresuming
authorhayeswang <hayeswang@realtek.com>
Tue, 23 Sep 2014 08:31:47 +0000 (16:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Sep 2014 20:13:17 +0000 (16:13 -0400)
commit01da88b0421a20bd59068cfc91ec2c354878b177
treee32d834fc77c2018056b0910816cc7ce0b9ee868
parent62e3ab0bec0fe78ec22231b1e955fb32f81ba6c6
r8152: fix the carrier off when autoresuming

netif_carrier_off would be called when autoresuming, even though
the cable is plugged. This causes some applications do relative
actions when detecting the carrier off. Keep the status of the
carrier, and let it be modified when the linking change occurs.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c