Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2165601lqb; Mon, 27 May 2024 09:49:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhPIdIcvVeh1n7NtZCzlk4/cNTCw4f4kOQjkg76uVuPo1jzVsoCp+aQhQzOEyHE+Irn3AaVpuOEZUc2mynBzI30mWpG+yARgxQX0TekA== X-Google-Smtp-Source: AGHT+IGqa6DZz6Vl082pYf8FTW/QzNqeRmnj16oaEf9PA1lNGtUPIytv8Hxo4S+zj1zIaciqidHW X-Received: by 2002:a17:902:c94d:b0:1f4:98f4:4763 with SMTP id d9443c01a7336-1f498f449a0mr38152075ad.53.1716828591249; Mon, 27 May 2024 09:49:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716828591; cv=pass; d=google.com; s=arc-20160816; b=QlGpCFl7Lg7es7mxvC94KItC1dI4VFEFR6aqW592nVDmTmVK9a1CdSW6Djcb2OEv8+ IaCOEdhwkRZQ8CWT/DKrsVXuGZ50fpn+QH/xgihWf5T7T1jPBHUtyquJX9nRRUGzEcOZ UtUgGrynCiyrEuHYIC9FoHDyOHbz9OPbmaJ5JgZ7QTu+wDap1pDevOjgg2xa93pKMAjv NmMUEpzddaPAYiIY37YktzD6hXplSszlDEunB8xvsYatDtB9HAAfG9bSfclvZqzM5Qwj WUTXehQsRNwGVWLLP4afr/iZxFIadjTftJrfj4JyBw3SvTbLg+qQsFXn9TQPVu3huoSI OAmQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:organization:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=AUY4HvZlPD/1aH0blowVrwxviE7AK20XUhWZdYS/iRw=; fh=TquNsOiV+zNY1csTpltVB6A9QFW5SbuNs6JlqcKCQkw=; b=0soDMjVYv0wQFwUMkX+6hGTru56BvU4Wnph36ClvHZF4iXJmtv+NDISafiE1qPL64G EpTTCUQFDgjFYbUMtQVKBt66vJsu2AOtQ+iD48vZznNrkaCLsab95H2CXWWvPOnPGozw QGLArh6Dqbv8cSysFWzqGH3FGeCLwyf8DndTUocws6wCX7c7poJMmMH7ZR44gE0ZJUAU NAeM+M+0uurrqCcw1NsTtKvE6NtsiweFdZFOcR74n91tIeVNjWLZMbksMKUSVmfhehrb OaIUim7KQ+vzldMFQ0BFcsMAuaPWX8ClhLmHB66aOMRe8IoJSYvJF1+ZThQye7VfSpPd qnAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NCPJwurf; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless+bounces-8129-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8129-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c9b7af3si64676465ad.460.2024.05.27.09.49.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 09:49:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8129-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NCPJwurf; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless+bounces-8129-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8129-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4EDE3B326C5 for ; Mon, 27 May 2024 16:18:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6D8C16ABC5; Mon, 27 May 2024 16:06:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NCPJwurf" X-Original-To: linux-wireless@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 54B2216A387 for ; Mon, 27 May 2024 16:06:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716826007; cv=none; b=sU8uYoNQn3q4rubdXLKZj4AGlGvNwEAFdh+Qk+sCWKN/hgBrSoKtpG1hTd8oB2mpq0yIcCWN+S4A0sy/M9GhW57nkJebqGu/Y7Cvi6bgKqy4+8ks1g0bXVRKhqQ2oQKraQlSXE29kr0lSvP+u43aatsA/sywvukoBDoV8GhfVcw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716826007; c=relaxed/simple; bh=6PlQHpmLhVTDr2w6PgBCI+VbOS76xIY47fqcHkDY5+I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pTFc+Cfo5klhm0QLXqTZD3qednu1rq9id1ZVvRx/sQDSbbcXsWxaOZRb95ghJEe7eWQ5xahI+OUmfHpvoycRakKDhZ0io52KH3Q/sIcXuYBLkO9/v2+PuTbe7uHgQJeUMkvabqKIe1qBiyRaIiwJXsRSoG2LdwwJ/d1W0iA1+7E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=NCPJwurf; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716826007; x=1748362007; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6PlQHpmLhVTDr2w6PgBCI+VbOS76xIY47fqcHkDY5+I=; b=NCPJwurfGXwLdNF8aFmECT8ECQru+TnuKn/UKirled2yvnVek4zAMzJm 4SewWeFpKRQUF8suKBlqQSOMLNpsr7Ze+YjzwkZ+YqsbtdSCeP6mBIUri 6bbDKz5n1nVwYSqJD6Ii0PTCyEawxn/T5K1YqBnKY2UYfM1kfqidGifqS gX7sRsVkulr8rEm0ft4VE6aCyfKMPvf8zI6DIsOulD/3vKeR+YO+2dV3k c2ZfEu7J1bpW0nhiKDN6eD0oz611jKjMyS9NS6E9z0Um5DYRqF5cDOJ++ kS+QXYoy9qH5BpEbX00VhflSIlE4OvGDvtM+Bol0HfR4zYwBTJJQ2bF1d Q==; X-CSE-ConnectionGUID: TSDsabagRGGNVnq4G3FkNQ== X-CSE-MsgGUID: 09z4feUMQViBarDouxjxuQ== X-IronPort-AV: E=McAfee;i="6600,9927,11085"; a="13002110" X-IronPort-AV: E=Sophos;i="6.08,193,1712646000"; d="scan'208";a="13002110" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2024 09:06:46 -0700 X-CSE-ConnectionGUID: 9e0J9YlTQ12Kxhz3na6Bgg== X-CSE-MsgGUID: IJil7A2cRGm3vmbMfLgnVQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,193,1712646000"; d="scan'208";a="35407124" Received: from weis0040.iil.intel.com ([10.12.217.108]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2024 09:06:45 -0700 From: Miri Korenblit To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Johannes Berg Subject: [PATCH 15/20] wifi: iwlwifi: mvm: show full firmware ID in debugfs Date: Mon, 27 May 2024 19:06:10 +0300 Message-Id: <20240527190228.527a1c72996d.If7588b854149d51605031fc9a70a650534351ef4@changeid> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240527160615.1549563-1-miriam.rachel.korenblit@intel.com> References: <20240527160615.1549563-1-miriam.rachel.korenblit@intel.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Organization: Intel Israel (74) Limited Content-Transfer-Encoding: 8bit From: Johannes Berg The firmware prefix is unused today, but it might still be useful to have some information. Since the prefix will get the intel/ directory in some cases, replace the prefix by the full FW id which has all the information. Signed-off-by: Johannes Berg Signed-off-by: Miri Korenblit --- drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c index 1504cbec69c9..cb164b733cb3 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c @@ -754,7 +754,6 @@ static ssize_t iwl_dbgfs_fw_ver_read(struct file *file, char __user *user_buf, struct iwl_mvm *mvm = file->private_data; char *buff, *pos, *endpos; static const size_t bufsz = 1024; - char _fw_name_pre[FW_NAME_PRE_BUFSIZE]; int ret; buff = kmalloc(bufsz, GFP_KERNEL); @@ -764,8 +763,8 @@ static ssize_t iwl_dbgfs_fw_ver_read(struct file *file, char __user *user_buf, pos = buff; endpos = pos + bufsz; - pos += scnprintf(pos, endpos - pos, "FW prefix: %s\n", - iwl_drv_get_fwname_pre(mvm->trans, _fw_name_pre)); + pos += scnprintf(pos, endpos - pos, "FW id: %s\n", + mvm->fwrt.fw->fw_version); pos += scnprintf(pos, endpos - pos, "FW: %s\n", mvm->fwrt.fw->human_readable); pos += scnprintf(pos, endpos - pos, "Device: %s\n", -- 2.34.1