summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2022-05-10 11:51:29 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-05-11 18:59:25 +0200
commitf9d76d15072caf1ec5558fa7cc6d93c7b9d33488 (patch)
treeed7dfff99994add27e32f3b32c4b49bac3271d89 /tools/perf/scripts/python/export-to-postgresql.py
parenta2673d570bd648851e00ac531bdf695f4ebb4f78 (diff)
USB: gadget: Add ID numbers to gadget names
Putting USB gadgets on a new bus of their own encounters a problem when multiple gadgets are present: They all have the same name! The driver core fails with a "sys: cannot create duplicate filename" error when creating any of the /sys/bus/gadget/devices/<gadget-name> symbolic links after the first. This patch fixes the problem by adding a ".N" suffix to each gadget's name when the gadget is registered (where N is a unique ID number), thus making the names distinct. Reported-and-tested-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Fixes: fc274c1e9973 ("USB: gadget: Add a new bus for gadgets") Link: https://lore.kernel.org/r/YnqKAXKyp9Vq/pbn@rowland.harvard.edu Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions