summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2023-05-09 13:36:19 +0200
committerKhem Raj <raj.khem@gmail.com>2023-05-09 17:27:50 -0700
commite111f75c315a4db16349fb8c50c40a68c2bdda8b (patch)
tree13b1eaa7728dbf9483c28383b5875298544895c8
parentf4fd47792339b0596388f92333b0810c349ed925 (diff)
downloadmeta-openembedded-e111f75c315a4db16349fb8c50c40a68c2bdda8b.tar.gz
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> Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/libusbgx/libusbgx/usbgx.service2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/libusbgx/libusbgx/usbgx.service b/meta-oe/recipes-support/libusbgx/libusbgx/usbgx.service
index 74541d3c2d..e2aa95a521 100644
--- a/meta-oe/recipes-support/libusbgx/libusbgx/usbgx.service
+++ b/meta-oe/recipes-support/libusbgx/libusbgx/usbgx.service
@@ -6,4 +6,4 @@ Type=oneshot
6ExecStart=/usr/bin/gadget-start 6ExecStart=/usr/bin/gadget-start
7 7
8[Install] 8[Install]
9WantedBy=multi-user.target 9WantedBy=usb-gadget.target