From: Pete Zaitcev Date: Mon, 6 Jun 2005 20:54:59 +0000 (-0700) Subject: [PATCH] USB: fix ub issues X-Git-Tag: v2.6.12~45^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f793d2c77ec5818679e4747c554d9333cecf476;p=platform%2Fkernel%2Flinux-exynos.git [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 Signed-off-by: Greg Kroah-Hartman --- 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++) {