lkml.org 
[lkml]   [2008]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH 2/3] firmware: Add CONFIG_BUILTIN_FIRMWARE option
    Date
    Hi David,

    >>>> Playing with it now. I fixed the mkdir thing by including $
    >>>> (objtree)
    >>>> in the target.
    >>>
    >>> Here's what I have (on top of the git tree) now. I just need to sort
    >>> out
    >>> the clean/mrproper behaviour -- and possibly should rename the korg
    >>> firmware to firmware/korg/k1212.c_shipped?
    >>
    >> so using "/" within the name parameter for request_firmware() is
    >> actually forbidden. I know that some driver authers think it is a
    >> good
    >> idea, but it is not.
    >>
    >> I am actually working on a patch to make request_firmware() fail/warn
    >> when the name has a "/" in it.
    >>
    >> You don't need to consider any deep nesting of firmware file names.
    >> It
    >> was never meant to be used like this.
    >
    > Hm. Is there any fundamental reason why we should forbid this? It does
    > seem to make sense to let people use the namespace for it.

    I explained this a couple of times. The request_firmware() is an
    abstract mechanism that can request a firmware file. The location of
    the firmware file is up to the userspace. The kernel requests a
    particular file and that is it. All namespacing has to be done by the
    firmware helper script (nowadays udev). That the current
    implementation of the firmware helper maps the filename 1:1 to a file
    under /lib/firmware/ just works, but doesn't have to work all the
    time. It is not the agreed contract between kernel and userspace.

    If you wanna do namespacing then you have to do it within the firmware
    helper script. For example the helper script could look for /lib/
    firmware/<driver>/<filename> instead of /lib/firmware/<filename>.

    Regards

    Marcel



    \
     
     \ /
      Last update: 2008-05-24 21:35    [W:9.096 / U:0.132 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site