Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321729
b: refs/heads/master
c: 1e65848
h: refs/heads/master
i:
  321727: e497e7e
v: v3
  • Loading branch information
Mark Ferrell authored and Greg Kroah-Hartman committed Aug 15, 2012
1 parent 73d49e3 commit d24a469
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: f1b5c997e68533df1f96dcd3068a231bca495603
refs/heads/master: 1e658489ba8d87b7c89ca6f734b8319acc534dbc
7 changes: 3 additions & 4 deletions trunk/drivers/usb/serial/mos7840.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@
* Defines used for sending commands to port
*/

#define WAIT_FOR_EVER (HZ * 0) /* timeout urb is wait for ever */
#define MOS_WDR_TIMEOUT (HZ * 5) /* default urb timeout */
#define MOS_WDR_TIMEOUT 5000 /* default urb timeout */

#define MOS_PORT1 0x0200
#define MOS_PORT2 0x0300
Expand Down Expand Up @@ -1347,7 +1346,7 @@ static void mos7840_close(struct usb_serial_port *port)
static void mos7840_block_until_chase_response(struct tty_struct *tty,
struct moschip_port *mos7840_port)
{
int timeout = 1 * HZ;
int timeout = msecs_to_jiffies(1000);
int wait = 10;
int count;

Expand Down Expand Up @@ -2675,7 +2674,7 @@ static int mos7840_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, MOS_WDR_TIMEOUT);
return 0;
error:
for (/* nothing */; i >= 0; i--) {
Expand Down

0 comments on commit d24a469

Please sign in to comment.