mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-16 09:34:22 +08:00
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. dcc02c19cc
("sata_sil24: use dma_set_mask_and_coherent").
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
This commit is contained in:
parent
0805e94565
commit
ea63a89901
@ -642,13 +642,8 @@ 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");
|
||||
dev_err(dev, "Failed to enable 64-bit DMA.\n");
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user