diff options
author | Pete Zaitcev <zaitcev@redhat.com> | 2005-06-06 13:54:59 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-09 01:38:11 -0700 |
commit | 9f793d2c77ec5818679e4747c554d9333cecf476 (patch) | |
tree | 47904d2099435d4527432479e869311be7c6515b /drivers/block | |
parent | 03e49d40ea3436cae0fe43708f11584130ee4a0c (diff) | |
download | op-kernel-dev-9f793d2c77ec5818679e4747c554d9333cecf476.zip op-kernel-dev-9f793d2c77ec5818679e4747c554d9333cecf476.tar.gz |
[PATCH] USB: fix ub issues
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>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/ub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/ub.c b/drivers/block/ub.c index adc4dcc..19c5e59 100644 --- a/drivers/block/ub.c +++ b/drivers/block/ub.c @@ -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 /* */ @@ -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++) { |