Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ahci/xgene: Remove logic to set 64-bit DMA mask

Instead of doing the check here, this should be handled
in the common AHCI platform code.

Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Suggested-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: Loc Ho <lho@apm.com>
Cc: Tuan Phan <tphan@apm.com>
Cc: Suman Triphati <stripathi@apm.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Suravee Suthikulpanit and committed by
Tejun Heo
be64beb4 cc7a9e27

-10
-10
drivers/ata/ahci_xgene.c
··· 440 440 /* Configure the host controller */ 441 441 xgene_ahci_hw_init(hpriv); 442 442 443 - /* 444 - * Setup DMA mask. This is preliminary until the DMA range is sorted 445 - * out. 446 - */ 447 - rc = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64)); 448 - if (rc) { 449 - dev_err(dev, "Unable to set dma mask\n"); 450 - goto disable_resources; 451 - } 452 - 453 443 hflags = AHCI_HFLAG_NO_PMP | AHCI_HFLAG_YES_NCQ; 454 444 455 445 rc = ahci_platform_init_host(pdev, hpriv, &xgene_ahci_port_info,