Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2354035pxb; Mon, 20 Sep 2021 19:53:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJye33pBh3w4oc9uBKyiSEXbsGkUEUSfj7kuW/47J+Py7DiyQFRkDJOMTEyr4Zb59G6dHI1Q X-Received: by 2002:a05:6638:204c:: with SMTP id t12mr21898246jaj.9.1632192783749; Mon, 20 Sep 2021 19:53:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192783; cv=none; d=google.com; s=arc-20160816; b=r/DTkYk5vrh3/tRWSjaKe6EXzpZpPgrYsbtlOZGMdKL9qyGB6r7aNnstlJpwmzD8ky grGPBFxW7xBXqVvwP//woNR92q8MFJ+977bo/miwzgCetLz9fRyEZuT+Caivm4/r2ACk DJtbxhaHqbv9eLM8X3SrwCB54RkYHUZM9quFB5eDiSJ0CMQxhAg3Y3jbFA33OSG1AZ/y NZsDtUYTQVNhS9pe+mYoXpmsi6hXUSMQv0xMs1d5zvm6cETv8v+VheMl3SuR0zM6NrhY HsEQfuejFe5qKzLnvNNcm0gJJ4n4qfJ2aU3cv7RUQbOcHqF5IcWY+PHEXUn04kke7kwb J+ZA== 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=tKB8khaheByzrRDGEfPCnjEFHWVLEVsUn81Z9uKLGjY=; b=FlV4YEIBSBUkQvKNCxLdgq50MXxvDRTu76yWYL38WzHAi8ohZM1b0/1XuXLHELHr3o fGZFZtm/zgmtKZhXuGBWn1W4PlG31vDvE4NOMkPWVmhxKQX1lOSwDq9OWROPklfUd9V+ qomH6GPiQNzbWjQC6IGpUdTG2aPfmxattVPOap46htukEfQmUWBmKJw2UitKFkBof2g5 kPWNHH1U23+00+jgi1c9T+fZnVyWJe8ZDPs62pq/MRgCA03sFfWE1+W3VvW7h1NjcRJM 9lavDMwaL8qdKRJCdbhbJAKOIpGYIP2cd2wry51m1Il6/FEhq2WcrTFPTKLDThR3B1f+ nj1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="SgkEH/LV"; 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 r4si7018319ilb.106.2021.09.20.19.52.51; Mon, 20 Sep 2021 19:53:03 -0700 (PDT) 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="SgkEH/LV"; 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 S1385954AbhITSwx (ORCPT + 99 others); Mon, 20 Sep 2021 14:52:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:33338 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385478AbhITSu2 (ORCPT ); Mon, 20 Sep 2021 14:50:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3E36D63381; Mon, 20 Sep 2021 17:34:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632159289; bh=1vU2pc2dafStELicyKO2T62E2HcMJTcWH94LaUxYn0k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SgkEH/LVXRtSizpwRa5EG/sjZjqmIWoUJSD6k6lb7bOm7EgqG7fIbmhAUAzTcSEE5 i7YK+qJRuPAJsvNPYFio0EwalFJOlFDqQgxKsbV/LevcQ9bVcgcwS8Kx0jozexFGn5 gy9ETfQPaIcdQdj/J9Lp/LzNmiOAnpQjkf6EBilI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Edwin Peer , Michael Chan , "David S. Miller" , Sasha Levin Subject: [PATCH 5.14 162/168] bnxt_en: fix stored FW_PSID version masks Date: Mon, 20 Sep 2021 18:45:00 +0200 Message-Id: <20210920163926.997463008@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163921.633181900@linuxfoundation.org> References: <20210920163921.633181900@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: Edwin Peer [ Upstream commit 1656db67233e4259281d2ac35b25f712edbbc20b ] The FW_PSID version components are 8 bits wide, not 4. Fixes: db28b6c77f40 ("bnxt_en: Fix devlink info's stored fw.psid version format.") Signed-off-by: Edwin Peer 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 64381be935a8..8b7f6a0ad401 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c @@ -471,8 +471,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, "%d.%d.%d", (ver >> 16) & 0xf, (ver >> 8) & 0xf, - ver & 0xf); + sprintf(buf, "%d.%d.%d", (ver >> 16) & 0xff, (ver >> 8) & 0xff, + ver & 0xff); rc = bnxt_dl_info_put(bp, req, BNXT_VERSION_STORED, DEVLINK_INFO_VERSION_GENERIC_FW_PSID, buf); -- 2.30.2