Patchwork usb-gadget-mode: add support for multi gadget

login
register
mail settings
Submitter Howard D. Gray
Date July 13, 2011, 5:21 p.m.
Message ID <4E1DD437.90700@matrix-vision.de>
Download mbox | patch
Permalink /patch/7549/
State New, archived
Headers show

Comments

Howard D. Gray - July 13, 2011, 5:21 p.m.
This adds support for using the multi gadget ("g_multi" kernel module)
as the default USB gadget mode.




Signed-off-by: Howard D. Gray <howard.gray@matrix-vision.de>
---
 recipes/usb-gadget-mode/files/usb-gadget   |    1 +
 recipes/usb-gadget-mode/usb-gadget-mode.bb |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/recipes/usb-gadget-mode/files/usb-gadget
b/recipes/usb-gadget-mode/files/usb-gadget
index 8da88ad..aa9c615 100755
--- a/recipes/usb-gadget-mode/files/usb-gadget
+++ b/recipes/usb-gadget-mode/files/usb-gadget
@@ -31,6 +31,7 @@  go() {
 	composite)	setup_usb g_cdc ;;
 	serial)		setup_usb g_serial ;;
 	storage)	setup_usb g_file_storage ;;
+	multi)		setup_usb g_multi ;;
 	hostmode)	unload_usb_gadgets
 			setup_usb ohci_hcd ;;
 	none)		unload_usb_gadgets ;;
diff --git a/recipes/usb-gadget-mode/usb-gadget-mode.bb
b/recipes/usb-gadget-mode/usb-gadget-mode.bb
index aa0f76e..a32c155 100644
--- a/recipes/usb-gadget-mode/usb-gadget-mode.bb
+++ b/recipes/usb-gadget-mode/usb-gadget-mode.bb
@@ -9,7 +9,7 @@  DESCRIPTION = "Manage the default USB gadget mode"
 SECTION = "console/network"
 LICENSE = "GPL"
 PV = "0.0.2"
-PR = "r8"
+PR = "r9"

 SRC_URI = "\
   file://usb-gadget.conf \