]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/scsi/stex.c
[SCSI] stex: fix id mapping issue
authorEd Lin <ed.lin@promise.com>
Thu, 10 May 2007 04:50:33 +0000 (20:50 -0800)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Wed, 16 May 2007 16:40:21 +0000 (12:40 -0400)
commite0b2e597d5dd8c4f3778545f65c29a9c6aba0e3a
treef76de32a617fed858e9acdc0ac4085a998ad6b72
parent5af23d263c33a3f6fc93facfd87d2a091eff2060
[SCSI] stex: fix id mapping issue

The correct internal mapping of stex controllers should be:
id:0~15, lun:0~7 (st_shasta)
id:0, lun:0~127 (st_yosemite)
id:0~127, lun:0 (st_vsc and st_vsc1)

This patch reports the internal mapping to scsi mid layer,  eliminating
the translation between scsi mid layer and firmware. To achieve this
goal, we also need to:
-- fail the REPORT_LUNS command for st_shasta because the
   firmware is known to not report all actual luns
-- add an entry in scsi_devindo.c to force sequential lun scan
   (for st_shasta controllers)
-- fail the REPORT_LUNS command for console device
-- remove special handling of REPORT_LUNS command for
   st_yosemite, as there is no translation mapping now

Signed-off-by: Ed Lin <ed.lin@promise.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_devinfo.c
drivers/scsi/stex.c