All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kalle Valo <kvalo@codeaurora.org>
To: Anilkumar Kolli <akolli@codeaurora.org>
Cc: ath11k@lists.infradead.org, devicetree@vger.kernel.org,
	linux-wireless@vger.kernel.org
Subject: Re: [PATCH v6 3/3] ath11k: add IPQ6018 support
Date: Mon, 7 Sep 2020 10:01:30 +0000	[thread overview]
Message-ID: <0101017468037386-257bc211-f06b-4c45-87ea-aba74c7c68e7-000000@us-west-2.amazonses.com> (raw)
In-Reply-To: <1598287470-1871-4-git-send-email-akolli@codeaurora.org> (Anilkumar Kolli's message of "Mon, 24 Aug 2020 22:14:30 +0530")

Anilkumar Kolli <akolli@codeaurora.org> writes:

> IPQ6018 has one 5G and one 2G radio with 2x2,
> shares ipq8074 configurations.
>
> Signed-off-by: Anilkumar Kolli <akolli@codeaurora.org>

[...]

> @@ -890,9 +995,15 @@ static int ath11k_ahb_probe(struct platform_device *pdev)
>  		goto err_hal_srng_deinit;
>  	}
>  
> -	ab->hw_params.svc_to_ce_map_len =
> +	if (ab->hw_rev == ATH11K_HW_IPQ8074) {
> +		ab->hw_params.svc_to_ce_map_len =
>  			ARRAY_SIZE(target_service_to_ce_map_wlan_ipq8074);
> -	ab->hw_params.svc_to_ce_map = target_service_to_ce_map_wlan_ipq8074;
> +		ab->hw_params.svc_to_ce_map = target_service_to_ce_map_wlan_ipq8074;
> +	} else if (ab->hw_rev == ATH11K_HW_IPQ6018) {
> +		ab->hw_params.svc_to_ce_map_len =
> +			ARRAY_SIZE(target_service_to_ce_map_wlan_ipq6018);
> +		ab->hw_params.svc_to_ce_map = target_service_to_ce_map_wlan_ipq6018;
> +	}

The idea of having ab->hw_params is to avoid the need for hw_rev
sprinkled all over the code, this here defeats the purpose. I recommend
checking if my proposal from an earlier version is implementable:

"You could copy the map arrays to hw.c, as an example see how
 ath11k_hw_ring_mask_ipq8074 is implemented. That way we don't need any
 new hw_rev checks."


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

  reply	other threads:[~2020-09-07 10:01 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-24 16:44 [PATCH v6 0/3] ath11k: Add IPQ6018 support Anilkumar Kolli
2020-08-24 16:44 ` Anilkumar Kolli
2020-08-24 16:44 ` [PATCH v6 1/3] dt: bindings: net: update compatible for ath11k Anilkumar Kolli
2020-08-24 16:44   ` Anilkumar Kolli
2020-08-24 21:27   ` Rob Herring
2020-08-24 21:27     ` Rob Herring
2020-08-24 16:44 ` [PATCH v6 2/3] ath11k: copy ce service configs to hw_params Anilkumar Kolli
2020-08-24 16:44   ` Anilkumar Kolli
2020-09-07  9:59   ` Kalle Valo
2020-09-07  9:59   ` Kalle Valo
     [not found]   ` <87363t52nj.fsf@codeaurora.org>
2020-09-07 10:59     ` akolli
2020-09-07 16:25       ` Kalle Valo
2020-09-07 16:25       ` Kalle Valo
2020-09-07 10:59     ` akolli
2020-08-24 16:44 ` [PATCH v6 3/3] ath11k: add IPQ6018 support Anilkumar Kolli
2020-08-24 16:44   ` Anilkumar Kolli
2020-09-07 10:01   ` Kalle Valo [this message]
2020-09-07 10:01   ` Kalle Valo
     [not found]   ` <87y2ll3nzh.fsf@codeaurora.org>
2020-09-07 11:01     ` akolli
2020-09-07 11:01     ` akolli
2020-09-07  9:57 ` [PATCH v6 0/3] ath11k: Add " Kalle Valo
2020-09-07  9:57 ` Kalle Valo
     [not found] ` <877dt552q1.fsf@codeaurora.org>
2020-09-07 11:03   ` akolli
2020-09-07 11:03   ` akolli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0101017468037386-257bc211-f06b-4c45-87ea-aba74c7c68e7-000000@us-west-2.amazonses.com \
    --to=kvalo@codeaurora.org \
    --cc=akolli@codeaurora.org \
    --cc=ath11k@lists.infradead.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.