From: simon Date: Wed, 6 Apr 2011 21:40:15 +0000 (+0000) Subject: usb: plusb: Add debug to reset function X-Git-Tag: MMI-PSA29.97-13-9~18929^2~630 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5325e92f33eef5fb54e2e63185d965b4be59a4b3;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git usb: plusb: Add debug to reset function This patch adds some debug to the reset function to print out the reason why it fails. Signed-off-by: Simon Wood Signed-off-by: David S. Miller --- diff --git a/drivers/net/usb/plusb.c b/drivers/net/usb/plusb.c index f46aa07bfa69..217aec8a768f 100644 --- a/drivers/net/usb/plusb.c +++ b/drivers/net/usb/plusb.c @@ -94,11 +94,15 @@ pl_set_QuickLink_features(struct usbnet *dev, int val) static int pl_reset(struct usbnet *dev) { + int status; + /* some units seem to need this reset, others reject it utterly. * FIXME be more like "naplink" or windows drivers. */ - (void) pl_set_QuickLink_features(dev, + status = pl_set_QuickLink_features(dev, PL_S_EN|PL_RESET_OUT|PL_RESET_IN|PL_PEER_E); + if (status != 0 && netif_msg_probe(dev)) + netif_dbg(dev, link, dev->net, "pl_reset --> %d\n", status); return 0; }