From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Luis R. Rodriguez" Subject: Re: [RFC v2 2/6] driver-core: add driver async_probe support Date: Tue, 21 Oct 2014 01:43:25 +0200 Message-ID: References: <1409899047-13045-1-git-send-email-mcgrof@do-not-panic.com> <1409899047-13045-3-git-send-email-mcgrof@do-not-panic.com> <20140905221029.GA35667@core.coreip.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Greg Kroah-Hartman , Wu Zhangjin , Takashi Iwai , Tejun Heo , Arjan van de Ven , "linux-kernel@vger.kernel.org" , Oleg Nesterov , hare , Andrew Morton , Tetsuo Handa , Joseph Salisbury , Benjamin Poirier , Santosh Rastapur , Kay Sievers , One Thousand Gnomes , Tim Gardner , Pierre Fersing , Nagalakshmi Nandigama , Praveen Krishnamoorthy , Sreekanth Reddy , Abhijit Mahajan Return-path: In-Reply-To: <20140905221029.GA35667@core.coreip.homeip.net> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org > diff --git a/drivers/base/bus.c b/drivers/base/bus.c > index 83e910a..49fe573 100644 > --- a/drivers/base/bus.c > +++ b/drivers/base/bus.c > @@ -10,6 +10,7 @@ > * > */ > > +#include > #include > #include > #include > @@ -547,15 +548,12 @@ void bus_probe_device(struct device *dev) > { > struct bus_type *bus = dev->bus; > struct subsys_interface *sif; > - int ret; > > if (!bus) > return; > > - if (bus->p->drivers_autoprobe) { > - ret = device_attach(dev); > - WARN_ON(ret < 0); > - } > + if (bus->p->drivers_autoprobe) > + device_initial_probe(dev); > > mutex_lock(&bus->p->mutex); > list_for_each_entry(sif, &bus->p->interfaces, node) > @@ -657,6 +655,17 @@ static ssize_t uevent_store(struct device_driver *drv, const char *buf, > } > static DRIVER_ATTR_WO(uevent); Based on my review with my latest changes this is what I was missing, I'll be sure to address this. Luis