aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorsimon <simon@ubuntu.(none)>2011-04-06 17:40:15 -0400
committerDavid S. Miller <davem@davemloft.net>2011-04-10 21:46:45 -0400
commit5325e92f33eef5fb54e2e63185d965b4be59a4b3 (patch)
treeee62aa60f4f84ad6afb8ee20d0effc073f20e7b1 /drivers/net/usb
parent647da406e5e6cef87d17ee4d3c65c7b496883a3f (diff)
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 <simon@mungewell.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/plusb.c6
1 files changed, 5 insertions, 1 deletions
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)
94 94
95static int pl_reset(struct usbnet *dev) 95static int pl_reset(struct usbnet *dev)
96{ 96{
97 int status;
98
97 /* some units seem to need this reset, others reject it utterly. 99 /* some units seem to need this reset, others reject it utterly.
98 * FIXME be more like "naplink" or windows drivers. 100 * FIXME be more like "naplink" or windows drivers.
99 */ 101 */
100 (void) pl_set_QuickLink_features(dev, 102 status = pl_set_QuickLink_features(dev,
101 PL_S_EN|PL_RESET_OUT|PL_RESET_IN|PL_PEER_E); 103 PL_S_EN|PL_RESET_OUT|PL_RESET_IN|PL_PEER_E);
104 if (status != 0 && netif_msg_probe(dev))
105 netif_dbg(dev, link, dev->net, "pl_reset --> %d\n", status);
102 return 0; 106 return 0;
103} 107}
104 108