Re: [REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only

2013-12-19 Thread Greg Kroah-Hartman
On Thu, Dec 19, 2013 at 11:08:55PM +, Stuart Yoder wrote: > > > How will it "know not to grab the device"? The knowledge of whether > > the > > > binding was explicitly requested or not does not get passed through to > > > the probe function. > > > > Nor should it, as a driver should not know

RE: [REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only

2013-12-19 Thread Stuart Yoder
777; christoffer.d...@linaro.org; > alex.william...@redhat.com; a.mota...@virtualopensystems.com; > ag...@suse.de; Sethi Varun-B16395 > Subject: Re: [REPOST][PATCH 1/2] driver core: Add new device_driver flag > to allow binding via sysfs only > > On Thu, Dec 19, 2013 at 04:15:03PM -0600

Re: [REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only

2013-12-19 Thread Greg Kroah-Hartman
65777; Yoder Stuart-B08248; christoffer.d...@linaro.org; > > > > alex.william...@redhat.com; a.mota...@virtualopensystems.com; > > > > ag...@suse.de; Sethi Varun-B16395 > > > > Subject: Re: [REPOST][PATCH 1/2] driver core: Add new device_driver flag > > > > to al

Re: [REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only

2013-12-19 Thread Scott Wood
tualopensystems.com; > > > ag...@suse.de; Sethi Varun-B16395 > > > Subject: Re: [REPOST][PATCH 1/2] driver core: Add new device_driver flag > > > to allow binding via sysfs only > > > > > > No. But you can use bind/unbind along with the existing new_id file

Re: [REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only

2013-12-19 Thread Greg Kroah-Hartman
s; linux-ker...@vger.kernel.org; kvm@vger.kernel.org; > > Bhushan Bharat-R65777; Yoder Stuart-B08248; christoffer.d...@linaro.org; > > alex.william...@redhat.com; a.mota...@virtualopensystems.com; > > ag...@suse.de; Sethi Varun-B16395 > > Subject: Re: [REPOST][PATCH 1/2] driver cor

RE: [REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only

2013-12-19 Thread Stuart Yoder
248; christoffer.d...@linaro.org; > alex.william...@redhat.com; a.mota...@virtualopensystems.com; > ag...@suse.de; Sethi Varun-B16395 > Subject: Re: [REPOST][PATCH 1/2] driver core: Add new device_driver flag > to allow binding via sysfs only > > On Thu, Dec 19, 2013 at 02:22:11PM -0600

Re: [REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only

2013-12-19 Thread Greg Kroah-Hartman
On Thu, Dec 19, 2013 at 02:22:11PM -0600, Scott Wood wrote: > On Wed, 2013-12-18 at 17:07 -0800, Greg Kroah-Hartman wrote: > > On Tue, Dec 03, 2013 at 12:34:46PM +, Kim Phillips wrote: > > > VFIO supports pass-through of devices to user space - for sake > > > of illustration, say a PCI e1000 de

Re: [REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only

2013-12-19 Thread Scott Wood
On Wed, 2013-12-18 at 17:07 -0800, Greg Kroah-Hartman wrote: > On Tue, Dec 03, 2013 at 12:34:46PM +, Kim Phillips wrote: > > VFIO supports pass-through of devices to user space - for sake > > of illustration, say a PCI e1000 device: > > > > - the e1000 is first unbound from the PCI e1000 drive

Re: [REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only

2013-12-18 Thread Greg Kroah-Hartman
On Tue, Dec 03, 2013 at 04:34:33PM +0100, Jan Kiszka wrote: > On 2013-12-03 13:34, Kim Phillips wrote: > > VFIO supports pass-through of devices to user space - for sake > > of illustration, say a PCI e1000 device: > > > > - the e1000 is first unbound from the PCI e1000 driver via sysfs > > - the

Re: [REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only

2013-12-18 Thread Greg Kroah-Hartman
On Tue, Dec 03, 2013 at 12:34:46PM +, Kim Phillips wrote: > VFIO supports pass-through of devices to user space - for sake > of illustration, say a PCI e1000 device: > > - the e1000 is first unbound from the PCI e1000 driver via sysfs > - the vfio-pci driver is told via new_id that it now hand

Re: [REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only

2013-12-09 Thread Scott Wood
On Mon, 2013-12-09 at 20:12 +0100, Jan Kiszka wrote: > On 2013-12-09 19:58, Kim Phillips wrote: > > On Thu, 5 Dec 2013 16:38:15 -0600 > > Scott Wood wrote: > > > >> What would combining them solve, other than making it more likely that > >> Greg complains about the wildcard because it would no lo

Re: [REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only

2013-12-09 Thread Jan Kiszka
On 2013-12-09 19:58, Kim Phillips wrote: > On Thu, 5 Dec 2013 16:38:15 -0600 > Scott Wood wrote: > >> On Thu, 2013-12-05 at 17:45 +, Kim Phillips wrote: >>> On Tue, 03 Dec 2013 16:34:33 +0100 >>> Jan Kiszka wrote: >>> On 2013-12-03 13:34, Kim Phillips wrote: > VFIO supports pass-thr

Re: [REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only

2013-12-09 Thread Kim Phillips
On Thu, 5 Dec 2013 16:38:15 -0600 Scott Wood wrote: > On Thu, 2013-12-05 at 17:45 +, Kim Phillips wrote: > > On Tue, 03 Dec 2013 16:34:33 +0100 > > Jan Kiszka wrote: > > > > > On 2013-12-03 13:34, Kim Phillips wrote: > > > > VFIO supports pass-through of devices to user space - for sake > >

Re: [REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only

2013-12-05 Thread Scott Wood
On Thu, 2013-12-05 at 17:45 +, Kim Phillips wrote: > On Tue, 03 Dec 2013 16:34:33 +0100 > Jan Kiszka wrote: > > > On 2013-12-03 13:34, Kim Phillips wrote: > > > VFIO supports pass-through of devices to user space - for sake > > > of illustration, say a PCI e1000 device: > > > > > > - the e10

Re: [REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only

2013-12-05 Thread Kim Phillips
On Tue, 03 Dec 2013 16:34:33 +0100 Jan Kiszka wrote: > On 2013-12-03 13:34, Kim Phillips wrote: > > VFIO supports pass-through of devices to user space - for sake > > of illustration, say a PCI e1000 device: > > > > - the e1000 is first unbound from the PCI e1000 driver via sysfs > > - the vfio-

Re: [REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only

2013-12-03 Thread Jan Kiszka
On 2013-12-03 13:34, Kim Phillips wrote: > VFIO supports pass-through of devices to user space - for sake > of illustration, say a PCI e1000 device: > > - the e1000 is first unbound from the PCI e1000 driver via sysfs > - the vfio-pci driver is told via new_id that it now handles e1000 devices > -

[REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only

2013-12-03 Thread Kim Phillips
VFIO supports pass-through of devices to user space - for sake of illustration, say a PCI e1000 device: - the e1000 is first unbound from the PCI e1000 driver via sysfs - the vfio-pci driver is told via new_id that it now handles e1000 devices - the e1000 is explicitly bound to vfio-pci through sy