diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-01-25 09:03:36 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-25 12:56:54 -0500 |
commit | bde027b456dc56a3673f886872a6425adc5e9aa4 (patch) | |
tree | 9453f2236e1419b0d43929935c7a99f00906f1cf /drivers/usb/storage | |
parent | 59e931c47fe44de354ced20136a655d4725a2b61 (diff) |
usb-uas: set max_lun and max_channel
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>
Diffstat (limited to 'drivers/usb/storage')
-rw-r--r-- | drivers/usb/storage/uas.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c index ebb99728551c..d966b59f7d7b 100644 --- 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) | |||
991 | 991 | ||
992 | shost->max_cmd_len = 16 + 252; | 992 | shost->max_cmd_len = 16 + 252; |
993 | shost->max_id = 1; | 993 | shost->max_id = 1; |
994 | shost->max_lun = 256; | ||
995 | shost->max_channel = 0; | ||
994 | shost->sg_tablesize = udev->bus->sg_tablesize; | 996 | shost->sg_tablesize = udev->bus->sg_tablesize; |
995 | 997 | ||
996 | devinfo->intf = intf; | 998 | devinfo->intf = intf; |