1 --- a/drivers/ata/ahci_platform.c
2 +++ b/drivers/ata/ahci_platform.c
3 @@ -37,12 +37,23 @@ static struct scsi_host_template ahci_pl
7 +static const struct ata_port_info cns3xxx_port_info = {
8 + .flags = AHCI_FLAG_COMMON,
9 + .pio_mask = ATA_PIO4,
10 + .udma_mask = ATA_UDMA6,
11 + .port_ops = &ahci_pmp_retry_srst_ops,
14 static int ahci_probe(struct platform_device *pdev)
16 struct device *dev = &pdev->dev;
17 struct ahci_host_priv *hpriv;
18 + const struct ata_port_info *info = &ahci_port_info;
21 + if (IS_ENABLED(CONFIG_ARCH_CNS3XXX))
22 + info = &cns3xxx_port_info;
24 hpriv = ahci_platform_get_resources(pdev);
26 return PTR_ERR(hpriv);