Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp262747rdb; Wed, 14 Feb 2024 21:58:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXzQHtydOAb692J6+RIyNtmAqhowuzu9lvQBDWP8f4roYA6QwY58AdS1CQI3NzCCK0ZLuXcb7kzEHiSFmyByzzu65YK83HQZ81nHSf8Xw== X-Google-Smtp-Source: AGHT+IHdO5OJ8ykAKnl97QQKezLcpi+YeLQejraLLlI8FC9QHMWuj7wUU3aDbNoq1B+kW+5c6wmK X-Received: by 2002:a05:622a:649:b0:42c:49cd:38cd with SMTP id a9-20020a05622a064900b0042c49cd38cdmr1205633qtb.30.1707976719174; Wed, 14 Feb 2024 21:58:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707976719; cv=pass; d=google.com; s=arc-20160816; b=EIHBJTK/yA0njF/4dRgENS4w8GEN4ZZWIqaC/twZ7iDIwz5Fp8k2MSt7m1q90CMf10 AgwzBPYlHzRITtYhowqwAQ1CSFAThoJ/t28spFpHJNCbQZteupXSpKnMLUv4T/pq0Gj0 RPpeBVpGaGkkLmKBfD9UBEjxSYTf+EumnogZPCvr5rMwgVadQzIC95Mgb6fqRsyKZBDQ bwNBy2dXvo10tnDDs0YuFMvI6nBYy/LXCY8SNDMmhof1IZDNu4Ih5YsfF/NBy9qnmi/a IeOoRoR8QxTjQGoSyFCZHEw2jdK2Nmb/swzOeI6jCjzx4V4u264jmT1H9pMg9b353oQj 1hyw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=97MnYLG5PZ9OyqwHwkzYtq8q6Lb0y26kigad6ukVdRI=; fh=119R0DZRwIns1LRpqAK2A6izyPVjL4TEe6VydCwW0T8=; b=OM13lkcLfUmFYSK0j+mL1/cTt+3u0ACTkeWf7cPsCwTxWiRkNvxAcIqh0onaYIV+QG 2nvzt5UH03FrJqbpBGYmWKWne1JWIBsoZpKibsyXo2madIyvU3cyP660Wg9Q1Pu2/f81 nVgW98BXWGbPNiGuEKIan+FXKKQ/DyL0znTvmDnMdAdiMQf4uraOy76jGWCZkGktIG8N +enef7s/N7BpmShDNo25nRUJzbYl21MtopVRijwH0xEmboZOuTX+H4Xq7qlFofqr8h1J XpQrBriSmCdI5fgHHzD2aQamndgSnamEqAHd0V74gLh3LoKA/2fCnXS88u1UzMalBGZL WyzA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-3605-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3605-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v23-20020ac87297000000b0042c5d3fec9csi653778qto.447.2024.02.14.21.58.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 21:58:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3605-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-3605-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3605-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D19ED1C24683 for ; Thu, 15 Feb 2024 05:58:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56F308F6F; Thu, 15 Feb 2024 05:58:36 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C62C4A12 for ; Thu, 15 Feb 2024 05:58:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707976716; cv=none; b=oI4bsbcjAWhZMzsk3/5JcyW+22ZXyKm7BGocm/bbinxUBdJG4ZAOPhyvILNWIYHRPA8rsvd9hltXbu/qGIy+eILY1lsDOcpaPnDlPW68BueOmn+wlCQTi4CIKei1Tfuy6YfEbYLmwmvhh/6pcZ1NkerKWGpBPSMz6QfQ79ZRtFI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707976716; c=relaxed/simple; bh=qb67oZlnBFf47XPWAfLUAajhX3qjPEAIlXTY65Mon0k=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=QdznfpR34st+Yu+Ah8LPl4D1tt9yOOWgGhU+MZnW3eMQm8jaoaJsna07dcYuslQptp6mJjYr9d701R/vXbPooWG0wlold1IGane7rf/GPzflF/UyoKVmBk2LHxjO4+PA7RsEXA6nGPWbeq0jzdrYmNTcoW0tonewLwrEcIoe0Rc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 41F5wRvdD2372756, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 41F5wRvdD2372756 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 15 Feb 2024 13:58:27 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.32; Thu, 15 Feb 2024 13:58:27 +0800 Received: from [127.0.1.1] (172.21.69.94) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 15 Feb 2024 13:58:27 +0800 From: Ping-Ke Shih To: CC: Subject: [PATCH 0/4] wifi: rtw89: 8922a: add chip_ops::set_channel() and helpers Date: Thu, 15 Feb 2024 13:57:37 +0800 Message-ID: <20240215055741.14148-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback The set_channel() is main function to configure operating channel, and also configure settings related to channel, such as spur elimination. When switching channel from one to another, hardware could stay abnormal state, so a helper is used to stop TX/RX during that period, and also reset hardware state before starting to work at new channel. Ping-Ke Shih (4): wifi: rtw89: 8922a: add set_channel MAC part wifi: rtw89: 8922a: add set_channel BB part wifi: rtw89: 8922a: add set_channel RF part wifi: rtw89: 8922a: add helper of set_channel drivers/net/wireless/realtek/rtw89/phy.c | 119 ++++ drivers/net/wireless/realtek/rtw89/phy.h | 6 + drivers/net/wireless/realtek/rtw89/reg.h | 78 ++- drivers/net/wireless/realtek/rtw89/rtw8922a.c | 534 ++++++++++++++++++ .../net/wireless/realtek/rtw89/rtw8922a_rfk.c | 143 +++++ .../net/wireless/realtek/rtw89/rtw8922a_rfk.h | 5 + 6 files changed, 884 insertions(+), 1 deletion(-) -- 2.25.1