]> git.karo-electronics.de Git - linux-beck.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jan 2017 07:24:44 +0000 (08:24 +0100)
commita07a122ad2a2e03209155fe907bf8b1e6ae4c915
tree2472290282ab3319a95c7c13775ca75fe561d0b0
parent41c6b3e8989e79772a50429d92cf91959bcce96d
scsi: ses: Fix SAS device detection in enclosure

commit 9373eba6cfae48911b977d14323032cd5d161aae upstream.

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

Fixes: 835831c57e9b ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/ses.c