Commit ea63a899 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Damien Le Moal
Browse files

ata: libahci_platform: Remove bogus 32-bit DMA mask attempt



If 64-bit mask attempt fails, the 32-bit will fail by the very same reason.
Don't even try the latter. It's a continuation of the changes that contains,
e.g. dcc02c19 ("sata_sil24: use dma_set_mask_and_coherent").

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
parent 0805e945
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -641,15 +641,10 @@ int ahci_platform_init_host(struct platform_device *pdev,

	if (hpriv->cap & HOST_CAP_64) {
		rc = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(64));
		if (rc) {
			rc = dma_coerce_mask_and_coherent(dev,
							  DMA_BIT_MASK(32));
		if (rc) {
			dev_err(dev, "Failed to enable 64-bit DMA.\n");
			return rc;
		}
			dev_warn(dev, "Enable 32-bit DMA instead of 64-bit.\n");
		}
	}

	rc = ahci_reset_controller(host);