Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4029058rwe; Mon, 17 Apr 2023 07:05:30 -0700 (PDT) X-Google-Smtp-Source: AKy350bZAiUf8m5byjhXh3TVRvGSNV/6S2+stM8RT92QIXYPtk6kZAKxgGVoOSLnAWIufy/PetYm X-Received: by 2002:a05:7500:2c46:b0:101:c698:d990 with SMTP id eq6-20020a0575002c4600b00101c698d990mr48166gab.24.1681740330325; Mon, 17 Apr 2023 07:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681740330; cv=none; d=google.com; s=arc-20160816; b=ZJVZlLAAqb7Tz8n+Cj5hBKUNqWYrLHXz5lD3aDlae0Ew8z0juvTs8vqLsnkEBtUJXI LqWPMvRtou8Xa36D6Pgvv/Z3sAq8RjzoQ2czGR+YNTbqLmYGnat/oJ0ibs97Fgyt6kfg kvd4gc7OQpN9T0Wrq6hFpJq6bBW7wS9/w7AQnFwANclynSRUhiz0FK6Aq5heBsOVsSIh Z+TQtlncY2GbkAp0iFrmZxw30sslnqjSmyI4qWDIhUALm33S+aJ/7FdGWaM+F/aRBds8 d7MGnA2KFW/DGW/qi4pD62styDPDFqEsfAk93cghKG+SHTX2LApQnlcxHVKPYfI4KV/M lThA== 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=eG21d3j0O9I++oS3UFo6WX1xflzOjUNFfJYCitpjO00=; b=BlJhWPuTs3i7a+akZ5SvpdULN9BHjHSu0gJ4SoTEAD7YmsEICrgSNbwdP4+xnshxk5 L2zQYBu395g539ChSrCVaJoSOpbVx8NixMXWlimkrAQ5KLxjF1mHAj8Yhvh/Q1os3NDb F/8lcD1ZZkEic/v2x9msk4BLN547UrmjSuW0rZtUZprpEqy+aTZ//T03+FAqZh30N8rG 6LINlOQAO5KsVVAgBgBLbHcqBbscmNccyqEwTV/SEv1efWm+qWoEOMWTWopJLFV6wpAm Kb7d3JmcA7NKcemxgKIGPUb/wH7inMkwxw+P7FvMIEQHIqZ2RfAtjQCi4DEfFGz4U0UC /l3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c5-20020ab02745000000b00772a6e3e2a4si856408uap.33.2023.04.17.07.05.04; Mon, 17 Apr 2023 07:05:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230117AbjDQOEh (ORCPT + 63 others); Mon, 17 Apr 2023 10:04:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230280AbjDQOEe (ORCPT ); Mon, 17 Apr 2023 10:04:34 -0400 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 71E6F5B9B for ; Mon, 17 Apr 2023 07:04:03 -0700 (PDT) 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 1poPSb-000482-ET; Mon, 17 Apr 2023 16:04:01 +0200 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 1poPSa-00BtJv-On; Mon, 17 Apr 2023 16:04:00 +0200 Received: from sha by dude02.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1poPSZ-009Or6-Ka; Mon, 17 Apr 2023 16:03:59 +0200 From: Sascha Hauer To: linux-wireless Cc: Hans Ulli Kroll , Larry Finger , Pkshih , Tim K , "Alex G ." , Nick Morrow , Viktor Petrenko , Andreas Henriksson , ValdikSS , kernel@pengutronix.de, Sascha Hauer Subject: [PATCH v3 0/4] RTW88 USB bug fixes Date: Mon, 17 Apr 2023 16:03:54 +0200 Message-Id: <20230417140358.2240429-1-s.hauer@pengutronix.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-wireless@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,T_SCC_BODY_TEXT_LINE autolearn=ham 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-wireless@vger.kernel.org Third round of the RTW88 USB bug fixes. After some discussion and thinking I came to the conclusion that the v1 variant of "wifi: rtw88: rtw8821c: Fix rfe_option field width" is better than the one posted in v2, so I reverted back to this version, but added a note to the commit message why this might not be entirely correct for all chip variants (though for all variants currently supported in the driver). The patches are sorted in order of importance. 1/4 hasn't seen any negative comments and I think it should be applied right now. As stated above I think 2/4 should be applied as well. 3/4 fixes something I stumbled upon while reading in the vendor driver, but I don't what effect it actually has, I didn't notice any change in behaviour of the driver. 4/4 straightens the logic how rtw8821c_switch_rf_set() is called for different variants of the rtw8821c. This is taken from the vendor driver. From the supported chip variants this should only have an effect on the ones with rfe_option = 6, but I don't have that one available here for testing. I would be glad if at least 1/4 and 2/4 could be applied as these fix real issues in the driver. Sascha Sascha Hauer (4): wifi: rtw88: usb: fix priority queue to endpoint mapping wifi: rtw88: rtw8821c: Fix rfe_option field width wifi: rtw88: set pkg_type correctly for specific rtw8821c variants wifi: rtw88: call rtw8821c_switch_rf_set() according to chip variant drivers/net/wireless/realtek/rtw88/main.c | 2 +- drivers/net/wireless/realtek/rtw88/main.h | 2 + drivers/net/wireless/realtek/rtw88/rtw8821c.c | 25 +++++-- drivers/net/wireless/realtek/rtw88/usb.c | 70 +++++++++++++------ 4 files changed, 69 insertions(+), 30 deletions(-) -- 2.39.2