From patchwork Tue Nov 29 10:07:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sascha Hauer X-Patchwork-Id: 2354 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp245084wrr; Tue, 29 Nov 2022 02:13:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf4yDTk0HB9Q5QJwNT98gxGF+mULcluUbRaG73K12eFZEekc4SfgIjOUqo0sdCbTVT1hmdo7 X-Received: by 2002:a05:6402:24a1:b0:463:e963:5149 with SMTP id q33-20020a05640224a100b00463e9635149mr50870672eda.219.1669716797720; Tue, 29 Nov 2022 02:13:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669716797; cv=none; d=google.com; s=arc-20160816; b=mDGiAEdzJ6sqjbtpmRvd8dhjKvRp91s2LTA0GecGKII1tkCfR6b4SBYr/O0SsOn04C SxH8AKi2t4zAkkr2hfM7Jtguk/L/UeMz7xzlJBGyh4XD9GNb3JhQw3Ugrol9a2f12jb0 70TOAfEln7yjYKC6N5JMqsZDKRKGsh9sPO//jOxeYK0teCH6t5FQOI/VrVVXr/XO53jG zOUcnmh2xfL8HI/sRMzm0mJPbMzD57nsB3PLDGz9wej8o/shB/zGMU4S78+woenuqM6k QCos6BlvCXvt9pG+BNLwwnKgs3sZJSyF5oHOfuq2LCMSL03ki32w4+WSVAnxzEThIh0c hV8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ylbC0Q6HNUs3lCwL7RjGsTPfGLHdN7GCAy1w3Re3wyo=; b=Qg51O5yIJKVP8qvP/V++lUOMkkgidQ3vCNaBJx5pmnz0jKsROWXIfqjbQq6u4kHgcu azecbT8qgxiI0HQE1HmxzWnQ4IYf1aVYcm+LsCuZYkjs1d48/lmfDyxJDumEwRA47RVs eUXRYBu5TeT9yfGa3shIKbE9ze2BCCNpCVNZfWX4R03/k2lwXHhJ+95md+fx6Rcny+Or QvJgLJxDMwcn8dOsOlDoHFBExC901jt+Hd7nLzi/MsjiHUais26W90+fhKyUPD4/oLN2 HpGfq6iZTlejjxSsByucfsx0Gsum4oKd9Fs04nGBXa3/lF/m+4pzohLx6gUuM/gD+6qR r+CA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw30-20020a1709066a1e00b0078d8db64fffsi10355298ejc.20.2022.11.29.02.12.54; Tue, 29 Nov 2022 02:13:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232476AbiK2KLQ (ORCPT + 99 others); Tue, 29 Nov 2022 05:11:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230011AbiK2KKk (ORCPT ); Tue, 29 Nov 2022 05:10:40 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AF516034B for ; Tue, 29 Nov 2022 02:09:00 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ozxX1-0006yE-N1; Tue, 29 Nov 2022 11:08:03 +0100 Received: from [2a0a:edc0:0:1101:1d::28] (helo=dude02.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1ozxWy-0012iF-LB; Tue, 29 Nov 2022 11:08:01 +0100 Received: from sha by dude02.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1ozxWx-00BYGm-BG; Tue, 29 Nov 2022 11:07:59 +0100 From: Sascha Hauer To: linux-wireless@vger.kernel.org Cc: Neo Jou , Hans Ulli Kroll , Ping-Ke Shih , Yan-Hsuan Chuang , Kalle Valo , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Blumenstingl , kernel@pengutronix.de, Johannes Berg , Alexander Hochbaum , Da Xue , Po-Hao Huang , Viktor Petrenko , Sascha Hauer Subject: [PATCH v4 00/11] RTW88: Add support for USB variants Date: Tue, 29 Nov 2022 11:07:43 +0100 Message-Id: <20221129100754.2753237-1-s.hauer@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750824960980986612?= X-GMAIL-MSGID: =?utf-8?q?1750824960980986612?= v4 of this patchset. No big changes, only the review comments from v3 are integrated. Sascha Hauer (11): wifi: rtw88: print firmware type in info message wifi: rtw88: Call rtw_fw_beacon_filter_config() with rtwdev->mutex held wifi: rtw88: Drop rf_lock wifi: rtw88: Drop h2c.lock wifi: rtw88: Drop coex mutex wifi: rtw88: iterate over vif/sta list non-atomically wifi: rtw88: Add common USB chip support wifi: rtw88: Add rtw8821cu chipset support wifi: rtw88: Add rtw8822bu chipset support wifi: rtw88: Add rtw8822cu chipset support wifi: rtw88: Add rtw8723du chipset support drivers/net/wireless/realtek/rtw88/Kconfig | 47 + drivers/net/wireless/realtek/rtw88/Makefile | 15 + drivers/net/wireless/realtek/rtw88/coex.c | 3 +- drivers/net/wireless/realtek/rtw88/debug.c | 15 + drivers/net/wireless/realtek/rtw88/fw.c | 13 +- drivers/net/wireless/realtek/rtw88/hci.h | 9 +- drivers/net/wireless/realtek/rtw88/mac.c | 3 + drivers/net/wireless/realtek/rtw88/mac80211.c | 2 +- drivers/net/wireless/realtek/rtw88/main.c | 12 +- drivers/net/wireless/realtek/rtw88/main.h | 12 +- drivers/net/wireless/realtek/rtw88/phy.c | 6 +- drivers/net/wireless/realtek/rtw88/ps.c | 2 +- drivers/net/wireless/realtek/rtw88/reg.h | 1 + drivers/net/wireless/realtek/rtw88/rtw8723d.c | 28 + drivers/net/wireless/realtek/rtw88/rtw8723d.h | 13 +- .../net/wireless/realtek/rtw88/rtw8723du.c | 36 + drivers/net/wireless/realtek/rtw88/rtw8821c.c | 18 + drivers/net/wireless/realtek/rtw88/rtw8821c.h | 21 + .../net/wireless/realtek/rtw88/rtw8821cu.c | 50 + drivers/net/wireless/realtek/rtw88/rtw8822b.c | 19 + .../net/wireless/realtek/rtw88/rtw8822bu.c | 90 ++ drivers/net/wireless/realtek/rtw88/rtw8822c.c | 24 + .../net/wireless/realtek/rtw88/rtw8822cu.c | 44 + drivers/net/wireless/realtek/rtw88/tx.h | 31 + drivers/net/wireless/realtek/rtw88/usb.c | 917 ++++++++++++++++++ drivers/net/wireless/realtek/rtw88/usb.h | 107 ++ drivers/net/wireless/realtek/rtw88/util.c | 103 ++ drivers/net/wireless/realtek/rtw88/util.h | 12 +- 28 files changed, 1615 insertions(+), 38 deletions(-) create mode 100644 drivers/net/wireless/realtek/rtw88/rtw8723du.c create mode 100644 drivers/net/wireless/realtek/rtw88/rtw8821cu.c create mode 100644 drivers/net/wireless/realtek/rtw88/rtw8822bu.c create mode 100644 drivers/net/wireless/realtek/rtw88/rtw8822cu.c create mode 100644 drivers/net/wireless/realtek/rtw88/usb.c create mode 100644 drivers/net/wireless/realtek/rtw88/usb.h