Return-path: Received: from cavan.codon.org.uk ([93.93.128.6]:53876 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753467Ab2ABW32 (ORCPT ); Mon, 2 Jan 2012 17:29:28 -0500 Date: Mon, 2 Jan 2012 22:29:20 +0000 From: Matthew Garrett To: Linus Torvalds Cc: Jack Stone , 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: <20120102222920.GA16160@srcf.ucam.org> (sfid-20120102_232948_233898_932D19E9) References: <4F02165C.1060400@fastmail.fm> <20120102211904.GA15316@srcf.ucam.org> <20120102215028.GA15701@srcf.ucam.org> <20120102221235.GA16012@srcf.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-wireless-owner@vger.kernel.org List-ID: On Mon, Jan 02, 2012 at 02:19:37PM -0800, Linus Torvalds wrote: > On Mon, Jan 2, 2012 at 2:12 PM, Matthew Garrett wrote: > > > > The kernel that loaded the firmware to make the device work is not > > required to be the same kernel that we're running when we suspend. > > Why do you make up all these idiotic theoretical cases that nobody > cares about and has no relevance what-so-ever for the 99%? Rebooting is a theoretical case? > And if you *can* load the firmware in the new kernel, just do it > before the suspend event. Problem solved. How do we know to do that? The device appears to be a UVC device at suspend. It's only at resume that we discover that it's actually a programmable device. > And once more: your made-up scenario has *nothing* what-so-ever to do > with the actual warnings that started this whole thread. The warnings that started the thread are associated with a driver that I wrote. I'm explaining to you that your suggestion doesn't work for a real-world scenario involving that driver. If the firmware has been loaded and then the user reboots, the new kernel has no indication that it needs to load the firmware. There are various ways of handling this, but it's simply untrue that we'll always load the firmware at kernel init time. -- Matthew Garrett | mjg59@srcf.ucam.org