From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id AD1F18A1 for ; Fri, 5 Aug 2016 13:43:03 +0000 (UTC) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id A9EDA1F8 for ; Fri, 5 Aug 2016 13:43:02 +0000 (UTC) Date: Fri, 5 Aug 2016 15:43:15 +0200 From: Greg KH To: Andrzej Hajda Message-ID: <20160805134315.GA8884@kroah.com> References: <20160804102058.GT10376@sirena.org.uk> <2402711.Aor2uS9Chj@wuerfel> <20160805105420.GB1057@kroah.com> <57A47906.8060607@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57A47906.8060607@samsung.com> Cc: ksummit-discuss@lists.linuxfoundation.org, Mauro Carvalho Chehab , "vegard.nossum@gmail.com" , "rafael.j.wysocki" , Valentin Rothberg , Marek Szyprowski Subject: Re: [Ksummit-discuss] [TECH TOPIC] Addressing complex dependencies and semantics (v2) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Aug 05, 2016 at 01:31:18PM +0200, Andrzej Hajda wrote: > On 08/05/2016 12:54 PM, Greg KH wrote: > > On Fri, Aug 05, 2016 at 11:01:43AM +0200, Arnd Bergmann wrote: > >> On Thursday, August 4, 2016 9:59:30 PM CEST Rob Herring wrote: > >>> On Thu, Aug 4, 2016 at 5:20 AM, Mark Brown wrote: > >>>> On Thu, Aug 04, 2016 at 11:50:49AM +0200, Greg KH wrote: > >>>> > >>>>> Nope, it doesn't work that way, sorry. > >>>>> Nice try, just unwind your initialization properly > >>>> Deferred probe is probably the best thing that ever happened for the > >>>> quality of kernel error handling > >>> Now we just need a way to force testing of the remove functions. > >> Hmm, instead of calling just 'probe', we might first call probe, > >> then remove, then probe again as a compile-time option. > >> > >> What could possibly go wrong? ;-) > > Ooooh, that would be fun to see what blows up, anyone want to try it? > > There are already unbind/bind sysfs attributes which do the trick. Yes, but that doesn't work so well at boot time, when you want to probe/remove/probe _all_ of your hardware drivers :) greg k-h