Skip to contentSkip to conversation

remove usbgadget from routerstationpro

PATCH Superseded Zumeng Chen 2 participants 5 messages Dec 14, 2011 – Dec 15, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove usbgadget from routerstationpro

1. No mass storage needed to be accessed by usbgadget.
2. This is a router station & switch, so it should not be taken as a USB_NET device too.

Signed-off-by [email protected]>
---
 meta-yocto/conf/machine/routerstationpro.conf |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta-yocto/conf/machine/routerstationpro.conf +1 -1
index 9338ca1..52124d9 100644
@@ -5,7 +5,7 @@
 require conf/machine/include/tune-mips32.inc
 
 MACHINE_FEATURES = "kernel26 screen keyboard pci usbhost ext2 ext3 \
-                    serial usbgadget"
+                    serial"
 
 KERNEL_IMAGETYPE = "vmlinux"
 KERNEL_ALT_IMAGETYPE = "vmlinux.bin"
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 3 lines · Zumeng Chen

1. No mass storage needed to be accessed by usbgadget.
2. This is a router station& switch, so it should not be taken as a USB_NET device too.

Zumeng,

The comment from the bug reporter was also that the target doesn't have USB slave hardware to support usbgadget. So mentioning that in the header is probably a good idea as well.

And small comment indicating that as a result of these conditions, we remove usbgadget from MACHINE_FEATURES, since it can't be used. Would complete the header.

Cheers,

Bruce

Quoted 19 lines
Signed-off-by [email protected]>
---
  meta-yocto/conf/machine/routerstationpro.conf |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
meta-yocto/conf/machine/routerstationpro.conf +1 -1
index 9338ca1..52124d9 100644
@@ -5,7 +5,7 @@
  require conf/machine/include/tune-mips32.inc
 
  MACHINE_FEATURES = "kernel26 screen keyboard pci usbhost ext2 ext3 \
-                    serial usbgadget"
+                    serial"
 
  KERNEL_IMAGETYPE = "vmlinux"
  KERNEL_ALT_IMAGETYPE = "vmlinux.bin"
#2 lore raw
Quoted 10 lines · Bruce Ashfield
Quoted 3 lines · Zumeng Chen

1. No mass storage needed to be accessed by usbgadget.
2. This is a router station& switch, so it should not be taken as a USB_NET device too.

Zumeng,

The comment from the bug reporter was also that the target doesn't have USB slave hardware to support usbgadget. So mentioning that in the header is probably a good idea as well.

OK, will add it, generally speaking MTD can be used as the slave, but obviously it's meaningless here. Soon V2

Regards,
Zumeng

Quoted 29 lines

And small comment indicating that as a result of these conditions, we remove usbgadget from MACHINE_FEATURES, since it can't be used. Would complete the header.

Cheers,

Bruce

Quoted 19 lines
Signed-off-by [email protected]>

---
meta-yocto/conf/machine/routerstationpro.conf | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
meta-yocto/conf/machine/routerstationpro.conf +0 -0
index 9338ca1..52124d9 100644
@@ -5,7 +5,7 @@

require conf/machine/include/tune-mips32.inc

MACHINE_FEATURES = "kernel26 screen keyboard pci usbhost ext2 ext3 \
- serial usbgadget"
+ serial"

KERNEL_IMAGETYPE = "vmlinux"
KERNEL_ALT_IMAGETYPE = "vmlinux.bin"

#3 lore raw

PATCH v2 1/1 remove usbgadget from routerstationpro

In reply to Bruce Ashfield

Since the target doesn't have the related requirement to use USB slave hardware supporting usb gadget, so remove it from MACHINE_FEATURES.

Signed-off-by [email protected]>
---
 meta-yocto/conf/machine/routerstationpro.conf |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta-yocto/conf/machine/routerstationpro.conf +1 -1
index 9338ca1..52124d9 100644
@@ -5,7 +5,7 @@
 require conf/machine/include/tune-mips32.inc
 
 MACHINE_FEATURES = "kernel26 screen keyboard pci usbhost ext2 ext3 \
-                    serial usbgadget"
+                    serial"
 
 KERNEL_IMAGETYPE = "vmlinux"
 KERNEL_ALT_IMAGETYPE = "vmlinux.bin"
Signature · 1 line
1.7.5.4
Acked-by on v2 1/1
#4 lore raw
Quoted 3 lines · Zumeng Chen

Since the target doesn't have the related requirement to use USB slave hardware supporting usb gadget, so remove it from MACHINE_FEATURES.

Indention went a bit out of whack there, but the wording is what we want.

Quoted 19 lines
Signed-off-by [email protected]>
---
  meta-yocto/conf/machine/routerstationpro.conf |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
meta-yocto/conf/machine/routerstationpro.conf +1 -1
index 9338ca1..52124d9 100644
@@ -5,7 +5,7 @@
  require conf/machine/include/tune-mips32.inc
 
  MACHINE_FEATURES = "kernel26 screen keyboard pci usbhost ext2 ext3 \
-                    serial usbgadget"
+                    serial"
 
  KERNEL_IMAGETYPE = "vmlinux"
  KERNEL_ALT_IMAGETYPE = "vmlinux.bin"