From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 361391150; Fri, 18 Jan 2019 20:06:36 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id AF546295A9; Fri, 18 Jan 2019 14:06:35 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 18 Jan 2019 14:06:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=gm67YACjBeiW63F18I1VlXlfnX3axQaMd+sx3SVd2Zg=; b=qTfJKYYeaXh6 n49b+mUvNrdn6sDMWNr505gmULY0UyrtWREG8uA30UnDpDFlLSJOvwVeMviI7Gye QlUkMjBuCl6upBsJb159ZEQx7kDopZ9jcq/ZmVD6Ym5IQJoe5aSoisrJhaDbBaQn dRmVIo9ZlQHp0CpyaZvAnr0TmsUKSoo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=gm67YACjBeiW63F18I1VlXlfnX3axQaMd+sx3SVd2 Zg=; b=OQNGFdJL0bA7Q755rPPgo5IkCEaAUcpJRRV8Vujc7djTU4kxWctEs36Ly RGlep6CLuR4tRZ9x6Lhn1lJtetZlXbxxjM4uQYV9Gnz6eYA5PEDNyqvgBU3w3yMs h/W8x5FVMCiHbonbID5+le4lIP1QyML+Hu5q0p5kO/0ovghxQKGhPi+IEeH78DSs 1j6lqWu8wwtPpQcOuwM2wNFaH2SXLkMx5g2BawLdVf/Tro5mqLWHUu8C7BfrovqH FHTBYWLbUlJfpySBhPEj7U7PS5SuVpgz+HONsJDyFvceUUI+rsh61I6Zf+Hs/K/6 1yivzRaPRkDH6Bx9RJO6CamFoKjOg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrhedtgdduvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkjg hfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcu oehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkphepjeejrddufeegrddvtd efrddukeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl ohhnrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 6010BE4511; Fri, 18 Jan 2019 14:06:34 -0500 (EST) From: Thomas Monjalon To: Ferruh Yigit , Andy Pei Cc: stable@dpdk.org, dev@dpdk.org, Rosen Xu Date: Fri, 18 Jan 2019 20:06:33 +0100 Message-ID: <17392496.4iuxs547d5@xps> In-Reply-To: <20190118111233.45114-1-ferruh.yigit@intel.com> References: <1547703414-203279-1-git-send-email-andy.pei@intel.com> <20190118111233.45114-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-stable] [PATCH v2] bus/ifpga: fix ifpga afu driver probe failure handler X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2019 19:06:36 -0000 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