diff options
author | Hannes Reinecke <hare@suse.de> | 2014-11-05 07:08:20 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-11-05 11:22:06 -0500 |
commit | 1cbd772d9aaf6c697935cb855860b66cebacf950 (patch) | |
tree | fe83656bbb9a39f4a8b85ebb6afce18b05492840 /drivers/scsi/pm8001 | |
parent | 9a23c1d6f0f5dbac4c9b73fa6cea7c9ee3d29074 (diff) |
libsas: use ata_dev_classify()
Use the ata device class from libata in libsas instead of checking
the supported command set and switch to using ata_dev_classify()
instead of our own method.
Cc: Tejun Heo <tj@kernel.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/scsi/pm8001')
-rw-r--r-- | drivers/scsi/pm8001/pm8001_hwi.c | 2 | ||||
-rw-r--r-- | drivers/scsi/pm8001/pm80xx_hwi.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/pm8001/pm8001_hwi.c b/drivers/scsi/pm8001/pm8001_hwi.c index 933f21471951..96dcc097a463 100644 --- a/drivers/scsi/pm8001/pm8001_hwi.c +++ b/drivers/scsi/pm8001/pm8001_hwi.c | |||
@@ -4367,7 +4367,7 @@ static int pm8001_chip_sata_req(struct pm8001_hba_info *pm8001_ha, | |||
4367 | PM8001_IO_DBG(pm8001_ha, pm8001_printk("PIO\n")); | 4367 | PM8001_IO_DBG(pm8001_ha, pm8001_printk("PIO\n")); |
4368 | } | 4368 | } |
4369 | if (task->ata_task.use_ncq && | 4369 | if (task->ata_task.use_ncq && |
4370 | dev->sata_dev.command_set != ATAPI_COMMAND_SET) { | 4370 | dev->sata_dev.class != ATA_DEV_ATAPI) { |
4371 | ATAP = 0x07; /* FPDMA */ | 4371 | ATAP = 0x07; /* FPDMA */ |
4372 | PM8001_IO_DBG(pm8001_ha, pm8001_printk("FPDMA\n")); | 4372 | PM8001_IO_DBG(pm8001_ha, pm8001_printk("FPDMA\n")); |
4373 | } | 4373 | } |
diff --git a/drivers/scsi/pm8001/pm80xx_hwi.c b/drivers/scsi/pm8001/pm80xx_hwi.c index b06443a0db2d..05cce463ab01 100644 --- a/drivers/scsi/pm8001/pm80xx_hwi.c +++ b/drivers/scsi/pm8001/pm80xx_hwi.c | |||
@@ -4077,7 +4077,7 @@ static int pm80xx_chip_sata_req(struct pm8001_hba_info *pm8001_ha, | |||
4077 | PM8001_IO_DBG(pm8001_ha, pm8001_printk("PIO\n")); | 4077 | PM8001_IO_DBG(pm8001_ha, pm8001_printk("PIO\n")); |
4078 | } | 4078 | } |
4079 | if (task->ata_task.use_ncq && | 4079 | if (task->ata_task.use_ncq && |
4080 | dev->sata_dev.command_set != ATAPI_COMMAND_SET) { | 4080 | dev->sata_dev.class != ATA_DEV_ATAPI) { |
4081 | ATAP = 0x07; /* FPDMA */ | 4081 | ATAP = 0x07; /* FPDMA */ |
4082 | PM8001_IO_DBG(pm8001_ha, pm8001_printk("FPDMA\n")); | 4082 | PM8001_IO_DBG(pm8001_ha, pm8001_printk("FPDMA\n")); |
4083 | } | 4083 | } |