Return-path: Received: from cavan.codon.org.uk ([93.93.128.6]:60228 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753468Ab2ACAOJ (ORCPT ); Mon, 2 Jan 2012 19:14:09 -0500 Date: Tue, 3 Jan 2012 00:13:56 +0000 From: Matthew Garrett To: Jack Stone Cc: Linus Torvalds , Alan Stern , Oliver Neukum , Dave Jones , Linux Kernel , Larry Finger , Chaoming Li , "John W. Linville" , Greg Kroah-Hartman , USB list , Linux Wireless List Subject: Re: loading firmware while usermodehelper disabled. Message-ID: <20120103001356.GA17183@srcf.ucam.org> (sfid-20120103_011450_244438_4CE25078) References: <20120102211904.GA15316@srcf.ucam.org> <20120102215028.GA15701@srcf.ucam.org> <20120102221235.GA16012@srcf.ucam.org> <20120102222920.GA16160@srcf.ucam.org> <20120102230037.GA16458@srcf.ucam.org> <4F023E6B.2020307@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <4F023E6B.2020307@fastmail.fm> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Mon, Jan 02, 2012 at 11:31:55PM +0000, Jack Stone wrote: > Rather than merging the drivers we could make the uvcvideo (or any other > generic driver) driver expose a "subdriver" interface that allows > another module to bind to the specific ID and add extra handling to > certain events. We could then use that interface to provide a firmware > driver for each device that needs it. The firmware driver could bind to > the bootstrap device and to the uvcvideo subdriver interface and it > would then have all the lifetime info we need. [Credit to Linus for > suggesting this idea] No, the uvcvideo driver would need to call out to load the firmware loader driver, otherwise you'll never know to load the firmware loader driver. -- Matthew Garrett | mjg59@srcf.ucam.org