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 292D0A0C4C; Tue, 28 Sep 2021 15:20:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD73640E3C; Tue, 28 Sep 2021 15:20:50 +0200 (CEST) Received: from mail-il1-f181.google.com (mail-il1-f181.google.com [209.85.166.181]) by mails.dpdk.org (Postfix) with ESMTP id D2EBC40DF6 for ; Tue, 28 Sep 2021 15:20:48 +0200 (CEST) Received: by mail-il1-f181.google.com with SMTP id b6so23334150ilv.0 for ; Tue, 28 Sep 2021 06:20:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ok1lvN0FGn7UI0KkziFhe5xzujsY3RlRYAAtpQAc8wQ=; b=nD9yrZZK1jyfOaPCZhUh8lx9KfRUeIUY1isdH3XAiklh4VkRAhB7ZHUMTy22OOoQUy YDAPSp0zylkGUvwZVY+oN0vUiTTo9p3cNurLCRBDuYe9VfnOP10E/0wKL+5B6FnD0NEH +s1868bVdqogTpsHqqWuzcRqaNKKeRCZKsp0DH+FLbBXcta3VjEVejF7trdpwWpXc+7v uMsc4H//sS73TXQsuScXIFgzTXIbXfVGci7B9bX+tI6EHAbvVgm+NuDpLWUMqgUS3U+d 0KLiEeCgtZppBKc4Lf7vOsaInQXAErM/kYWn6C8rZMOHbXq0Y3EVVM9p2AC+Qsx5n5Kd 0e/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ok1lvN0FGn7UI0KkziFhe5xzujsY3RlRYAAtpQAc8wQ=; b=Tw0gB/osmG8xnvdiiasZfWJIVKKh1f8obv9dXyGAuLbzVB45upp7vxs8aC6LXgC4vV dykpfRmhFdfVEfUNbSFWN8C/wmsC3926TTVnVR+bZbbfgGJduDUn9UtO664Q4cLCzZOG EpE/pUIwyPMCC9r40hi1tIoGIOXAmsgKI7ihQGSGl7VH0euyywDqr310hNxQm+WcBIAw J72mm3WL355kj3Jcrnw/+N1yaq0b2Ll+ILiRjslIYeX6COL/ao4b1woEMuz2+JmeuaId 1qRJxW38UpEplLsF/c5QWuqQBIwBfXQkBOI7I95o1rfOhFx5RvFBQy/sin9Kct3kdQ1k +btA== X-Gm-Message-State: AOAM5322M/uv/Z9A4MD5gr7mSWK/EADs7ihX1/A9xBBvku0CX7FO8hKQ ulE3tSO1tQBuU70aj1Ag1BndxpidR8+WJRux8pI= X-Google-Smtp-Source: ABdhPJwlumWVq7me+RuGn5UCCyBZRoSe/H5rBsmZB3YR/o02GZ24eo7zyCgWFrJvy+bzCrRMcIBVN8lBtATdFBZk//Y= X-Received: by 2002:a92:c548:: with SMTP id a8mr4461453ilj.295.1632835248176; Tue, 28 Sep 2021 06:20:48 -0700 (PDT) MIME-Version: 1.0 References: <20210815231202.1192974-1-tduszynski@marvell.com> <20210815231202.1192974-2-tduszynski@marvell.com> In-Reply-To: <20210815231202.1192974-2-tduszynski@marvell.com> From: Jerin Jacob Date: Tue, 28 Sep 2021 18:50:22 +0530 Message-ID: To: Tomasz Duszynski , Ferruh Yigit Cc: dpdk-dev , Jakub Palider , Jerin Jacob Kollanukkaran Content-Type: text/plain; charset="UTF-8" Subject: Re: [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" On Mon, Aug 16, 2021 at 4:43 AM Tomasz Duszynski wrote: > > 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 Series applied to dpdk-next-net-mrvl/for-next-net. Thanks. > --- > 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 >