linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org,
	linux-wireless@vger.kernel.org
Cc: bryan.odonoghue@linaro.org, shawn.guo@linaro.org,
	loic.poulain@linaro.org
Subject: [PATCH v2 02/10] wcn36xx: Hook and identify RF_IRIS_WCN3680
Date: Sat, 29 Aug 2020 04:38:38 +0100	[thread overview]
Message-ID: <20200829033846.2167619-3-bryan.odonoghue@linaro.org> (raw)
In-Reply-To: <20200829033846.2167619-1-bryan.odonoghue@linaro.org>

If DT indicates we are dealing with a WCN3680 mark the rf_id field as
RF_IRIS_WCN3680 allowing for further chip-specific logic.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 drivers/net/wireless/ath/wcn36xx/main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c
index 44b8707d3fe9..eb518bd88870 100644
--- a/drivers/net/wireless/ath/wcn36xx/main.c
+++ b/drivers/net/wireless/ath/wcn36xx/main.c
@@ -1309,6 +1309,8 @@ static int wcn36xx_platform_get_resources(struct wcn36xx *wcn,
 	if (iris_node) {
 		if (of_device_is_compatible(iris_node, "qcom,wcn3620"))
 			wcn->rf_id = RF_IRIS_WCN3620;
+		if (of_device_is_compatible(iris_node, "qcom,wcn3680"))
+			wcn->rf_id = RF_IRIS_WCN3680;
 		of_node_put(iris_node);
 	}
 
-- 
2.27.0


  parent reply	other threads:[~2020-08-29  3:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-29  3:38 [PATCH v2 00/10] wcn36xx: Add basic support for wcn3680 up to MCS7/40MHz Bryan O'Donoghue
2020-08-29  3:38 ` [PATCH v2 01/10] wcn36xx: Add a chip identifier for WCN3680 Bryan O'Donoghue
2020-09-02  8:49   ` Kalle Valo
2020-08-29  3:38 ` Bryan O'Donoghue [this message]
2020-08-29  3:38 ` [PATCH v2 03/10] wcn36xx: Add ieee802.11 VHT flags Bryan O'Donoghue
2020-09-02  8:55   ` Kalle Valo
     [not found]   ` <20200902085545.5CC7EC433CA@smtp.codeaurora.org>
2020-09-02  9:46     ` Bryan O'Donoghue
2020-09-02 12:22       ` Kalle Valo
2020-08-29  3:38 ` [PATCH v2 04/10] wcn36xx: Add 802.11ac MCS rates Bryan O'Donoghue
2020-08-29  3:38 ` [PATCH v2 05/10] wcn36xx: Fix warning due to bad rate_idx Bryan O'Donoghue
2020-08-29  3:38 ` [PATCH v2 06/10] wcn36xx: Specify ieee80211_rx_status.nss Bryan O'Donoghue
2020-08-29  3:38 ` [PATCH v2 07/10] wcn36xx: Add 802.11ac HAL param bitfields Bryan O'Donoghue
2020-08-29  3:38 ` [PATCH v2 08/10] wcn36xx: Add Supported rates V1 structure Bryan O'Donoghue
2020-08-29  3:38 ` [PATCH v2 09/10] wcn36xx: Use existing pointers in wcn36xx_smd_config_bss_v1 Bryan O'Donoghue
2020-08-29  3:38 ` [PATCH v2 10/10] wcn36xx: Set feature DOT11AC for wcn3680 Bryan O'Donoghue

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=20200829033846.2167619-3-bryan.odonoghue@linaro.org \
    --to=bryan.odonoghue@linaro.org \
    --cc=kvalo@codeaurora.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=loic.poulain@linaro.org \
    --cc=shawn.guo@linaro.org \
    --cc=wcn36xx@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).