lkml.org 
[lkml]   [2017]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v4 4/5] firmware: enable a debug print for batched requests
    Date
    Otherwise there is no easy way this actually happened.

    Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
    ---
    drivers/base/firmware_class.c | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c
    index ba272a65291d..a5fb884a136d 100644
    --- a/drivers/base/firmware_class.c
    +++ b/drivers/base/firmware_class.c
    @@ -333,6 +333,7 @@ static struct firmware_buf *__fw_lookup_buf(const char *fw_name)
    return NULL;
    }

    +/* Returns 1 for batching firmware requests with the same name */
    static int fw_lookup_and_allocate_buf(const char *fw_name,
    struct firmware_cache *fwc,
    struct firmware_buf **buf, void *dbuf,
    @@ -346,6 +347,7 @@ static int fw_lookup_and_allocate_buf(const char *fw_name,
    kref_get(&tmp->ref);
    spin_unlock(&fwc->lock);
    *buf = tmp;
    + pr_debug("batched request - sharing the same struct firmware_buf and lookup for multiple requests\n");
    return 1;
    }
    tmp = __allocate_fw_buf(fw_name, fwc, dbuf, size);
    --
    2.11.0
    \
     
     \ /
      Last update: 2017-07-20 23:25    [W:5.632 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site