summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2022-03-05 01:31:02 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2022-03-05 01:37:20 +0100
commit4487e89561252487608e227d7077cb2b2d79f37c (patch)
tree0db3477e774713d8e6ec89a6caaa05438e4521c9
parent5ca2385d660408eb7bb86215fc57e1f42b21baea (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>
-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 c9ed582..7808f5f 100644
--- a/recipes-support/libusbgx/files/usbg.service
+++ b/recipes-support/libusbgx/files/usbg.service
@@ -14,4 +14,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