From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755391AbcIFXOG (ORCPT ); Tue, 6 Sep 2016 19:14:06 -0400 Received: from mx2.suse.de ([195.135.220.15]:43463 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754429AbcIFXOE (ORCPT ); Tue, 6 Sep 2016 19:14:04 -0400 Date: Wed, 7 Sep 2016 01:14:00 +0200 From: "Luis R. Rodriguez" To: Bjorn Andersson Cc: "Luis R. Rodriguez" , Dmitry Torokhov , Linus Torvalds , "open list:DOCUMENTATION" , Jacek Anaszewski , David Woodhouse , Christian Lamparter , Julia Lawall , Andrew Morton , linuxppc-dev , Mimi Zohar , Andy Lutomirski , Richard Purdie , Wu Fengguang , Johannes Berg , Michal Marek , Hauke Mehrtens , Mark Brown , Jiri Slaby , Ming Lei , Daniel Vetter , Kevin Cernekee , Jeff Mahoney , Greg KH , Jonathan Corbet , Felix Fietkau , David Howells , Vikram Mulukutla , Alessandro Rubini , Tom Gundersen , Kees Cook , Takashi Iwai , Gilles.Muller@lip6.fr, linux-serial , Roman Pen , Kay Sievers , Stephen Boyd , nicolas.palix@imag.fr, "Abhay_Salunke@dell.com" , Linux Kernel Mailing List , Thierry Martinez , Josh Boyer Subject: Re: [RFC] fs: add userspace critical mounts event support Message-ID: <20160906231400.GU3296@wotan.suse.de> References: <20160902235916.GO3296@wotan.suse.de> <20160903002014.GP3296@wotan.suse.de> <20160903174939.GB32345@dtor-ws> <20160906215204.GR3296@wotan.suse.de> <20160906222847.GF15161@tuxbot> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160906222847.GF15161@tuxbot> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 06, 2016 at 03:28:47PM -0700, Bjorn Andersson wrote: > On Tue 06 Sep 14:52 PDT 2016, Luis R. Rodriguez wrote: > > > We already have MODULE_FIRMWARE(), we could have MODULE_FIRMWARE_REQ() or > > something like it to help annotate the the driver was only functional with the > > firmware, punt things to kmod to deal with the requirements. > > That implies that a single driver will only use a single version of the > firmware. Today firmware requests are done manually by the driver, in the future it should be possible to specify just an array of firmwares and on that list specify which firmware is optional, and perhaps if you need at last one. Then you treat optional firmware upgrades as optional -- and only treat fatal conditions as such. Today drivers manage all this on their own. This is something we can later do as we have the flexible firmware API in place, but for now -- you are right. There is no clear way to extract the semantics of what firmware requirements really are in an easy way. > There are cases where we want a single driver to load firmware > depending on e.g. hardware revisions, Dynamic firmware names -- indeed. Good point. > or previous firmware version and > there are cases where we want to load firmware based on requested > use-cases. True. Luis