From: Octavian Purdila Date: Mon, 23 Dec 2013 17:06:31 +0000 (+0200) Subject: usbnet: mcs7830: rework link state detection X-Git-Tag: v3.13-rc8~16^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d88bbffcbac2e7ceba04a9cdff97241b6b5f1db;p=pandora-kernel.git usbnet: mcs7830: rework link state detection Even with the quirks in commit dabdaf0c (mcs7830: Fix link state detection) there are still spurious link-down events for some chips where the false link-down events count go over a few hundreds. This patch takes a more conservative approach and only looks at link-down events where the link-down state is not combined with other states (e.g. half/full speed, pending frames in SRAM or TX status information valid). In all other cases we assume the link is up. Tested on MCS7830CV-DA (USB ID 9710:7830). Cc: Ondrej Zary Cc: Michael Leun Cc: Ming Lei Signed-off-by: Octavian Purdila Signed-off-by: David S. Miller --- Reading git-diff-tree failed