scsi: hisi_sas: use dev_is_sata to identify SATA or SAS disk
authorXiang Chen <chenxiang66@hisilicon.com>
Wed, 22 Mar 2017 17:25:38 +0000 (01:25 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Mar 2017 15:12:02 +0000 (11:12 -0400)
commit6073b7719a63b42f0272917b4b2b552f5002f53d
tree4fbbac5e3f1a16ba6ea96754ea9fd50fb95e5605
parent14d3f397f6496e04a6b9876a44469fbfaea287f8
scsi: hisi_sas: use dev_is_sata to identify SATA or SAS disk

When SMP IO is sent, sas_protocol_ata couldn't judge whether the disk is
SATA or SAS disk.  So use dev_is_sata to identify SATA or SAS disk.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c