提交 24d24c62 编写于 作者: J Jussi Kivilinna 提交者: John W. Linville

zd1211rw: add useful debug output

Signed-off-by: NJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 ab419e9b
...@@ -411,8 +411,10 @@ static void int_urb_complete(struct urb *urb) ...@@ -411,8 +411,10 @@ static void int_urb_complete(struct urb *urb)
case -ENOENT: case -ENOENT:
case -ECONNRESET: case -ECONNRESET:
case -EPIPE: case -EPIPE:
dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status);
return; return;
default: default:
dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status);
goto resubmit; goto resubmit;
} }
...@@ -613,6 +615,7 @@ static void handle_rx_packet(struct zd_usb *usb, const u8 *buffer, ...@@ -613,6 +615,7 @@ static void handle_rx_packet(struct zd_usb *usb, const u8 *buffer,
static void rx_urb_complete(struct urb *urb) static void rx_urb_complete(struct urb *urb)
{ {
int r;
struct zd_usb *usb; struct zd_usb *usb;
struct zd_usb_rx *rx; struct zd_usb_rx *rx;
const u8 *buffer; const u8 *buffer;
...@@ -627,6 +630,7 @@ static void rx_urb_complete(struct urb *urb) ...@@ -627,6 +630,7 @@ static void rx_urb_complete(struct urb *urb)
case -ENOENT: case -ENOENT:
case -ECONNRESET: case -ECONNRESET:
case -EPIPE: case -EPIPE:
dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status);
return; return;
default: default:
dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status); dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status);
...@@ -668,7 +672,9 @@ static void rx_urb_complete(struct urb *urb) ...@@ -668,7 +672,9 @@ static void rx_urb_complete(struct urb *urb)
} }
resubmit: resubmit:
usb_submit_urb(urb, GFP_ATOMIC); r = usb_submit_urb(urb, GFP_ATOMIC);
if (r)
dev_dbg_f(urb_dev(urb), "urb %p resubmit error %d\n", urb, r);
} }
static struct urb *alloc_rx_urb(struct zd_usb *usb) static struct urb *alloc_rx_urb(struct zd_usb *usb)
...@@ -1001,6 +1007,7 @@ int zd_usb_tx(struct zd_usb *usb, struct sk_buff *skb) ...@@ -1001,6 +1007,7 @@ int zd_usb_tx(struct zd_usb *usb, struct sk_buff *skb)
r = usb_submit_urb(urb, GFP_ATOMIC); r = usb_submit_urb(urb, GFP_ATOMIC);
if (r) { if (r) {
dev_dbg_f(zd_usb_dev(usb), "error submit urb %p %d\n", urb, r);
usb_unanchor_urb(urb); usb_unanchor_urb(urb);
skb_unlink(skb, &tx->submitted_skbs); skb_unlink(skb, &tx->submitted_skbs);
goto error; goto error;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册