Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp712506rwr; Thu, 20 Apr 2023 05:36:57 -0700 (PDT) X-Google-Smtp-Source: AKy350a+0C/UtwpKelQNhu8ATyQLajwr3uFutW4b+fjx+sRqJtgxEj88ERASuIDAfWKlXN8lLbjP X-Received: by 2002:a05:6a20:7d81:b0:ee:448b:946e with SMTP id v1-20020a056a207d8100b000ee448b946emr2591065pzj.35.1681994217239; Thu, 20 Apr 2023 05:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681994217; cv=none; d=google.com; s=arc-20160816; b=1LzEvmxgvAsEJAdF8+TYAEcLL7cHlvfVUcvEXhbq1Xit0Qe1JZh8bXEaIsaPNeJBdB kcAWCyTZqDLyleUfldTuDXzfCFqp3xLn94jzL6PQQnJe7f3kLglTcduaE14kzCprWwHQ lDdGtPvh7075g/zs8mZgzlc6eXeXarpA6RsUTxrX0pkBvL0IFLAftqXhJqy3vtWQ5q/R NaPC5MYYMVH1UZW5f56fzR120vXZchJdjnoz5Di9n3B+qJTEMas3FEThJRm6qfpEdGCz GTMhsu0BBNd4HyrX4swJPwoOKOAigN+ZeA9UMyWDtFdmrFG1u6I0gZcug/SN2mNS7y1f zVzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=S9KH4bRBuoI/BfvMo5aD2GJqJFzEjFxO/KMLq3XMits=; b=vs4hhTszHLBM6RK+OGO0zXIQHe9B7ZguMY+9fENygRi7qhO/MUvVvtA2fpKGaPbzp2 XZmxjG+1izJoMNrknAM6MMrj2kKrD1mpr/1vMkq18TxsC3IFKcM3mmkMP5o78HT3ZRfo YGHT5+yyyMYbg01yyAhI2ZcNYaxNn446brTXM1ES+61w4gm0mzulkxgiCbTIQm3mgZJP TY244jc3yvRIQ/0ItJ1w5mszkbxPUK9ND5oO2pfWerkgE+Aci3gzW+hBk6AgQRPLV/F4 cDU7ogf2Gjn6HDE67IN/Yp/mRwjYJKT7R4PTIRHdc5tKsm8LpUhTC3yZ1nKO7xyl+d7r Gdow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qGzfR4oF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c3-20020a63d503000000b00502f0ddd50bsi1555226pgg.382.2023.04.20.05.36.47; Thu, 20 Apr 2023 05:36:57 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qGzfR4oF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231736AbjDTMgE (ORCPT + 63 others); Thu, 20 Apr 2023 08:36:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231311AbjDTMf6 (ORCPT ); Thu, 20 Apr 2023 08:35:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95A6D72BC for ; Thu, 20 Apr 2023 05:35:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1DF6264929 for ; Thu, 20 Apr 2023 12:35:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91A4AC433D2; Thu, 20 Apr 2023 12:35:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681994151; bh=3GpX93Iz3XtHTHm2AsRZJsdq/vtguxZlsLqoel3bVtQ=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=qGzfR4oFjpUyKDrDf5KLdbFPeNX3UvF1c4hExFaGBBfic8/E3Gh0AzSjtHr4mbS4O 6N8R5qK4yneRpixkONI7cXiLVcK0r71Riln0iiDcJzmZhu/u9Af5cs+M1XZnDyw/h1 eP7HRTh0kSnTk75gGcFmJvmMBefAKT86uCsu9xHoDDDQ+AJSn6GDsd+4CW44jBKfKY AWx7/eoGBb5cpjEGtZEqnHCsNb0mvLNUr/5URgCIzTuqTVXLGe4hLtlamWc3km1rE1 T3rIZRdk2U9LxL0vPiW3eeKt6UsAFBObwZXG4gmIcRiaQ5eQSBdx/yryuFyMHWAmg+ w2qBJL3Er+8nA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH 1/3] wifi: rtl8xxxu: Don't print the vendor/product/serial From: Kalle Valo In-Reply-To: References: To: Bitterblue Smith Cc: "linux-wireless@vger.kernel.org" , Jes Sorensen , Ping-Ke Shih User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <168199414822.31131.11910739234657361957.kvalo@kernel.org> Date: Thu, 20 Apr 2023 12:35:50 +0000 (UTC) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Bitterblue Smith wrote: > Most devices have a vendor name, product name, and serial number in the > efuse, but it's pretty useless. It duplicates the information already > printed by the USB subsystem: > > usb 1-4: New USB device found, idVendor=0bda, idProduct=8178, bcdDevice= 2.00 > usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 > usb 1-4: Product: 802.11n WLAN Adapter > usb 1-4: Manufacturer: Realtek > usb 1-4: SerialNumber: 00e04c000001 > -> usb 1-4: Vendor: Realtek > -> usb 1-4: Product: 802.11n WLAN Adapter > > usb 1-4: New USB device found, idVendor=0bda, idProduct=818b, bcdDevice= 2.00 > usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 > usb 1-4: Product: 802.11n NIC > usb 1-4: Manufacturer: Realtek > usb 1-4: SerialNumber: 00e04c000001 > -> usb 1-4: Vendor: Realtek > -> usb 1-4: Product: 802.11n NIC > -> usb 1-4: Serial not available. > > usb 1-4: New USB device found, idVendor=0bda, idProduct=f179, bcdDevice= 0.00 > usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 > usb 1-4: Product: 802.11n > usb 1-4: Manufacturer: Realtek > usb 1-4: SerialNumber: 002E2DC0041F > -> usb 1-4: Vendor: Realtek > -> usb 1-4: Product: 802.11n > > usb 1-4: New USB device found, idVendor=0bda, idProduct=8179, bcdDevice= 0.00 > usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 > usb 1-4: Product: 802.11n NIC > usb 1-4: Manufacturer: Realtek > usb 1-4: SerialNumber: 00E04C0001 > -> usb 1-4: Vendor: Realtek > -> usb 1-4: Product: 802.11n NIC > -> usb 1-4: Serial: 00E04C0001 > > Also, that data is not interpreted correctly in all cases: > > usb 3-1.1.2: New USB device found, idVendor=0bda, idProduct=8179, bcdDevice= 0.00 > usb 3-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 > usb 3-1.1.2: Product: 802.11n NIC > usb 3-1.1.2: Manufacturer: Realtek > usb 3-1.1.2: Vendor: Realtek > usb 3-1.1.2: Product: \x03802.11n NI > usb 3-1.1.2: Serial: \xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=217231 > Signed-off-by: Bitterblue Smith > Reviewed-by: Ping-Ke Shih 3 patches applied to wireless-next.git, thanks. af8678e6c5bd wifi: rtl8xxxu: Don't print the vendor/product/serial cd85c8b059c5 wifi: rtl8xxxu: Add rtl8xxxu_write{8,16,32}_{set,clear} c8bc37602779 wifi: rtl8xxxu: Simplify setting the initial gain -- https://patchwork.kernel.org/project/linux-wireless/patch/a2a7d9df-0529-7890-3522-48dce613753f@gmail.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches