devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lorenzo Bianconi <lorenzo@kernel.org>
To: nbd@nbd.name
Cc: linux-wireless@vger.kernel.org, lorenzo.bianconi@redhat.com,
	sean.wang@mediatek.com, ryder.lee@mediatek.com,
	shayne.chen@mediatek.com, devicetree@vger.kernel.org,
	robh@kernel.org
Subject: [PATCH v2 5/7] mt76: mt7615: do not use mt7615 single-sku values for mt7663
Date: Sat, 10 Apr 2021 00:51:50 +0200	[thread overview]
Message-ID: <acd1451c44cf5f2a8f09095491acbef736b8c9a2.1618008449.git.lorenzo@kernel.org> (raw)
In-Reply-To: <cover.1618008449.git.lorenzo@kernel.org>

mt7663 mcu relies on different APIs to configure APIs per-rate power limit
respect to mt7615 driver.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
index 8c0a21e243db..195596194b51 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
@@ -2202,6 +2202,11 @@ static void mt7615_mcu_set_txpower_sku(struct mt7615_phy *phy, u8 *sku)
 					      &limits, tx_power);
 	mphy->txpower_cur = tx_power;
 
+	if (is_mt7663(mphy->dev)) {
+		memset(sku, tx_power, MT_SKU_4SS_DELTA + 1);
+		return;
+	}
+
 	for (i = 0; i < MT_SKU_1SS_DELTA; i++)
 		sku[i] = limits_array[sku_mapping[i]];
 
-- 
2.30.2


  parent reply	other threads:[~2021-04-09 22:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-09 22:51 [PATCH v2 0/7] introduce single-sku support for mt7663/mt7921 drivers Lorenzo Bianconi
2021-04-09 22:51 ` [PATCH v2 1/7] dt-bindings:net:wireless:mediatek,mt76: introduce power-limits node Lorenzo Bianconi
2021-04-12 19:06   ` Rob Herring
2021-04-09 22:51 ` [PATCH v2 2/7] mt76: add functions for parsing rate power limits from DT Lorenzo Bianconi
2021-04-09 22:51 ` [PATCH v2 3/7] mt76: extend DT rate power limits to support 11ax devices Lorenzo Bianconi
2021-04-09 22:51 ` [PATCH v2 4/7] mt76: mt7615: implement support for using DT rate power limits Lorenzo Bianconi
2021-04-09 22:51 ` Lorenzo Bianconi [this message]
2021-04-09 22:51 ` [PATCH v2 6/7] mt76: introduce single-sku support for mt7663/mt7921 Lorenzo Bianconi
2021-04-09 22:51 ` [PATCH v2 7/7] mt76: mt7921: add dumping Tx power table Lorenzo Bianconi

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=acd1451c44cf5f2a8f09095491acbef736b8c9a2.1618008449.git.lorenzo@kernel.org \
    --to=lorenzo@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=lorenzo.bianconi@redhat.com \
    --cc=nbd@nbd.name \
    --cc=robh@kernel.org \
    --cc=ryder.lee@mediatek.com \
    --cc=sean.wang@mediatek.com \
    --cc=shayne.chen@mediatek.com \
    /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).