]> Pileus Git - ~andy/linux/commitdiff
sata highbank: enable 64-bit DMA mask when using LPAE
authorRob Herring <rob.herring@calxeda.com>
Wed, 7 Aug 2013 15:52:35 +0000 (10:52 -0500)
committerTejun Heo <tj@kernel.org>
Fri, 9 Aug 2013 16:08:32 +0000 (12:08 -0400)
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Mark Langsdorf <mark.langsdorf@calxeda.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/sata_highbank.c

index d047d92a456fbab39c56046d74feb24c9163668f..5eb93de75e43d43f3a4b7abccb14dbdc65a0480b 100644 (file)
@@ -479,6 +479,9 @@ static int ahci_highbank_probe(struct platform_device *pdev)
        if (hpriv->cap & HOST_CAP_PMP)
                pi.flags |= ATA_FLAG_PMP;
 
+       if (hpriv->cap & HOST_CAP_64)
+               dma_set_coherent_mask(dev, DMA_BIT_MASK(64));
+
        /* CAP.NP sometimes indicate the index of the last enabled
         * port, at other times, that of the last possible port, so
         * determining the maximum port number requires looking at