MLK-11681-2 ata: imx: enable sata on imx6qp
authorRichard Zhu <Richard.Zhu@freescale.com>
Fri, 9 Oct 2015 06:43:24 +0000 (14:43 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:37 +0000 (14:49 -0500)
Since the version of the imx6qp's ahci controller
is same to the version of imx6q ahci controller.
So, this work-around should be applied to imx6qp
ahci too.

Signed-off-by: Richard Zhu <Richard.Zhu@freescale.com>
(cherry picked from commit 31a7eab5be9843263535306dbaa08592b66714e5)

drivers/ata/ahci_imx.c

index bf7caa6..02e1858 100644 (file)
@@ -629,7 +629,7 @@ static int imx_ahci_probe(struct platform_device *pdev)
        * which is present on mx6q, and not on mx53,
        * we should use sg_tablesize = 1 for reliable operation
        */
-       if (imxpriv->type == AHCI_IMX6Q) {
+       if (imxpriv->type == AHCI_IMX6Q || imxpriv->type == AHCI_IMX6QP) {
                dma_addr_t dma;
 
                ahci_platform_sht.sg_tablesize = 1;