Skip to content

Commit 30172be

Browse files
mcgrofgregkh
authored andcommitted
firmware: enable a debug print for batched requests
Otherwise there is no easy way this actually happened. Signed-off-by: Luis R. Rodriguez <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 73da4b4 commit 30172be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/base/firmware_class.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ static struct firmware_buf *__fw_lookup_buf(const char *fw_name)
337337
return NULL;
338338
}
339339

340+
/* Returns 1 for batching firmware requests with the same name */
340341
static int fw_lookup_and_allocate_buf(const char *fw_name,
341342
struct firmware_cache *fwc,
342343
struct firmware_buf **buf, void *dbuf,
@@ -350,6 +351,7 @@ static int fw_lookup_and_allocate_buf(const char *fw_name,
350351
kref_get(&tmp->ref);
351352
spin_unlock(&fwc->lock);
352353
*buf = tmp;
354+
pr_debug("batched request - sharing the same struct firmware_buf and lookup for multiple requests\n");
353355
return 1;
354356
}
355357
tmp = __allocate_fw_buf(fw_name, fwc, dbuf, size);

0 commit comments

Comments
 (0)