ses: fix discovery of SATA devices in SAS enclosures
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 9 Dec 2015 20:56:07 +0000 (12:56 -0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 19 Dec 2015 03:29:50 +0000 (19:29 -0800)
commit3f8d6f2a0797e8c650a47e5c1b5c2601a46f4293
treef9df5042372fabe9edb65be5db35821833af39f7
parentbcf508c13385e74972f5cc06d8471d5c100395b0
ses: fix discovery of SATA devices in SAS enclosures

The current discovery routines use the VPD 0x83 inquiry page to find
the device SAS address and match it to the end point in the enclosure.
This doesn't work for SATA devices because expanders (or hosts) simply
make up an endpoint address for STP and thus the address returned by
the VPD page never matches.  Instead of doing this, for SAS attached
devices, match by the direct endpoint address instead.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/Kconfig
drivers/scsi/ses.c