From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C060C433EF for ; Tue, 24 May 2022 06:55:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234327AbiEXGzF (ORCPT ); Tue, 24 May 2022 02:55:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232414AbiEXGzE (ORCPT ); Tue, 24 May 2022 02:55:04 -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 179A293476 for ; Mon, 23 May 2022 23:55:03 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntORP-0000Uo-HF; Tue, 24 May 2022 08:54:51 +0200 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1ntORN-0006Mn-Mh; Tue, 24 May 2022 08:54:49 +0200 Date: Tue, 24 May 2022 08:54:49 +0200 From: "s.hauer@pengutronix.de" To: Ping-Ke Shih Cc: "linux@ulli-kroll.de" , "johannes@sipsolutions.net" , "kernel@pengutronix.de" , "neojou@gmail.com" , "kvalo@kernel.org" , "tony0620emma@gmail.com" , "linux-wireless@vger.kernel.org" , "martin.blumenstingl@googlemail.com" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" Subject: Re: [PATCH 00/10] RTW88: Add support for USB variants Message-ID: <20220524065449.GR25578@pengutronix.de> References: <20220518082318.3898514-1-s.hauer@pengutronix.de> <55f569899e4e894970b826548cd5439f5def2183.camel@ulli-kroll.de> <20220523065348.GK25578@pengutronix.de> <68a979f3fe3c80a460528605f03d85c2a265ff50.camel@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <68a979f3fe3c80a460528605f03d85c2a265ff50.camel@realtek.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 08:50:09 up 54 days, 19:19, 58 users, load average: 0.26, 0.18, 0.19 User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 23, 2022 at 11:39:49AM +0000, Ping-Ke Shih wrote: > On Mon, 2022-05-23 at 08:53 +0200, Sascha Hauer wrote: > > Hi Hans Ulli, > > > > On Mon, May 23, 2022 at 06:07:16AM +0200, Hans Ulli Kroll wrote: > > > On Wed, 2022-05-18 at 10:23 +0200, Sascha Hauer wrote: > > > > This series adds support for the USB chip variants to the RTW88 driver. > > > > > > > > > > Hi Sascha > > > > > > glad you found some *working* devices for rtw88 ! > > > > Well, not fully. I had to add [3] = RTW_DEF_RFE(8822c, 0, 0), to the > > rtw8822c_rfe_defs array. > > > > > I spend some of the weekend testing your driver submission. > > > > > > for rtl8821cu devices I get following output > > > > > > some Logilink device > > > > > > [ 1686.605567] usb 1-5.1.2: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= > > > 2.00 > > > [ 1686.614186] usb 1-5.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 > > > [ 1686.621721] usb 1-5.1.2: Product: 802.11ac NIC > > > [ 1686.626227] usb 1-5.1.2: Manufacturer: Realtek > > > [ 1686.630695] usb 1-5.1.2: SerialNumber: 123456 > > > [ 1686.640480] rtw_8821cu 1-5.1.2:1.0: Firmware version 24.5.0, H2C version 12 > > > [ 1686.932828] rtw_8821cu 1-5.1.2:1.0: failed to download firmware > > > [ 1686.945206] rtw_8821cu 1-5.1.2:1.0: failed to setup chip efuse info > > > [ 1686.951538] rtw_8821cu 1-5.1.2:1.0: failed to setup chip information > > > [ 1686.958402] rtw_8821cu: probe of 1-5.1.2:1.0 failed with error -22 > > > > > > above is same with some from Comfast > > > > > > The worst in the list is one from EDUP > > > > > > [ 1817.855704] rtw_8821cu 1-5.1.2:1.2: Firmware version 24.5.0, H2C version 12 > > > [ 1818.153918] rtw_8821cu 1-5.1.2:1.2: rfe 255 isn't supported > > > [ 1818.165176] rtw_8821cu 1-5.1.2:1.2: failed to setup chip efuse info > > > [ 1818.171505] rtw_8821cu 1-5.1.2:1.2: failed to setup chip information > > > > Do these chips work with your out of tree variant of this driver? > > > > Is the efuse info completely 0xff or only the field indicating the rfe > > option? > > I check RFE allocation of 8821c. 255 isn't defined. > If efuse info isn't complete 0xff, try to force RFE 0 to see if it works. > > > > > > rtl8822bu devices are working fine ... > > > > Nice. Did you test a rtw8723du device as well? > > > > I have a 8723DU module. > > With this patchset, it can find AP, but can't estiablish connection. > I check air capture, but no TX packets found. > That says RX works, but TX doesn't. The rtw88 repository has 8723DU support added with: initial for RTW8723DU devices not tested, no Device Hints are found in rtl8822bu code No active commits to this file since then, so it's probably not supposed to work. Unless somebody comes up with fixes I'll remove support for this chip for now. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |