Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be64beb4 authored by Suravee Suthikulpanit's avatar Suravee Suthikulpanit Committed by Tejun Heo
Browse files

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: default avatarSuravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Suggested-by: default avatarBartlomiej 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: default avatarTejun Heo <tj@kernel.org>
parent cc7a9e27
Loading
Loading
Loading
Loading
+0 −10
Original line number Original line Diff line number Diff line
@@ -440,16 +440,6 @@ static int xgene_ahci_probe(struct platform_device *pdev)
	/* Configure the host controller */
	/* Configure the host controller */
	xgene_ahci_hw_init(hpriv);
	xgene_ahci_hw_init(hpriv);


	/*
	 * Setup DMA mask. This is preliminary until the DMA range is sorted
	 * out.
	 */
	rc = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64));
	if (rc) {
		dev_err(dev, "Unable to set dma mask\n");
		goto disable_resources;
	}

	hflags = AHCI_HFLAG_NO_PMP | AHCI_HFLAG_YES_NCQ;
	hflags = AHCI_HFLAG_NO_PMP | AHCI_HFLAG_YES_NCQ;


	rc = ahci_platform_init_host(pdev, hpriv, &xgene_ahci_port_info,
	rc = ahci_platform_init_host(pdev, hpriv, &xgene_ahci_port_info,