[SCSI] scsi_lib: fix recognition of cache type of Initio SBP-2 bridges
authorAl Viro <viro@ftp.linux.org.uk>
Thu, 23 Feb 2006 01:03:16 +0000 (02:03 +0100)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Tue, 28 Feb 2006 05:31:07 +0000 (23:31 -0600)
commit6d73c8514da241c6b1b8d710a6294786604d7142
tree896fdd4d3f2d7094dc75a774f8ae2128d0fcb1c5
parentfc25307d06f524d6c04b371b236dc9e62186058c
[SCSI] scsi_lib: fix recognition of cache type of Initio SBP-2 bridges

Regardless what mode page was asked for, Initio INIC-14x0 and
INIC-2430 always return page 6 without mode page headers.  Try to
recognise this as a special case in scsi_mode_sense and setting the
mode sense headers accordingly.

Signed-off-by: Al Viro <viro@ftp.linux.org.uk>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_lib.c
drivers/scsi/sd.c