On Fri, Feb 14, 2014 at 11:00:31PM +0000, Stuart Yoder wrote: > > > > -----Original Message----- > > From: Greg KH [mailto:[email protected]] > > Sent: Friday, February 14, 2014 4:27 PM > > To: Antonios Motakis > > Cc: [email protected]; [email protected]; > > [email protected]; [email protected]; > > [email protected]; [email protected]; Yoder Stuart- > > B08248; [email protected]; [email protected]; > > [email protected]; Bhushan Bharat-R65777; Wood Scott-B07421; > > [email protected]; [email protected]; Sethi Varun-B16395; > > [email protected]; Tejun Heo; Rafael J. Wysocki; Guenter Roeck; Toshi > > Kani; Joe Perches; Dmitry Kasatkin; Michal Hocko; Bjorn Helgaas > > Subject: Re: [RFC PATCH v4 01/10] driver core: export > > driver_probe_device() > > > > On Sat, Feb 08, 2014 at 06:29:31PM +0100, Antonios Motakis wrote: > > > From: Kim Phillips <[email protected]> > > > > > > Needed by drivers, such as the vfio platform driver [1], seeking to > > > bypass bind_store()'s driver_match_device(), and bind to any device > > > via a private sysfs bind file. > > > > > > [1] https://lkml.org/lkml/2013/12/11/522 > > > > > > note: the EXPORT_SYMBOL is needed because vfio-platform can be built > > > as a module. > > > > No code outside of drivers/base/ should be calling this function > > Why? driver_probe_device() allows a driver to explicitly bind > to a specific device. What is conceptually wrong with allowing > that?
Because that's not how a bus should work, and the fact that no other subsystem in the kernel does that might be a hint you are trying to do something a bit "wrong" here. greg k-h _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
