Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp880794rdb; Tue, 23 Jan 2024 19:37:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IGuuUDxlxtPuvK6HPgUuA9svM+yHxwvxgFtu+9oc+0MDySlMDnbuuwBxj8cL+WyoVyXBTqo X-Received: by 2002:a05:6214:2501:b0:67f:8b8f:6fd5 with SMTP id gf1-20020a056214250100b0067f8b8f6fd5mr2732375qvb.94.1706067437131; Tue, 23 Jan 2024 19:37:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706067437; cv=pass; d=google.com; s=arc-20160816; b=bJD8FQ/KjKoZOiYbniHnJKDZcuPXsxQWjAnce20O0a9+zji/bH4QGi9ZU3Bdnnpi3S tXr9ZXtxtHoI8RYKKTBsNTTEgpd9Hz65Z3W0CLKk5EhQ2hGeJ50QJ3m51043dsSHDdk2 kI2vMqi4zRDr84mAfXhR980+OFZYM2/e0l5bJOsAm5IFWDmLH8saoFdStfKRYOw1KZCW yB+8IjC2FdCcH8RGll20plofU3nd44/d3eyS5LjjYKsFEtXhk+e7e3JcxMR7ySrAVEOw TTvFpCB7vwxSrv4YPKRDpJz3fBfKmiPXbsh4PbLwIRghtq0fG2Gi7DWb0cb2UlvyuKo/ EStQ== 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=rdySzRZ8/yRIz+9UYLmtJu9lEkpXvEflT2rzmKhfWSg=; fh=119R0DZRwIns1LRpqAK2A6izyPVjL4TEe6VydCwW0T8=; b=dSQu6xPaaoO/vPd8DNDry4mK+uDHNU85ahn1NZ9t2uDT2WG/eoeGQ5oVK92pkYv10N 2JDhYXYS530K5C6ivkyre/j12lG2u7y+B0hi54KbNSfUz3BzntluN7SLd215gdd+Tdmt MHdUjpPKAIH0nARbQse3un0mrmzxrWZ6t3RibZTHpAD51+KckH6HxD0GdzgLC0CvrwHO PSwcDR29alxFK1dXaLSf8QHdZNNBncxhbYePhhmexzoKv45j77W2Aq17nq6BnMycogEF 8Tqmv2fEm4gb3JswrPEprFIIxnitIvT0c1l4hq4fBz55dYBB+mCoS1mBSK0IkCQp57rN JoAA== 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-2427-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2427-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 i13-20020a0cf10d000000b00682bfd26b08si9471448qvl.287.2024.01.23.19.37.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 19:37:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2427-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-2427-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2427-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 995271C218F5 for ; Wed, 24 Jan 2024 03:37:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A12E5C98; Wed, 24 Jan 2024 03:37:14 +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 7E4C95C85 for ; Wed, 24 Jan 2024 03:37:12 +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=1706067434; cv=none; b=VOoRk+krk19ZNr+LgXHTmEfWBACKrsr9MglJVpnObLKKREeJAExmmSBh6dEdm4ijaBuicVCpnf2ktXRw7ZQTn7MhDyESl3zOX6GisKFBuWzKugVJWBpJcP4xi1vkF2qnbtxvdcSmAgnY7bhCZV7h+nrISFjEOrPTAEb5vObwXsE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706067434; c=relaxed/simple; bh=9oC8g9AoSv3IT4A2+hTjjSTEpn03C/KJV1c2vQbyjs0=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=CBkTWHXSYfirnGdC5i4yta55x9dtjg0N1yxR5Uus09CKsG0fd1yUumYTTJdmzXCj3XhGTQyRRHsyGiUU47CsDZ+LI2emtpPIK04vQBR9QHrlQ7WpdY4/cmW3+J8dMEopqD1eo6JpSJOnrP9OvtlYQGg/ItA6HRx2oWvW8VP9YWk= 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 40O3b2uqD723691, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 40O3b2uqD723691 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 24 Jan 2024 11:37:02 +0800 Received: from RTEXDAG02.realtek.com.tw (172.21.6.101) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Wed, 24 Jan 2024 11:37:02 +0800 Received: from [127.0.1.1] (172.21.69.94) by RTEXDAG02.realtek.com.tw (172.21.6.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Wed, 24 Jan 2024 11:37:02 +0800 From: Ping-Ke Shih To: CC: Subject: [PATCH 0/6] wifi: rtw89: 8922a: add chip_ops related to TX/RX, RF access and thermal Date: Wed, 24 Jan 2024 11:36:31 +0800 Message-ID: <20240124033637.12330-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 RTEXDAG02.realtek.com.tw (172.21.6.101) X-KSE-ServerInfo: RTEXDAG02.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback Add more chip_ops for 8922A. First is handlers of TX/RX descriptors to fill/read descriptors. During switching channel, it needs to stop hardware TX scheduler introduced by second patch. Patch 3/6 is to configure TX path, which it can TX 1SS rate data via one or two paths, and normally 2-path TX is adopted by default. Then, add patch 4/6 to access RF registers via an indirect interface. Normally, use thermal value to decide whether we trigger certain RF calibration again, and it also helps to debug CFO because temperature can affect the result too. The last patch is just to fill two ops that are NULL. Ping-Ke Shih (6): wifi: rtw89: 8922a: hook handlers of TX/RX descriptors to chip_ops wifi: rtw89: 8922a: implement {stop,resume}_sch_tx and cfg_ppdu wifi: rtw89: 8922a: add chip_ops::cfg_txrx_path wifi: rtw89: 8922a: add RF read/write v2 wifi: rtw89: 8922a: add chip_ops to get thermal value wifi: rtw89: 8922a: set chip_ops FEM and GPIO to NULL drivers/net/wireless/realtek/rtw89/mac.c | 5 +- drivers/net/wireless/realtek/rtw89/mac.h | 14 +- drivers/net/wireless/realtek/rtw89/mac_be.c | 96 +++++ drivers/net/wireless/realtek/rtw89/phy.c | 125 +++++++ drivers/net/wireless/realtek/rtw89/phy.h | 4 + drivers/net/wireless/realtek/rtw89/reg.h | 84 +++++ drivers/net/wireless/realtek/rtw89/rtw8922a.c | 344 ++++++++++++++++++ .../net/wireless/realtek/rtw89/rtw8922a_rfk.c | 33 ++ .../net/wireless/realtek/rtw89/rtw8922a_rfk.h | 12 + 9 files changed, 714 insertions(+), 3 deletions(-) create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8922a_rfk.c create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8922a_rfk.h -- 2.25.1