From patchwork Thu Sep 10 15:07:03 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: 249646 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp826552ilk; Thu, 10 Sep 2020 08:06:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsXMSlV/+QcG77hORKJ1ENU4ZnveucG4HupjYOIwsHvYI3Cpyq7oacSqquHd3AAgxgp9sp X-Received: by 2002:a05:6602:2f07:: with SMTP id q7mr7964134iow.191.1599750387880; Thu, 10 Sep 2020 08:06:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599750387; cv=none; d=google.com; s=arc-20160816; b=0WRYtlmR3MDwbJwzyzJJYh8gidPocOWky+RKYJBd7D6aFAyUTwwuuUPX3s2DVF5iZk F1TJMucLdp5yOIJvmjLy1NUpDPCIb4vgyXu0ktCb0pgCmgk5QbSn/971Pi8VXPIOqD/F GgqGIGrTCI6sianozseDiv2tPMrofvJ84u8RwBKQEzWeEJY4GrTQRgbmGGzEeuN42GjR SOVlkJAGn/hj7XwlLQcF+BDDMyIOEWMkJbMifAsVG8InlLKJjU55vhebScZbWwSRQS9X b545+neC5cWNcP3iyrGON5cgDvnPGVxTQoRIl70vtxNmERPrMC2hffX04DrDX5HuV00+ Z6YA== 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=hZdkwXf6gFcdRJgJkITJec0EeyuW2z48K+ZJw7PFhWI=; b=sW6ZAmBI/rc0Carwmfls0gYCWv4nfArbgAiaiNzNA12Q5cj6kmpPJOTpSb+qyddPtX 4MIpCXb2hpJRTPnBI0yhmHJtlO/ZJ+HQv9Ufc1EQOaQis6VDJ7s4jX33F7qeOTYMXOex XUp04zdNqFWGtwLmvEEyOCP+qQy1FwHEJTadVr6yJ7LjfRMEIc2IkVoZuhIBSJNUY2Y2 tWuyAz9T0mDYMiSTeBeFgHNAvtklT86mic2vC+B0TDtCP52nbSrTAfDc+8tMHERrDrEt 9L9RT5nEZg3hIqOAjVEWsmHjQWEeWqQi2eScXRiKsf1Xmhie7o98StpvI9KScIcAStF7 pEQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b="CFaGOo/C"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=vN9AOJBR; 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 k1si4223958jaq.37.2020.09.10.08.06.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:06:27 -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="CFaGOo/C"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=vN9AOJBR; 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=hZdkwXf6gFcdRJgJkITJec0EeyuW2z48K+ZJw7PFhWI=; b=CFaGOo/CigRQ+5Uc9YTfUCKsm6 tQQDSnm5gncUNPCBw2YHTmXNlA/Ll/xQ2KEnZYELz1f2bfiUXuYPDWp8Ek/UAyctEUY9YXrRLkGN4 hxBOp1iXzjEGbEQgEaxPngRS55IVDgdPzItvqgS2EzlqOyHnZ/JJi8pRN3vgDj5gVuSS/SvL2JRAQ 8j0SRGfUu+hmdyl5TEhdomh2gWHRzuln9B+RgLUh8a3xOwAxcUJG5XJt2iAgCccHRllB9aEUJni75 R8j/xaaXY/yCKd8STnGxMXw5uk9u/qmV7lD9oLExKfXIy+6KqZRbwVpFSN5RYnf+3R9+8e4EMLvX6 zGb+6w3w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO9Y-0007oj-Hg; Thu, 10 Sep 2020 15:06:24 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO9V-0007nT-UX for wcn36xx@lists.infradead.org; Thu, 10 Sep 2020 15:06:23 +0000 Received: by mail-wm1-x343.google.com with SMTP id l9so375754wme.3 for ; Thu, 10 Sep 2020 08:06:21 -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=oKhb1tlaziAq0yvNnW8uGhduqVdDMEMiKkNRMF7ABhE=; b=vN9AOJBRJveHlpA1HDYLFrt+U5bpeqKGNP5MFjvT4IAFXBseP9NKZENVwTgzD0TB5p RdK+JOBhi8uRblovCY8mfxo7jptQtTACxAPpwBvUCPedAZp9FwsnJME0Wb/fKlXWdYGh 5yw4ZYTAa6udWosZ7xSGhlrBJ2ZjeM9P+JeAg5my6OC0RZ7tCHB+YmZ/fhcO3eWmNVbD L8kCdqwjNkXQXpDoEIjvf3clU01TuKOapb3pGRHOwl7wyXd4Gw+EAalqIWTLg6CDVpKl cn9mNSGqqr9E588deEj8+B+gv6+L1CRXWtK7yxkWjHrbjyQsfuZ6wv76SISW/5oxTZMA 98Tg== 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=oKhb1tlaziAq0yvNnW8uGhduqVdDMEMiKkNRMF7ABhE=; b=GroDMUSIiYwbt56lLVREscH8ql5f08CLv5HnsQEO2IPWLgIyxkoJBGi6+yzHyVTwyH c66eQVrVCKn9u0GSJjHy4fqdgf1V4o5WneVowd9NVRRzFHccRjtLPNL9CH1HJkk7XynW eRqmX2TvlVwzgb1XR3bmh0fEpYDdIyIw3c0nxwn50iDQcjbU0gAyCmKOYX1XOiqZ9VpG MGLyDW+Hw9zWihcJFqbupOzMUroo4xSw6K0kq5FRsMZa3GDGRfkTl9oNG5fe7KYwTKn2 PftJBVSoDhheu3EvU3IzrXagyjmtMyiYy/Y+qUPi6zIDxWphJeGw8UaoyErArmUFYhT6 8ruw== X-Gm-Message-State: AOAM53398tpPOaCC6Yr94sP7rbYI5wSouikMTZXWjKD2tAbuRHV1XQwS pN8foOg1T30V1fUKhuZT6dd2yQ== X-Received: by 2002:a7b:c1c3:: with SMTP id a3mr506019wmj.68.1599750380692; Thu, 10 Sep 2020 08:06:20 -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 i11sm8778906wre.32.2020.09.10.08.06.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:06:20 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v5 0/5] wcn36xx: PHY modifications to support 80MHz operation Date: Thu, 10 Sep 2020 16:07:03 +0100 Message-Id: <20200910150708.2179043-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-20200910_110622_286717_87740C32 X-CRM114-Status: GOOD ( 12.76 ) 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:343 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. V5: - No change to V4 but need to send the set again so that prerequisite-patch-id makes sense to the build robot here. 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: 08122a9557904ce5358f52dd08cc33270fa202c1 prerequisite-patch-id: 82e0b7c5b2e9fa80baca001cce12577d98e306a9 prerequisite-patch-id: 8ee7f5bd6cb5b7b7d713947b554ad93bb90d8230 prerequisite-patch-id: d05c2253e4523b05b2e43491aa13ceeef68fd2f0 prerequisite-patch-id: 8be29513d3efa64df15297bcf81ec3db55088ee1 prerequisite-patch-id: d267dcd834afad75a69bcd2adcccfdad6566a7ba prerequisite-patch-id: 47145acae6e24e8e6580fca1dbddfbec24f7b50b prerequisite-patch-id: 8c66bccb923be821cf109a3a0d3a1a028edb4930 prerequisite-patch-id: d0f5f3769b2963208fd2348840726fa1d3501b63 prerequisite-patch-id: 746f63cf58fa3bf62736435c81dba2558aba8e81 prerequisite-patch-id: 375bb7847ae74c63d2eacdbd0d73371aef1546fe 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