From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from casper.infradead.org ([85.118.1.10]:33268 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757438Ab1FJPH3 (ORCPT ); Fri, 10 Jun 2011 11:07:29 -0400 Message-ID: <4DF23322.1020503@infradead.org> Date: Fri, 10 Jun 2011 12:07:14 -0300 From: Mauro Carvalho Chehab MIME-Version: 1.0 To: Alan Stern CC: Hans de Goede , linux-usb@vger.kernel.org, Sarah Sharp , linux-media@vger.kernel.org, libusb-devel@lists.sourceforge.net, Alexander Graf , Gerd Hoffmann , hector@marcansoft.com, Jan Kiszka , Stefan Hajnoczi , pbonzini@redhat.com, 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 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-ID: Sender: 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? Cheers, Mauro.