Skip to content

Commit

Permalink
[PATCH] USB: fix ub issues
Browse files Browse the repository at this point in the history
This smoothes two imperfections:
- Increase number of LUNs per device from 4 to 9. The best solution
  would be to remove this limit altogether, but that has to wait until
  the time when more than 26 hosts are allowed.
- Replace mdelay with msleep in a probing routine.

Signed-off-by: Pete Zaitcev <zaitcev@yahoo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Pete Zaitcev authored and Greg Kroah-Hartman committed Jun 9, 2005
1 parent 03e49d4 commit 9f793d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/block/ub.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
* This many LUNs per USB device.
* Every one of them takes a host, see UB_MAX_HOSTS.
*/
#define UB_MAX_LUNS 4
#define UB_MAX_LUNS 9

/*
*/
Expand Down Expand Up @@ -2100,7 +2100,7 @@ static int ub_probe(struct usb_interface *intf,
nluns = rc;
break;
}
mdelay(100);
msleep(100);
}

for (i = 0; i < nluns; i++) {
Expand Down

0 comments on commit 9f793d2

Please sign in to comment.