Commit 30172bea authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by Greg Kroah-Hartman

firmware: enable a debug print for batched requests

Otherwise there is no easy way this actually happened.
Signed-off-by: default avatarLuis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 73da4b4b
...@@ -337,6 +337,7 @@ static struct firmware_buf *__fw_lookup_buf(const char *fw_name) ...@@ -337,6 +337,7 @@ static struct firmware_buf *__fw_lookup_buf(const char *fw_name)
return NULL; return NULL;
} }
/* Returns 1 for batching firmware requests with the same name */
static int fw_lookup_and_allocate_buf(const char *fw_name, static int fw_lookup_and_allocate_buf(const char *fw_name,
struct firmware_cache *fwc, struct firmware_cache *fwc,
struct firmware_buf **buf, void *dbuf, struct firmware_buf **buf, void *dbuf,
...@@ -350,6 +351,7 @@ static int fw_lookup_and_allocate_buf(const char *fw_name, ...@@ -350,6 +351,7 @@ static int fw_lookup_and_allocate_buf(const char *fw_name,
kref_get(&tmp->ref); kref_get(&tmp->ref);
spin_unlock(&fwc->lock); spin_unlock(&fwc->lock);
*buf = tmp; *buf = tmp;
pr_debug("batched request - sharing the same struct firmware_buf and lookup for multiple requests\n");
return 1; return 1;
} }
tmp = __allocate_fw_buf(fw_name, fwc, dbuf, size); tmp = __allocate_fw_buf(fw_name, fwc, dbuf, size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment