android_kernel_xiaomi_sm8350/drivers/usb/net
Dan Williams c43c49bd61 usb-net/pegasus: fix pegasus carrier detection
Broken by 4a1728a28a which switched the
return semantics of read_mii_word() but didn't fix usage of
read_mii_word() to conform to the new semantics.

Setting carrier to off based on the NO_CARRIER flag is also incorrect as
that flag only triggers on TX failure and therefore isn't correct when
no frames are being transmitted.  Since there is already a 2*HZ MII
carrier check going on, defer to that.

Add a TRUST_LINK_STATUS feature flag for adapters where the LINK_STATUS
flag is actually correct, and use that rather than the NO_CARRIER flag.

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2007-04-24 12:46:31 -04:00
..
asix.c
catc.c
cdc_ether.c
cdc_subset.c
dm9601.c
gl620a.c
kaweth.c
kawethfw.h
Kconfig
Makefile
mcs7830.c
net1080.c
pegasus.c
pegasus.h
plusb.c
rndis_host.c
rtl8150.c
usbnet.c
usbnet.h
zaurus.c