]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ses: Fix SAS device detection in enclosure
authorEwan D. Milne <emilne@redhat.com>
Mon, 9 Jan 2017 21:33:36 +0000 (16:33 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 17 Jan 2017 18:58:57 +0000 (13:58 -0500)
commitaa704bd4798cb2f737d74a8c2299deb8cbdfc8be
tree03734392f22fdafef98505897cd9855688ed2ec2
parent8978955b31ccff8a5853546b9111931bbbbaf98a
scsi: ses: Fix SAS device detection in enclosure

The call to scsi_is_sas_rphy() needs to be made on the SAS end_device,
not on the SCSI device.

Fixes: 39b8e8edcdac ("ses: use scsi_is_sas_rphy instead of is_sas_attached")
Signed-off-by: Ewan D. Milne <emilne@redhat.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ses.c