From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 132882F619D; Thu, 15 Jan 2026 17:40:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768498807; cv=none; b=ZoXzQ9WRr+wUNu4EKAhATROgRVXphaA8Xuvti+2T9noH5SnQEaCobk9u87pYobywPrLkVNAB96kkTpMdMA2dIaqKPUheems02WQ6ZRzS31LhWav024oVf+K8+Tb/5y7yR56TqXanpsEy13+E7VbSMroRdgWHhbhG0F5U8sNvqic= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768498807; c=relaxed/simple; bh=RIVcA52VbCkhP4A5MIVPDVWP528TjEXBuDzjv7A1iNA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZNgPvoFFIcUu2gYjumIRLIJnsT5F3zO522b1HJ0iDrHw1pqPjNSYNJnPCw/4J6MgYtoE0bdvCepfH0ND/eU27UkoDqyLC+nLZvUqbMCQ04yT388rQ/1TPAUcYQmU/kjfPGN6yVKmBvEN0Bgnaj8enz3vlP93SVBbdm0L4z/hqgE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yvjTvKlM; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="yvjTvKlM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90A29C116D0; Thu, 15 Jan 2026 17:40:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768498806; bh=RIVcA52VbCkhP4A5MIVPDVWP528TjEXBuDzjv7A1iNA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yvjTvKlMwLcGb4UEgSJNf4Rl8b6Zt8Sc52mhZeHyTvHTAtlest2wTP/aK+jddBNjk blIZZUY2URF6QDs4yVGFxZlHYkOV/Rce312kkUuik3G3Bf/Nd7iOfvQRvjjEsAvxS1 Vqi29eIKSw1vBnrBgdwSTJosw5VRcPtBFGkBpzmQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Gal Pressman , Tariq Toukan , Mark Bloch , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.15 534/554] net/mlx5e: Dont print error message due to invalid module Date: Thu, 15 Jan 2026 17:50:00 +0100 Message-ID: <20260115164305.656346209@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260115164246.225995385@linuxfoundation.org> References: <20260115164246.225995385@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Gal Pressman [ Upstream commit 144297e2a24e3e54aee1180ec21120ea38822b97 ] Dumping module EEPROM on newer modules is supported through the netlink interface only. Querying with old userspace ethtool (or other tools, such as 'lshw') which still uses the ioctl interface results in an error message that could flood dmesg (in addition to the expected error return value). The original message was added under the assumption that the driver should be able to handle all module types, but now that such flows are easily triggered from userspace, it doesn't serve its purpose. Change the log level of the print in mlx5_query_module_eeprom() to debug. Fixes: bb64143eee8c ("net/mlx5e: Add ethtool support for dump module EEPROM") Signed-off-by: Gal Pressman Reviewed-by: Tariq Toukan Signed-off-by: Mark Bloch Link: https://patch.msgid.link/20251225132717.358820-5-mbloch@nvidia.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/port.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/port.c b/drivers/net/ethernet/mellanox/mlx5/core/port.c index fd79860de723b..fdf708d642887 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/port.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/port.c @@ -414,7 +414,8 @@ int mlx5_query_module_eeprom(struct mlx5_core_dev *dev, mlx5_qsfp_eeprom_params_set(&query.i2c_address, &query.page, &offset); break; default: - mlx5_core_err(dev, "Module ID not recognized: 0x%x\n", module_id); + mlx5_core_dbg(dev, "Module ID not recognized: 0x%x\n", + module_id); return -EINVAL; } -- 2.51.0