]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mcs7830: Fix link state detection
authorOndrej Zary <linux@rainbow-software.org>
Thu, 11 Oct 2012 22:51:41 +0000 (22:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Oct 2012 16:32:42 +0000 (09:32 -0700)
commit680fb76fbb854d3167477ce83388eb9db36d7dde
tree86d503eabcc6ec37a72577fe4ed56b59a50b705e
parent6c34ed3be47036c173f7f43df112f93fbd89026f
mcs7830: Fix link state detection

commit dabdaf0caa3af520dbc1df87b2fb4e77224037bd upstream.

The device had an undocumented "feature": it can provide a sequence of
spurious link-down status data even if the link is up all the time.
A sequence of 10 was seen so update the link state only after the device
reports the same link state 20 times.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Reported-by: Michael Leun <lkml20120218@newton.leun.net>
Tested-by: Michael Leun <lkml20120218@newton.leun.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/mcs7830.c