]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ahci: Check and set 64-bit DMA mask for platform AHCI driver
authorSuravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Thu, 12 Jun 2014 17:40:23 +0000 (12:40 -0500)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:17:26 +0000 (21:17 -0600)
commit394a16ab605d8685c830c4d0b8add49f85dd498f
tree86dbe100a388434d46fc0c7226e580f119fa97c9
parentf07ff44f2b9b710466aaa2db0630aa8af67d58a4
ahci: Check and set 64-bit DMA mask for platform AHCI driver

The current platform AHCI driver does not set the dma_mask correctly
for 64-bit DMA capable AHCI controller. This patch checks the AHCI
capability bit and set the dma_mask and coherent_dma_mask accordingly.

Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Suman Tripathi <stripathi@apm.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
(cherry picked from commit cc7a9e27562cd78a1dc885504086fab24addce40)
drivers/ata/libahci_platform.c