Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3829877pxb; Mon, 1 Mar 2021 22:44:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwoYm3z5jubw0fwA4LEvAOYUs3SKON32Ad+FiHIM+p8AR3sQSjRPWGp5JwcBDaIeqEyCl5Y X-Received: by 2002:a17:907:7799:: with SMTP id ky25mr1439313ejc.217.1614667493656; Mon, 01 Mar 2021 22:44:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614667493; cv=none; d=google.com; s=arc-20160816; b=eSQG4J6uoUn6pLILxoot14/g1xF1bGtY1Tl7H4LAmtfQlBddkVgI3dWNs9GH4TBLns kPu4i1GP6g5+LMNASuTHC9T89XaiGsV14mRGrnYivMXO3dn6WDibB7ZuRJtc+nAznV9M RUALD8k5pmDavAQmRX3s941UjSQUcp2Scn9qqeQJeMyPpZpsW+qx5arCDT7Nn7c41vx1 L+oMJNnbDxK/10rsMQGn3ruBISZ87Sze7VMqHKwBt/re6kbnij5tox1D77t3WBfQZbkI x//ENcD6d5obidlgLp1ArZ5BrdkoNZVRUardkXtXTTQyFQeNUwLNFsQj96+2nR8KyLQ5 SOcg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5NV+d9V9k2mYnm0oBy9BVybW7eKLI8AkG6LZ9XhZotk=; b=fQ1IYqB0I/UaNJ2aIsVAXKTKGXcQ5tPycXDjuJZES9FMPTfL0qrh/aBmj/a0QzJVFk gVCV5lv5ZYdsucEg7Fquh5OIxOTKodLjl77wbovlrimC7xJJM1UCexorjgk1zjFJD6FL 5corLAmWS97+fOeIHRYtotVQu/fTvsIwWV4mX3BKdvv7nZeMqNrOEYwV4wgJya+OEWQ6 NM9NSDtTV1z5AmFVochaqqjHicSf52dLNmJdRyW/qZbxL50w1tSpB1q+b7DY2khs4Z5o U5BLlUnZomhBacVZrMLO5wUDQUCc/aEc1U3JZotbRt9Rf3ADYnCYKFyjMdDjlX4Pw4mU rZGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KGddnxkb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si13238441edd.14.2021.03.01.22.44.31; Mon, 01 Mar 2021 22:44:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KGddnxkb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377249AbhCBAqW (ORCPT + 99 others); Mon, 1 Mar 2021 19:46:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:51246 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236845AbhCASjw (ORCPT ); Mon, 1 Mar 2021 13:39:52 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A140265004; Mon, 1 Mar 2021 17:09:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614618555; bh=EbGvPKEonl1pIs0mpQhSYMEsajxJXlBdjh798VJ8bfI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KGddnxkb6jGEy0g2LJ1C2GD4POtmMBi/TwLMjQXtehEHNRRsaCr/6TslBbcMwjzku FkgMlmpvTKxcDPyO7tB9UVnifSpI300HN4EP5JzIz4Kf4YxxOFKPOfcvIxnqndXJZr lr9FA74RfX5PTsHupNn+HnDLbDaFfb8BpIq2Z5+s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vasundhara Volam , Michael Chan , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 099/663] bnxt_en: Fix devlink infos stored fw.psid version format. Date: Mon, 1 Mar 2021 17:05:47 +0100 Message-Id: <20210301161146.626646736@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vasundhara Volam [ Upstream commit db28b6c77f4050f62599267a886b61fbd6504633 ] The running fw.psid version is in decimal format but the stored fw.psid is in hex format. This can mislead the user to reset the NIC to activate the stored version to become the running version. Fix it to display the stored fw.psid in decimal format. Fixes: 1388875b3916 ("bnxt_en: Add stored FW version info to devlink info_get cb.") Signed-off-by: Vasundhara Volam Signed-off-by: Michael Chan Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c index 184b6d0513b2a..8b0e916afe6b1 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c @@ -474,8 +474,8 @@ static int bnxt_dl_info_get(struct devlink *dl, struct devlink_info_req *req, if (BNXT_PF(bp) && !bnxt_hwrm_get_nvm_cfg_ver(bp, &nvm_cfg_ver)) { u32 ver = nvm_cfg_ver.vu32; - sprintf(buf, "%X.%X.%X", (ver >> 16) & 0xF, (ver >> 8) & 0xF, - ver & 0xF); + sprintf(buf, "%d.%d.%d", (ver >> 16) & 0xf, (ver >> 8) & 0xf, + ver & 0xf); rc = bnxt_dl_info_put(bp, req, BNXT_VERSION_STORED, DEVLINK_INFO_VERSION_GENERIC_FW_PSID, buf); -- 2.27.0