From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753527Ab2ACAOM (ORCPT ); Mon, 2 Jan 2012 19:14:12 -0500 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> 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 Content-Disposition: inline In-Reply-To: <4F023E6B.2020307@fastmail.fm> User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: mjg59@cavan.codon.org.uk X-SA-Exim-Scanned: No (on cavan.codon.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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