projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59e931c
)
usb-uas: set max_lun and max_channel
author
Gerd Hoffmann
<kraxel@redhat.com>
Fri, 25 Jan 2013 14:03:36 +0000
(15:03 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 25 Jan 2013 17:56:54 +0000
(09:56 -0800)
256 luns is what the sam-4 address method 0 can handle and what
the qemu uas emulation supports. So pick that for now.
[ v2: unlike the other two max_* fields max_channel isn't max+1 ]
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/uas.c
patch
|
blob
|
history
diff --git
a/drivers/usb/storage/uas.c
b/drivers/usb/storage/uas.c
index ebb99728551c9fae89687f64c6eacff99fceb460..d966b59f7d7b264fcd712963e97f487fee563266 100644
(file)
--- a/
drivers/usb/storage/uas.c
+++ b/
drivers/usb/storage/uas.c
@@
-991,6
+991,8
@@
static int uas_probe(struct usb_interface *intf, const struct usb_device_id *id)
shost->max_cmd_len = 16 + 252;
shost->max_id = 1;
+ shost->max_lun = 256;
+ shost->max_channel = 0;
shost->sg_tablesize = udev->bus->sg_tablesize;
devinfo->intf = intf;