public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Victor Hugo <victor@vhugo.net>
Cc: linux-kernel@vger.kernel.org, Victor Castro <victorhugo83@yahoo.com>
Subject: Re: [PATCH][RFC] request_firmware examples and MODULE_FIRMWARE
Date: Tue, 05 Sep 2006 09:33:40 +0200	[thread overview]
Message-ID: <1157441620.24916.5.camel@localhost> (raw)
In-Reply-To: <CB81ECDC-0B48-4BE4-B9C0-C1CDBEC0F739@vhugo.net>

Hi Victor,

> Also, I'd like to comment on Jon Masters push to include the  
> MODULE_FIRMWARE api addition.  I strongly believe that policy should  
> not be included in driver code, in this case it's in the form of a  
> filename.
> 
> The firmware loader currently needs a filename passed to it so it can  
> then pass the $FIRMWARE environment variable to the hotplug script.   
> This is ok if you provide a generic filename like "firmware.bin" and  
> then let the hotplug script worry about version numbers, i.e.  
> "firmware-x.y.z.bin"
> 
> MODULE_FIRMWARE should be used to provide the generic filenames and  
> which order the files should be loaded (request_firmware can be  
> called various times), but I think its bad to have to change the  
> driver everytime a new firmware version is released.

actually it has never been really a filename. It was a simple pattern
that the initial hotplug script and later the udev script mapped 1:1 to
a filename on your filesystem. If you check the mailing list archives of
LKML and linux-hotplug you will see that I always resisted in allowing
drivers to include a directory path in that call. A couple of people
tried this and it is not what it was meant to be.

The MODULE_FIRMWARE approach simply makes this pattern visible via
modinfo, because otherwise you would have to scan the source code to
find this pattern. And to make it use you have to apply the same policy
the firmware script is applying when choosing the file. Currently this
is a 1:1 mapping.

Regards

Marcel



  parent reply	other threads:[~2006-09-05  7:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-04  2:55 [PATCH][RFC] request_firmware examples and MODULE_FIRMWARE Victor Hugo
2006-09-04 21:02 ` Andrew Morton
2006-09-04 21:16   ` Jon Masters
2006-09-05  7:33 ` Marcel Holtmann [this message]
2006-09-05 18:26   ` Victor Hugo
2006-09-05 19:16     ` Marcel Holtmann
2006-09-06 16:42     ` Jon Masters
2006-09-07 15:10       ` Marcel Holtmann
2006-09-07 15:01         ` Jon Masters
  -- strict thread matches above, loose matches on Subject: below --
2006-09-04  8:45 Victor Hugo
     [not found] <20060904083908.38953.qmail@web411.biz.mail.mud.yahoo.com>
2006-09-04 10:41 ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1157441620.24916.5.camel@localhost \
    --to=marcel@holtmann.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=victor@vhugo.net \
    --cc=victorhugo83@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox