Skip to content

Commit 5325e92

Browse files
simondavem330
authored andcommitted
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>
1 parent 647da40 commit 5325e92

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎drivers/net/usb/plusb.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,15 @@ pl_set_QuickLink_features(struct usbnet *dev, int val)
9494

9595
static int pl_reset(struct usbnet *dev)
9696
{
97+
int status;
98+
9799
/* some units seem to need this reset, others reject it utterly.
98100
* FIXME be more like "naplink" or windows drivers.
99101
*/
100-
(void) pl_set_QuickLink_features(dev,
102+
status = pl_set_QuickLink_features(dev,
101103
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);
102106
return 0;
103107
}
104108

0 commit comments

Comments
 (0)