From patchwork Tue Mar 14 03:46:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shijith Thotton X-Patchwork-Id: 125089 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A70A041E89; Tue, 14 Mar 2023 04:47:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 84EB3410D1; Tue, 14 Mar 2023 04:47:06 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 173A040F16 for ; Tue, 14 Mar 2023 04:47:04 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32DKIphq021174 for ; Mon, 13 Mar 2023 20:47:04 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=h9pJe4tm5GnQad7FgfKknaawcepl3EBzjmusjtikQTk=; b=j0AXzFStNebdIMaH8MqbNRxsxVzwyhvsfyeC/7gtueD1SylSjINkkJyPTE+INNEUog8Q IaMoiJb1vMEfcnatTW2xJl1n3l1J7iC7rZgzbEU+KQp6NyTFq9sixpVZIJusyu6RVnNv Yi9XbJX4TbHjBld7PEdG7MDUctE+vBMgeOCMzXd92inMNNRYjKNQk+u5xWYlqTHrSojo 02UTmQ4F4eGRYkLkMHkqy4wNc5GhhoHUWzeuIeTDB0bn5l2KJNGdFwj/uB/rvrqxEOh4 mm+o1qLINJAiNfprmJPCZDr1lHu15rbfraCTthIDwo9Ck1VMzj7oBvnYCkJpEYeZ7dGK ZQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3p9xxmvjdh-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 13 Mar 2023 20:47:03 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 13 Mar 2023 20:47:02 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.42 via Frontend Transport; Mon, 13 Mar 2023 20:47:02 -0700 Received: from localhost.localdomain (unknown [10.28.34.29]) by maili.marvell.com (Postfix) with ESMTP id 1237F3F7081; Mon, 13 Mar 2023 20:47:00 -0700 (PDT) From: Shijith Thotton To: CC: Shijith Thotton , , Subject: [PATCH v1] common/cnxk: fix initialization of timer LF count Date: Tue, 14 Mar 2023 09:16:59 +0530 Message-ID: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-GUID: N-ysKueKzZDkEwv6ygKsGi_qG84O2GgC X-Proofpoint-ORIG-GUID: N-ysKueKzZDkEwv6ygKsGi_qG84O2GgC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-13_13,2023-03-13_03,2023-02-09_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Assignment of nb_lfs variable with the available number of timer LFs was not happening in the success case after the addition of the new label "done". This patch fixes the same by moving the assignment under the label. Fixes: 44a9307c0908 ("common/cnxk: support mailbox locking") Signed-off-by: Shijith Thotton Acked-by: Pavan Nikhilesh --- drivers/common/cnxk/roc_tim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_tim.c b/drivers/common/cnxk/roc_tim.c index 6f256c60fa..f8607b2852 100644 --- a/drivers/common/cnxk/roc_tim.c +++ b/drivers/common/cnxk/roc_tim.c @@ -394,11 +394,11 @@ roc_tim_init(struct roc_tim *roc_tim) } else { goto done; } - roc_tim->nb_lfs = nb_lfs; fail: mbox_put(dev->mbox); done: + roc_tim->nb_lfs = nb_lfs; return nb_lfs; }