From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from iolanthe.rowland.org ([192.131.102.54]:48934 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1757625Ab1FJPV7 (ORCPT ); Fri, 10 Jun 2011 11:21:59 -0400 Date: Fri, 10 Jun 2011 11:21:59 -0400 (EDT) From: Alan Stern To: Mauro Carvalho Chehab cc: Hans de Goede , , Sarah Sharp , , , Alexander Graf , Gerd Hoffmann , , Jan Kiszka , Stefan Hajnoczi , , Anthony Liguori , Jes Sorensen , Oliver Neukum , Greg KH , Felipe Balbi , Clemens Ladisch , Jaroslav Kysela , Takashi Iwai , Laurent Pinchart Subject: Re: Improving kernel -> userspace (usbfs) usb device hand off In-Reply-To: <4DF23322.1020503@infradead.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII List-ID: Sender: On Fri, 10 Jun 2011, Mauro Carvalho Chehab wrote: > Em 10-06-2011 11:48, Alan Stern escreveu: > > On Fri, 10 Jun 2011, Hans de Goede wrote: > > > > > > As Felipe has mentioned, this sounds like the sort of problem that > > can better be solved in userspace. A dual-mode device like the one > > you describe really is either a still-cam or a webcam, never both at > > the same time. Hence what users need is a utility program to switch > > modes (by loading/unloading the appropriate programs or drivers). > > Unloading a driver in order to access the hardware via userspace? > This sounds a very bad idea do me. What happens if another hardware > is using the same driver? A kernel driver wouldn't have to be unloaded. It could simply be unbound from the device via sysfs or usbfs. Alan STern