[SCSI] libsas: fixup target_port_protocols for expanders that don't report sata
authorDan Williams <dan.j.williams@intel.com>
Thu, 9 Feb 2012 07:20:41 +0000 (23:20 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 29 Feb 2012 21:41:51 +0000 (15:41 -0600)
commit77c309f3cdf9e217032dfe330f5881d352bb0436
tree51e9bbbe8f0159d4235971c481c6599cd75abd14
parent899fcf40f3177697ccfb029d0484cb8ec09a51ca
[SCSI] libsas: fixup target_port_protocols for expanders that don't report sata

If discovery returns 0 for target_port_protocols but shows an attached
sata device, just report SAS_PROTOCOL_SATA in the identify data so
userspace can reliably search for sata devices in the domain.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/libsas/sas_expander.c