Commit d408e2b1 authored by Brian Norris's avatar Brian Norris Committed by Jeff Garzik

ahci_platform: add STRICT_AHCI platform type

Some platforms need to make use of the AHCI_HFLAG_DELAY_ENGINE flag.
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
Cc: stable@kernel.org
parent 55d5ec31
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
enum ahci_type { enum ahci_type {
AHCI, /* standard platform ahci */ AHCI, /* standard platform ahci */
IMX53_AHCI, /* ahci on i.mx53 */ IMX53_AHCI, /* ahci on i.mx53 */
STRICT_AHCI, /* delayed DMA engine start */
}; };
static struct platform_device_id ahci_devtype[] = { static struct platform_device_id ahci_devtype[] = {
...@@ -35,6 +36,9 @@ static struct platform_device_id ahci_devtype[] = { ...@@ -35,6 +36,9 @@ static struct platform_device_id ahci_devtype[] = {
}, { }, {
.name = "imx53-ahci", .name = "imx53-ahci",
.driver_data = IMX53_AHCI, .driver_data = IMX53_AHCI,
}, {
.name = "strict-ahci",
.driver_data = STRICT_AHCI,
}, { }, {
/* sentinel */ /* sentinel */
} }
...@@ -56,6 +60,13 @@ static const struct ata_port_info ahci_port_info[] = { ...@@ -56,6 +60,13 @@ static const struct ata_port_info ahci_port_info[] = {
.udma_mask = ATA_UDMA6, .udma_mask = ATA_UDMA6,
.port_ops = &ahci_pmp_retry_srst_ops, .port_ops = &ahci_pmp_retry_srst_ops,
}, },
[STRICT_AHCI] = {
AHCI_HFLAGS (AHCI_HFLAG_DELAY_ENGINE),
.flags = AHCI_FLAG_COMMON,
.pio_mask = ATA_PIO4,
.udma_mask = ATA_UDMA6,
.port_ops = &ahci_ops,
},
}; };
static struct scsi_host_template ahci_platform_sht = { static struct scsi_host_template ahci_platform_sht = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment