Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151361
b: refs/heads/master
c: e05b8e6
h: refs/heads/master
i:
  151359: 648c969
v: v3
  • Loading branch information
Pete Zaitcev authored and Greg Kroah-Hartman committed Jun 16, 2009
1 parent c514411 commit 13a8662
Show file tree
Hide file tree
Showing 2 changed files with 9 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: bf92c1906e4f294a48fafc15755c65af636195e0
refs/heads/master: e05b8e6e1066e7583dbb6b00407508797b737995
14 changes: 8 additions & 6 deletions trunk/drivers/usb/storage/initializers.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ int usb_stor_euscsi_init(struct us_data *us)
us->iobuf[0] = 0x1;
result = usb_stor_control_msg(us, us->send_ctrl_pipe,
0x0C, USB_RECIP_INTERFACE | USB_TYPE_VENDOR,
0x01, 0x0, us->iobuf, 0x1, 5*HZ);
0x01, 0x0, us->iobuf, 0x1, 5000);
US_DEBUGP("-- result is %d\n", result);

return 0;
Expand Down Expand Up @@ -80,14 +80,16 @@ int usb_stor_ucr61s2b_init(struct us_data *us)

res = usb_stor_bulk_transfer_buf(us, us->send_bulk_pipe, bcb,
US_BULK_CB_WRAP_LEN, &partial);
if(res)
return res;
if (res)
return -EIO;

US_DEBUGP("Getting status packet...\n");
res = usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe, bcs,
US_BULK_CS_WRAP_LEN, &partial);
if (res)
return -EIO;

return (res ? -1 : 0);
return 0;
}

/* This places the HUAWEI E220 devices in multi-port mode */
Expand All @@ -99,6 +101,6 @@ int usb_stor_huawei_e220_init(struct us_data *us)
USB_REQ_SET_FEATURE,
USB_TYPE_STANDARD | USB_RECIP_DEVICE,
0x01, 0x0, NULL, 0x0, 1000);
US_DEBUGP("usb_control_msg performing result is %d\n", result);
return (result ? 0 : -1);
US_DEBUGP("Huawei mode set result is %d\n", result);
return (result ? 0 : -ENODEV);
}

0 comments on commit 13a8662

Please sign in to comment.