From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Rybchenko Subject: Re: [PATCH v3 1/3] drivers/bus: move driver assignment to end of probing Date: Mon, 8 Oct 2018 11:05:07 +0300 Message-ID: References: <20180907230958.21402-1-thomas@monjalon.net> <20181007220933.4533-1-thomas@monjalon.net> <20181007220933.4533-2-thomas@monjalon.net> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: , , , To: Thomas Monjalon , Return-path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id 809C2DE3 for ; Mon, 8 Oct 2018 10:05:56 +0200 (CEST) In-Reply-To: <20181007220933.4533-2-thomas@monjalon.net> Content-Language: en-GB 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 10/8/18 1:09 AM, Thomas Monjalon wrote: > The PCI mapping requires to know the PCI driver to use, > even before the probing is done. That's why the PCI driver is > referenced early inside the PCI device structure. See > 1d20a073fa5e ("bus/pci: reference driver structure before mapping") > > However the rte_driver does not need to be referenced in rte_device > before the device probing is done. > By moving back this assignment at the end of the device probing, > it becomes possible to make clear the status of a rte_device. > > Signed-off-by: Thomas Monjalon Reviewed-by: Andrew Rybchenko