From patchwork Wed Sep 9 15:36:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 249487 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp524375ilg; Wed, 9 Sep 2020 08:36:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxW8V/xXWzPIpJpYGrZHC00O4sdDw2+P16od5UX2ocOfc97TJJOTd3MiBwhZtz2uIrjgFJt X-Received: by 2002:a05:6638:24c1:: with SMTP id y1mr4446950jat.119.1599665778142; Wed, 09 Sep 2020 08:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665778; cv=none; d=google.com; s=arc-20160816; b=Bks1QjvFnumdItdKf2APcdm/U76DeuXJwuwQl7oT9oanF8ZqpWG1HmngF6tavCfcFh xQ/Yk6Gwcm3nm0aNAyxbjz8nPqPJmi83zbP3gkkE5gNGPQO1kRhWLv3ZC5m2oyJ5HQ0C loSeeQC5neN3dVzXZvvuqalMRe5jDfiFH1jhXI2k6hpVzfjeePtd5NmczMi9rVZhaTUs cNFh/X6OE5AnSxPQ61xMBs+wVEhxTV4wYDma2G/hQvWcLubh27s5duan64B0TdpcVgSa stDw00LgrKkSQBOROnnVShHpHy3Lvq65CXlmio8r9qegOoJSQ/3kJuSkmegx7N2nEL6l MKpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :dkim-signature:dkim-signature; bh=PAJCNamYUq9neIjsgOgyoRc7jO7RoIImrCcAyTrCOGk=; b=JnIch/jZx5vwOqoYGTNXmXyfYE2EcgiRihCBSRle1TE2DvUQHbtD2LfkbUpX1b1pm+ +MU4Mo+t5Xfj1Q/FBG9dGTjJwq+62REcELz+2Xq4VYGjcLKq1sqlhrEU/vOb+VDJJpb6 4+tZsXU7mkJzk6PAYELEC+bsdfrIQXjc/KH3I6EqwsSeKwvGX3JeDWnSEjoKIFEcQ08/ 5oDfusK4dguMqPNBPgAKwhMGuElKdtm8Rbv0op27fWXZehEcGQYbICsfTzLQHDCXit1/ 5M5y+//nTmEgh9JXW6myBcKAc8nF64dqIcL6FxSxmhUPMPDu8YoKxki6e8OMAIwHAS1q f0iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=UYikZMzH; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DDeLUdKf; spf=pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) smtp.mailfrom="wcn36xx-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from merlin.infradead.org (merlin.infradead.org. [2001:8b0:10b:1231::1]) by mx.google.com with ESMTPS id 6si1773441jao.67.2020.09.09.08.36.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:36:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) client-ip=2001:8b0:10b:1231::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=UYikZMzH; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DDeLUdKf; spf=pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) smtp.mailfrom="wcn36xx-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=PAJCNamYUq9neIjsgOgyoRc7jO7RoIImrCcAyTrCOGk=; b=UYikZMzHdbI1VbcQ+JL7CklOgo uMWvo5B4ppXZmCmMEoHrA3RMSuSsfp1etk4nQVUSEIoWXjcH0UT9J9eeY3zXYlmcdQFXeV5rnBxYd zaXQM54WRvQ4TeFF+QNNYVmLF+LWrKWHgxCpAxVKCjC9FAK5vzmLSg9hFBxA/UyTHVpnzLjDt2k4K cgauUG/jKLLM6MPdmYihbS9WRR/5b9GRXcUoj+DXdoxudbFegOKGrUs194Q6jU1629US16LjKg8Zw iwJ/sJCPXmVkhZfcHRME88jTjHRqgW/M43ulwjCICGoKVOrDj68JXHWn/bLlrFS0j7Ty+xSU8cE2T PwbOig0Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG28r-0006aH-U1; Wed, 09 Sep 2020 15:36:14 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG28q-0006Ze-9I for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:36:13 +0000 Received: by mail-wr1-x442.google.com with SMTP id c18so3444440wrm.9 for ; Wed, 09 Sep 2020 08:36:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FoBWz/HuXCSj34hndE9AQdQ7FOo0tm240K7lkUOWDyE=; b=DDeLUdKfoKys+iVA9ZyaME+/++JXoHB59JIpL9uU6NhtFxZiH46zyk10Jop5H8WY6S fvbDg2kaMUu/r3rdjjAyA7MGWsxlX91AP/0pyG+LValUlR/RU18heR9ClJUDlHhTZ2af 3+W1yIEKf047CHFl7bap0pdIPUjRkXAUsNfdKs5olPwjXUhh6WX7xqfebosiaa1nn80i vG9DGNVubMLC93GMi1NetcFZwMJ/pnjx7BvPmB+/AxhyEUQdPLsZNTdVju1A+Y06VpM/ NcjbYFbq0JJUvzqVi2iTRn8gi06C0jDE9rNW/ntfeHHwjP1aDPdrX8Y5qNMqmPqSj8Q2 mUBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FoBWz/HuXCSj34hndE9AQdQ7FOo0tm240K7lkUOWDyE=; b=Jyem0DyH7aruj9FqDJPKzR1jDu0mcjGwKg0KNGQlGTZRCwqSYfyTclRkj9wuVFONbX E3Oc6RGcSv5WCflOgQjakDGYRFsm4WMkYextIua558p/HWWqqhsO6omyEIwYTDYjxqnt 3fU7KnPOfflfZ/g6S++KPGEFxPX39fsaTwajFCQf/csxxNt2zeScWtfWxCQtnAGKISiD a0cM55p6ZMs2vv9zdp43dbuz76uBPyEi1VJxvJ0kudRpPxnv4UFk++81R5WxodKq/Hb7 suEYKgo8CLS257lTxiyUkRU09mUxl2cCfzybN1oqkXUy4SuSv8lfaMVSHIa1YaQ2R6yi E6Kw== X-Gm-Message-State: AOAM530F0KVaSDrGSLqRWX3wHjgndRSbpPk43+0+XBh5g1RXtuSAIUo5 26qjHyz3X9tShtO1aVtfjAW9o5qPgt3oLg== X-Received: by 2002:adf:912b:: with SMTP id j40mr4602964wrj.42.1599665771357; Wed, 09 Sep 2020 08:36:11 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id v204sm4619807wmg.20.2020.09.09.08.36.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:36:10 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 0/5] wcn36xx: PHY modifications to support 80MHz operation Date: Wed, 9 Sep 2020 16:36:55 +0100 Message-Id: <20200909153700.2904977-1-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200909_113612_409888_3F419D2B X-CRM114-Status: GOOD ( 12.10 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:442 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: wcn36xx@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bryan.odonoghue@linaro.org, shawn.guo@linaro.org, loic.poulain@linaro.org Sender: "wcn36xx" Errors-To: wcn36xx-bounces+patch=linaro.org@lists.infradead.org This series is four in a set of seven to add support for wcn3680 at 802.11ac data-rates. In this set we add the ability to configure up the wcn3680 PHY to get onto 80MHz channels. To do that, the upper unused bits of the hw_value field of the struct ieee80211_channel are used to encode additional PHY settings. Accessor macros are provided to encode and decode this additional information. Depending on which channel we are on, we need to configure the PHY into one of four modes representing four potential adjacent 20MHz channels. The modes describe where the primary channel sits in relation to the other three channels giving us 20MHz + 20MHz + 20MHz + 20MHz to get 80MHz. V4: - No functional change. Sending out full set again using --base=ath-202009090652 to aid kernel test robot - https://lore.kernel.org/linux-wireless/20200908182514.2870410-1-bryan.odonoghue@linaro.org/T/#t v3: - No difference between V3 and V2 below https://lore.kernel.org/linux-wireless/20200829033947.2167817-1-bryan.odonoghue@linaro.org/T/#t V2: - No difference between V2 and V1 below V1: https://lore.kernel.org/linux-wireless/87eensldhi.fsf@codeaurora.org/T/#t Bryan O'Donoghue (5): wcn36xx: Add accessor macro HW_VALUE_CHANNEL for hardware channels wcn36xx: Use HW_VALUE_CHANNEL macro to get channel number wcn36xx: Add accessor macro HW_VALUE_PHY for PHY settings wcn36xx: Encode PHY mode for 80MHz channel in hw_value wcn36xx: Set PHY into correct mode for 80MHz channel width drivers/net/wireless/ath/wcn36xx/main.c | 50 +++++++++++----------- drivers/net/wireless/ath/wcn36xx/smd.c | 15 +++++-- drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 6 ++- 3 files changed, 42 insertions(+), 29 deletions(-) base-commit: 160b351d75cb50a0dd2abf9b63e1891935aa9e4a prerequisite-patch-id: 9a4ac7faca179f6594c9b3a115ee69a2da540a69 prerequisite-patch-id: 183286f9c22d1aaa12f356651224e6b337ef1938 prerequisite-patch-id: af468d413daaf8d2aad195fcb43c6e66390d8468 prerequisite-patch-id: 1a7fb93ee5874d2d011409eaed0b4fd764666b9c prerequisite-patch-id: 77cc008b21a650fa7a33c4acad2fb632b09634fd prerequisite-patch-id: 988ae4802971d6895b03b2752122b2be42baf188 prerequisite-patch-id: a3ba2a1963e03e23e86c937cd4cfb649e1b819b2 prerequisite-patch-id: 8a1fe4f63bc80e9a8035aa52356da8c46eab8665 prerequisite-patch-id: d75c1a60d1ede373c1f3eb684bb15c853c88eedc prerequisite-patch-id: 47145acae6e24e8e6580fca1dbddfbec24f7b50b prerequisite-patch-id: 8c66bccb923be821cf109a3a0d3a1a028edb4930 prerequisite-patch-id: f078e5fdfe8c18936469bfb118a964db13ea729f prerequisite-patch-id: 746f63cf58fa3bf62736435c81dba2558aba8e81 prerequisite-patch-id: 36a94e202cbdaee8e06f9a108b1c894bd1159e62 prerequisite-patch-id: 8a598e22a08b0ec233d0ec56eeb53673eb1b8feb prerequisite-patch-id: b0eba574ddc35ecec2d0e39c0d3351d1b260420e -- 2.27.0 _______________________________________________ wcn36xx mailing list wcn36xx@lists.infradead.org http://lists.infradead.org/mailman/listinfo/wcn36xx