Skip to contentSkip to conversation

ath11k: Removed the redundant function call in ahb probe

PATCH In review Karthikeyan Periyasamy 2 participants 2 messages Jun 10, 2019 – Jun 12, 2019 Qualcomm Atheros ATH11K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath11k: Removed the redundant function call in ahb probe

Removed dma_set_mask() call in ath11k_ahb_probe() because dma_set_mask_and_coherent() call will do both dma and coherent mask set

---
 drivers/net/wireless/ath/ath11k/ahb.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/net/wireless/ath/ath11k/ahb.c +0 -6
index b97d4d3..c3e487a 100644
@@ -945,12 +945,6 @@ static int ath11k_ahb_probe(struct platform_device *pdev)
 		return PTR_ERR(mem);
 	}
 
-	ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
-	if (ret) {
-		dev_err(&pdev->dev, "failed to set 32-bit dma mask\n");
-		return ret;
-	}
-
 	ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
 	if (ret) {
 		dev_err(&pdev->dev, "failed to set 32-bit consistent dma\n");
Signature · 7 lines
1.9.1


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k
#1 lore raw
Quoted 6 lines · Karthikeyan Periyasamy

Removed dma_set_mask() call in ath11k_ahb_probe() because dma_set_mask_and_coherent() call will do both dma and coherent mask set

Patch applied to ath11k-bringup branch of ath.git, thanks.

430b444a45f9 ath11k: Removed the redundant function call in ahb probe

Signature · 9 lines
https://patchwork.kernel.org/patch/10984575/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k