Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f793d2c authored by Pete Zaitcev's avatar Pete Zaitcev Committed by Greg Kroah-Hartman
Browse files

[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: default avatarPete Zaitcev <zaitcev@yahoo.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 03e49d40
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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++) {