提交 9f793d2c 编写于 作者: P Pete Zaitcev 提交者: Greg Kroah-Hartman

[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: NPete Zaitcev <zaitcev@yahoo.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 03e49d40
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
* This many LUNs per USB device. * This many LUNs per USB device.
* Every one of them takes a host, see UB_MAX_HOSTS. * 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, ...@@ -2100,7 +2100,7 @@ static int ub_probe(struct usb_interface *intf,
nluns = rc; nluns = rc;
break; break;
} }
mdelay(100); msleep(100);
} }
for (i = 0; i < nluns; i++) { for (i = 0; i < nluns; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册