Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376733
b: refs/heads/master
c: 849513a
h: refs/heads/master
i:
  376731: 6dbd4e2
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed May 29, 2013
1 parent 99bee04 commit c898aa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 6c13ff68a7ce01da7a51b44241a7aad8eaaedde7
refs/heads/master: 849513a7809175420d353625b6f651d961e99d49
6 changes: 3 additions & 3 deletions trunk/drivers/usb/serial/mos7720.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#define DRIVER_DESC "Moschip USB Serial Driver"

/* default urb timeout */
#define MOS_WDR_TIMEOUT (HZ * 5)
#define MOS_WDR_TIMEOUT 5000

#define MOS_MAX_PORT 0x02
#define MOS_WRITE 0x0E
Expand Down Expand Up @@ -1938,7 +1938,7 @@ static int mos7720_startup(struct usb_serial *serial)

/* setting configuration feature to one */
usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0),
(__u8)0x03, 0x00, 0x01, 0x00, NULL, 0x00, 5*HZ);
(__u8)0x03, 0x00, 0x01, 0x00, NULL, 0x00, 5000);

/* start the interrupt urb */
ret_val = usb_submit_urb(serial->port[0]->interrupt_in_urb, GFP_KERNEL);
Expand Down Expand Up @@ -1981,7 +1981,7 @@ static void mos7720_release(struct usb_serial *serial)
/* wait for synchronous usb calls to return */
if (mos_parport->msg_pending)
wait_for_completion_timeout(&mos_parport->syncmsg_compl,
MOS_WDR_TIMEOUT);
msecs_to_jiffies(MOS_WDR_TIMEOUT));

parport_remove_port(mos_parport->pp);
usb_set_serial_data(serial, NULL);
Expand Down

0 comments on commit c898aa8

Please sign in to comment.