From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C72BCA0C43; Mon, 16 Aug 2021 01:13:04 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2CE834113D; Mon, 16 Aug 2021 01:13:00 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id DDEBB41123 for ; Mon, 16 Aug 2021 01:12:58 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.0.43) with SMTP id 17FLnbHl018064 for ; Sun, 15 Aug 2021 16:12:58 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=r1S2UnAf14alOZF1YbxtkziLKj1GbimfG0HKrwXAyYE=; b=a1yc49vyRksqHeXrQHvD4tqrkW/RUOMv++/Hcs+kAH72BWgSIvCKfRssWz8D/DUeLfQl NNbRb9AJqlFu9xp+aV6L0JcqUNJc7t4tDRnuK7lwhjO+OZBvbQ3/WT6QmOuY+fdSxY6J l4X5HJ2VK/FMzm73CYC9uS0IVKg1j2KWlMiuKKVuQGUdC3Smcmpp4U5ehtzX2L7rsz05 sGDMEHkHzVvXyLlL8NNPZh9GI0K2oRvniTHnnYv8G0eBHNcPibS5Q36neK3iEM1CcSVk ydsXDT85X3n+boT3YhJ6GQ9NyBxnMc96cLElMSr/lr0AKk/ZRoa3u6oPzseuLRy6os94 TA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com with ESMTP id 3af0pth4ef-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sun, 15 Aug 2021 16:12:58 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sun, 15 Aug 2021 16:12:56 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Sun, 15 Aug 2021 16:12:56 -0700 Received: from localhost.localdomain (unknown [10.28.34.39]) by maili.marvell.com (Postfix) with ESMTP id 43A645B6956; Sun, 15 Aug 2021 16:12:55 -0700 (PDT) From: Tomasz Duszynski To: , Jakub Palider , Tomasz Duszynski CC: Jerin Jacob Kollanukkaran Date: Mon, 16 Aug 2021 01:12:00 +0200 Message-ID: <20210815231202.1192974-2-tduszynski@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210815231202.1192974-1-tduszynski@marvell.com> References: <20210815231202.1192974-1-tduszynski@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: FjiUn497s9WFqG-IZldeVkMxFfnpsiB- X-Proofpoint-ORIG-GUID: FjiUn497s9WFqG-IZldeVkMxFfnpsiB- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-08-15_09,2021-08-13_02,2020-04-07_01 Subject: [dpdk-dev] [PATCH 1/3] raw/cnxk_bphy: fix device lookup 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 Sender: "dev" Name needs to be prepared before the lookup otherwise PMD will not be released. Fixes: 24d9c5d59d5d ("raw/cnxk_bphy: add baseband PHY skeleton driver") Signed-off-by: Tomasz Duszynski Reviewed-by: Jerin Jacob Kollanukkaran --- drivers/raw/cnxk_bphy/cnxk_bphy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/raw/cnxk_bphy/cnxk_bphy.c b/drivers/raw/cnxk_bphy/cnxk_bphy.c index 9cb3f8d332..8a0d2224c0 100644 --- a/drivers/raw/cnxk_bphy/cnxk_bphy.c +++ b/drivers/raw/cnxk_bphy/cnxk_bphy.c @@ -306,14 +306,13 @@ bphy_rawdev_remove(struct rte_pci_device *pci_dev) return -EINVAL; } + bphy_rawdev_get_name(name, pci_dev); rawdev = rte_rawdev_pmd_get_named_dev(name); if (rawdev == NULL) { plt_err("invalid device name (%s)", name); return -EINVAL; } - bphy_rawdev_get_name(name, pci_dev); - return rte_rawdev_pmd_release(rawdev); } -- 2.25.1