Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303616
b: refs/heads/master
c: 08813d3
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Apr 25, 2012
1 parent 4002188 commit bbcd610
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2385f3c3c757b6ffb766c320df4a7f7a45593f24
refs/heads/master: 08813d35d2ac6f304a53eb3a9ee59283fa7cc67f
19 changes: 13 additions & 6 deletions trunk/drivers/input/misc/yealink.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,8 @@ static void urb_irq_callback(struct urb *urb)
int ret, status = urb->status;

if (status)
err("%s - urb status %d", __func__, status);
dev_err(&yld->udev->dev, "%s - urb status %d\n",
__func__, status);

switch (yld->irq_data->cmd) {
case CMD_KEYPRESS:
Expand All @@ -443,15 +444,18 @@ static void urb_irq_callback(struct urb *urb)
break;

default:
err("unexpected response %x", yld->irq_data->cmd);
dev_err(&yld->udev->dev, "unexpected response %x\n",
yld->irq_data->cmd);
}

yealink_do_idle_tasks(yld);

if (!yld->shutdown) {
ret = usb_submit_urb(yld->urb_ctl, GFP_ATOMIC);
if (ret && ret != -EPERM)
err("%s - usb_submit_urb failed %d", __func__, ret);
dev_err(&yld->udev->dev,
"%s - usb_submit_urb failed %d\n",
__func__, ret);
}
}

Expand All @@ -461,7 +465,8 @@ static void urb_ctl_callback(struct urb *urb)
int ret = 0, status = urb->status;

if (status)
err("%s - urb status %d", __func__, status);
dev_err(&yld->udev->dev, "%s - urb status %d\n",
__func__, status);

switch (yld->ctl_data->cmd) {
case CMD_KEYPRESS:
Expand All @@ -479,7 +484,8 @@ static void urb_ctl_callback(struct urb *urb)
}

if (ret && ret != -EPERM)
err("%s - usb_submit_urb failed %d", __func__, ret);
dev_err(&yld->udev->dev, "%s - usb_submit_urb failed %d\n",
__func__, ret);
}

/*******************************************************************************
Expand Down Expand Up @@ -909,7 +915,8 @@ static int usb_probe(struct usb_interface *intf, const struct usb_device_id *id)
pipe = usb_rcvintpipe(udev, endpoint->bEndpointAddress);
ret = usb_maxpacket(udev, pipe, usb_pipeout(pipe));
if (ret != USB_PKT_LEN)
err("invalid payload size %d, expected %zd", ret, USB_PKT_LEN);
dev_err(&intf->dev, "invalid payload size %d, expected %zd\n",
ret, USB_PKT_LEN);

/* initialise irq urb */
usb_fill_int_urb(yld->urb_irq, udev, pipe, yld->irq_data,
Expand Down

0 comments on commit bbcd610

Please sign in to comment.