[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YyxLCNxM+MY4QXqU@unreal>
Date: Thu, 22 Sep 2022 14:46:16 +0300
From: Leon Romanovsky <leon@...nel.org>
To: ruanjinjie <ruanjinjie@...wei.com>
Cc: dennis.dalessandro@...nelisnetworks.com, jgg@...pe.ca,
linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next] IB/hfi1,PCI: Fix missing pci_disable_device() in
probe and remove
On Thu, Sep 22, 2022 at 10:46:01AM +0800, ruanjinjie wrote:
> Replace pci_enable_device() with pcim_enable_device(),
> pci_disable_device() and pci_release_regions() will be
> called in release automatically.
>
> Signed-off-by: ruanjinjie <ruanjinjie@...wei.com>
> ---
> drivers/infiniband/hw/hfi1/pcie.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
This driver doesn't use devres model and manages all resources by
itself. IMHO, it is much more saner than using automatic resource
release.
Thanks
Powered by blists - more mailing lists