Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5325e92f authored by simon's avatar simon Committed by David S. Miller
Browse files

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: default avatarSimon Wood <simon@mungewell.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 647da406
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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;
}