Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5938756rwb; Tue, 22 Nov 2022 06:54:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf6yLimsFlKCC1xm+1vQVYUJEJtiRWAU7N3409ixwOcbFGvuEtAdQvMGBaNe93rFl0tAMYwv X-Received: by 2002:a05:6402:449b:b0:459:2b41:3922 with SMTP id er27-20020a056402449b00b004592b413922mr14238959edb.160.1669128860006; Tue, 22 Nov 2022 06:54:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669128859; cv=none; d=google.com; s=arc-20160816; b=SjpTg6G5f559QTb1M1bFEG4f2iY2q3gek6MG8qkAKvSlN8R0NY8aWaBOZPwzKDxgr3 eFxkSh7yM7c4bpdlRu0NAH9SK9m68xukPx0qIt52RP15zUlXqfk/LLrk+4RCmB8ZUDQA rDIgnNlD6MzDQmR0YIyj5KPOsKp9I4mM5z6QdD5SMOw38A3FKuUiRLtFfS8M0D/xpCOW qBg3zYxY7UL3SgYzUS0yv94sx3+6Ee03d9fX1N7D0YpdXVei+c75LaihpMwJsbWQUUvR CQy2/ZaNQX8lvAG5pZ58fc4UFD5zO2fOy4Dk6xtpViXLcN6deelICXH35N3Qy73jryaq MabQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=tKvjuZGH6Ilyln7nAhROUKVn1lTA2X6QXH9+Rkw+kdk=; b=ReydKfR3iCxfREHXvwATxD24UpYC8NjhvUX5vAUmfo1aMQGyvK1DEvnuyReLPdYyQ9 YodyqOdN8bDHppDsvbBMK3oVhtPV9hHwxYFm8O7ezqhVw1ir2987rHMZ4iGk5vKW307f a70Bnpa80PjCdbPRcizqHRv8b6PaAVT4BgJ3mKs6x0RXhA0ha8CRRJ9Bjq4yZzW52lsY e2FbpNHmew9HDxmKJNt1/2bMuG1EFvLfGmGFlC4WZC+ZM1E47ag1mS4lOPDHX9F3UxrT /w3bnFaBuewUrbCKX+uODqN6ZSCFPyIzsKP4fbMc9ZjLyCVq83SPXSl6koOmUPU1VEbE Byaw== 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 b17-20020a1709065e5100b00783ac0b4d32si3936510eju.941.2022.11.22.06.54.01; Tue, 22 Nov 2022 06:54:19 -0800 (PST) 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 S233460AbiKVOxG (ORCPT + 68 others); Tue, 22 Nov 2022 09:53:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233540AbiKVOw6 (ORCPT ); Tue, 22 Nov 2022 09:52:58 -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 955C1CE2E for ; Tue, 22 Nov 2022 06:52:45 -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 1oxUdf-0006Ln-Fi; Tue, 22 Nov 2022 15:52:43 +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 1oxUdY-005s7l-Rz; Tue, 22 Nov 2022 15:52:37 +0100 Received: from sha by dude02.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1oxUdX-00H3kW-Is; Tue, 22 Nov 2022 15:52:35 +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 v3 01/11] rtw88: print firmware type in info message Date: Tue, 22 Nov 2022 15:52:16 +0100 Message-Id: <20221122145226.4065843-2-s.hauer@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221122145226.4065843-1-s.hauer@pengutronix.de> References: <20221122145226.4065843-1-s.hauer@pengutronix.de> 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 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 It's confusing to read two different firmware versions in the syslog for the same device: rtw_8822cu 2-1:1.2: Firmware version 9.9.4, H2C version 15 rtw_8822cu 2-1:1.2: Firmware version 9.9.11, H2C version 15 Print the firmware type in this message to make clear these are really two different firmwares for different purposes: rtw_8822cu 1-1.4:1.2: WOW Firmware version 9.9.4, H2C version 15 rtw_8822cu 1-1.4:1.2: Firmware version 9.9.11, H2C version 15 Signed-off-by: Sascha Hauer --- Notes: Changes since v2: - new patch drivers/net/wireless/realtek/rtw88/main.c | 4 +++- drivers/net/wireless/realtek/rtw88/main.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw88/main.c b/drivers/net/wireless/realtek/rtw88/main.c index 67151dbf83842..a7331872e8530 100644 --- a/drivers/net/wireless/realtek/rtw88/main.c +++ b/drivers/net/wireless/realtek/rtw88/main.c @@ -1731,7 +1731,8 @@ static void rtw_load_firmware_cb(const struct firmware *firmware, void *context) update_firmware_info(rtwdev, fw); complete_all(&fw->completion); - rtw_info(rtwdev, "Firmware version %u.%u.%u, H2C version %u\n", + rtw_info(rtwdev, "%sFirmware version %u.%u.%u, H2C version %u\n", + fw->type == RTW_WOWLAN_FW ? "WOW " : "", fw->version, fw->sub_version, fw->sub_index, fw->h2c_version); } @@ -1757,6 +1758,7 @@ static int rtw_load_firmware(struct rtw_dev *rtwdev, enum rtw_fw_type type) return -ENOENT; } + fw->type = type; fw->rtwdev = rtwdev; init_completion(&fw->completion); diff --git a/drivers/net/wireless/realtek/rtw88/main.h b/drivers/net/wireless/realtek/rtw88/main.h index bccd7b28f60c7..6e5875f6d07f4 100644 --- a/drivers/net/wireless/realtek/rtw88/main.h +++ b/drivers/net/wireless/realtek/rtw88/main.h @@ -1851,6 +1851,7 @@ struct rtw_fw_state { u16 h2c_version; u32 feature; u32 feature_ext; + enum rtw_fw_type type; }; enum rtw_sar_sources { -- 2.30.2