diff options
author | Joel Stanley <[email protected]> | 2022-10-17 16:00:06 +1030 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-10-22 12:38:43 +0200 |
commit | 48ed32482c4100069d0c0eebdc6b198c6ae5f71f (patch) | |
tree | 0defd00a35f607e2ad9c6d3d6bf05400843fcfa8 /tools/perf/util/trace-event-scripting.c | |
parent | b57b08e6f431348363adffa5b6643fe3ec9dc7fe (diff) |
usb: gadget: aspeed: Fix probe regression
Since commit fc274c1e9973 ("USB: gadget: Add a new bus for gadgets"),
the gadget devices are proper driver core devices, which caused each
device to request pinmux settings:
aspeed_vhub 1e6a0000.usb-vhub: Initialized virtual hub in USB2 mode
aspeed-g5-pinctrl 1e6e2080.pinctrl: pin A7 already requested by 1e6a0000.usb-vhub; cannot claim for gadget.0
aspeed-g5-pinctrl 1e6e2080.pinctrl: pin-232 (gadget.0) status -22
aspeed-g5-pinctrl 1e6e2080.pinctrl: could not request pin 232 (A7) from group USB2AD on device aspeed-g5-pinctrl
g_mass_storage gadget.0: Error applying setting, reverse things back
The vhub driver has already claimed the pins, so prevent the gadgets
from requesting them too by setting the magic of_node_reused flag. This
causes the driver core to skip the mux request.
Reported-by: Zev Weiss <[email protected]>
Reported-by: Jae Hyun Yoo <[email protected]>
Fixes: fc274c1e9973 ("USB: gadget: Add a new bus for gadgets")
Cc: [email protected]
Signed-off-by: Joel Stanley <[email protected]>
Tested-by: Zev Weiss <[email protected]>
Tested-by: Jae Hyun Yoo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions