]> err.no Git - linux-2.6/commit
[SCSI] advansys: Support 16-byte commands properly
authorMatthew Wilcox <matthew@wil.cx>
Sun, 9 Sep 2007 14:56:36 +0000 (08:56 -0600)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:48:03 +0000 (14:48 -0400)
commitf05ec594fed6890d38bb8767676f626a4035ba55
tree7eeccddae09d90a8d783ef233037f8f1d334a735
parentb2a7a4ba0497f73295e3f4d20a8cedb1e3d2b1a7
[SCSI] advansys: Support 16-byte commands properly

The SCSI midlayer won't send commands greater than ->max_cmd_len.
So the checks on length in asc_build_req and adv_build_req are obsolete
and can be deleted, but also we have to set the max_cmd_len in
advansys_board_found().  Also move the length definitions together, and
write a helpful comment.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/advansys.c