From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753388Ab2ACN2n (ORCPT ); Tue, 3 Jan 2012 08:28:43 -0500 Received: from smtp-out003.kontent.com ([81.88.40.217]:36505 "EHLO smtp-out003.kontent.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752668Ab2ACN2l (ORCPT ); Tue, 3 Jan 2012 08:28:41 -0500 From: Oliver Neukum To: Alan Cox Subject: Re: loading firmware while usermodehelper disabled. Date: Tue, 3 Jan 2012 14:30:25 +0100 User-Agent: KMail/1.13.5 (Linux/3.2.0-rc4-12-desktop+; KDE/4.4.4; x86_64; ; ) Cc: Jack Stone , Matthew Garrett , Linus Torvalds , Alan Stern , Dave Jones , Linux Kernel , Larry Finger , Chaoming Li , "John W. Linville" , "Greg Kroah-Hartman" , USB list , Linux Wireless List References: <4F02F244.6040902@fastmail.fm> <20120103132053.44ade1e3@pyramind.ukuu.org.uk> In-Reply-To: <20120103132053.44ade1e3@pyramind.ukuu.org.uk> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201201031430.26064.oliver@neukum.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Dienstag, 3. Januar 2012, 14:20:53 schrieb Alan Cox: > > That said, I guess there are more complicated / difficult pieces of > > hardware that might not do that. Is that the case here? Can we detect > > that the firmware needs reloading and have the primary driver "yield" to > > the firmware driver? > > That doesn't really make any sense in the way USB works. > > However if you've got a system to load and pin firmware on suspend and > flush it post resume then you don't actually need special 'firmware' > drivers just a slightly fancier lib/firmware that refcounts and handles > load on suspend/delayed flush. How so? You still need to get the firmware to the device before you unfreeze user space to get a benefit from this. Having it in RAM is only half the deal. Regards Oliver