summaryrefslogtreecommitdiff
path: root/recipes-support/libusbgx
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2022-03-05 01:31:02 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2022-04-03 11:53:07 +0200
commit66605462196ef8235a367ff49315e32d97782438 (patch)
tree386f1a312c8b6f1d984d04e7fb08558750097413 /recipes-support/libusbgx
parent370b2ba3fcc3278cbd31b8bc16dfaf25819f72ae (diff)
libusbgx: fix device hot-plug use case
Upon hot-plugging device (resp. un-plugging host) dwc3_gadget_init() does nicely get executed. However, for an actual gadget to get started, it also requires the libusbgx dance as well. Instead of only doing this upon boot aka after multi-user.target (which is fine only if the device is already there at boot), execute it after usb-gadget.target. This ensures dwc3_gadget_start() gets executed also during hot-plugging. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (cherry picked from commit 4487e89561252487608e227d7077cb2b2d79f37c)
Diffstat (limited to 'recipes-support/libusbgx')
-rw-r--r--recipes-support/libusbgx/files/usbg.service2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-support/libusbgx/files/usbg.service b/recipes-support/libusbgx/files/usbg.service
index 7ad5adf..860587b 100644
--- a/recipes-support/libusbgx/files/usbg.service
+++ b/recipes-support/libusbgx/files/usbg.service
@@ -16,4 +16,4 @@ ExecStartPost=/bin/sh -c '/bin/echo `ls /sys/class/udc/` > \
/sys/kernel/config/usb_gadget/g1/UDC'
[Install]
-WantedBy=multi-user.target
+WantedBy=usb-gadget.target