From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [dpdk-stable] [PATCH v2] bus/ifpga: fix ifpga afu driver probe failure handler Date: Fri, 18 Jan 2019 20:06:33 +0100 Message-ID: <17392496.4iuxs547d5@xps> References: <1547703414-203279-1-git-send-email-andy.pei@intel.com> <20190118111233.45114-1-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: stable@dpdk.org, dev@dpdk.org, Rosen Xu To: Ferruh Yigit , Andy Pei Return-path: In-Reply-To: <20190118111233.45114-1-ferruh.yigit@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 18/01/2019 12:12, Ferruh Yigit: > From: Andy Pei > > In the original code, when an AFU device probe a driver, > if the first driver in the driver list does not support > this device or some error happens, bus probe returns an error. > > With this patch, a device will try to match driver in the driver > list one by one until an appropriate driver is found. > > If some error happens, the error is returned. If the current driver > does not support the device, just try the next driver in the list. > > If all the drivers in the list are tried and no driver matches, > 0 is returned. Otherwise, the error code is returned. > > Fixes: 05fa3d4a6539 ("bus/ifpga: add Intel FPGA bus library") > Cc: stable@dpdk.org > > Signed-off-by: Andy Pei > Reviewed-by: Ferruh Yigit > Acked-by: Rosen Xu Applied, thanks