diff options
| author | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
| commit | 1ac731c529cd4d6adbce134754b51ff7d822b145 (patch) | |
| tree | 143ab3f35ca5f3b69f583c84e6964b17139c2ec1 /drivers/net/wireless/ath/ath11k/ahb.c | |
| parent | 07b4c950f27bef0362dc6ad7ee713aab61d58149 (diff) | |
| parent | 54116d442e001e1b6bd482122043b1870998a1f3 (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.6 merge window.
Diffstat (limited to 'drivers/net/wireless/ath/ath11k/ahb.c')
| -rw-r--r-- | drivers/net/wireless/ath/ath11k/ahb.c | 16 | 
1 files changed, 11 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath11k/ahb.c b/drivers/net/wireless/ath/ath11k/ahb.c index 920abce9053a..5cbba9a8b6ba 100644 --- a/drivers/net/wireless/ath/ath11k/ahb.c +++ b/drivers/net/wireless/ath/ath11k/ahb.c @@ -874,11 +874,11 @@ static int ath11k_ahb_setup_msi_resources(struct ath11k_base *ab)  	ab->pci.msi.ep_base_data = int_prop + 32;  	for (i = 0; i < ab->pci.msi.config->total_vectors; i++) { -		res = platform_get_resource(pdev, IORESOURCE_IRQ, i); -		if (!res) -			return -ENODEV; +		ret = platform_get_irq(pdev, i); +		if (ret < 0) +			return ret; -		ab->pci.msi.irqs[i] = res->start; +		ab->pci.msi.irqs[i] = ret;  	}  	set_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags); @@ -1078,6 +1078,12 @@ static int ath11k_ahb_fw_resource_deinit(struct ath11k_base *ab)  	struct iommu_domain *iommu;  	size_t unmapped_size; +	/* Chipsets not requiring MSA would have not initialized +	 * MSA resources, return success in such cases. +	 */ +	if (!ab->hw_params.fixed_fw_mem) +		return 0; +  	if (ab_ahb->fw.use_tz)  		return 0; @@ -1174,7 +1180,7 @@ static int ath11k_ahb_probe(struct platform_device *pdev)  		 * to a new space for accessing them.  		 */  		ab->mem_ce = ioremap(ce_remap->base, ce_remap->size); -		if (IS_ERR(ab->mem_ce)) { +		if (!ab->mem_ce) {  			dev_err(&pdev->dev, "ce ioremap error\n");  			ret = -ENOMEM;  			goto err_core_free;  |