Openmoko Bug #2232: unplugging with gadgetfs causes panic: "softlockup: blocked tasks"

Openmoko Public Trac bugs at docs.openmoko.org
Mon Feb 23 21:27:43 CET 2009


#2232: unplugging with gadgetfs causes panic: "softlockup: blocked tasks"
-----------------------------+----------------------------------------------
 Reporter:  lindi            |          Owner:  openmoko-kernel
     Type:  defect           |         Status:  in_testing     
 Priority:  normal           |      Milestone:                 
Component:  System Software  |        Version:  unspecified    
 Severity:  normal           |       Keywords:                 
 Haspatch:  0                |      Blockedby:                 
Estimated:                   |    Patchreview:                 
 Blocking:                   |   Reproducible:                 
-----------------------------+----------------------------------------------

Comment(by frankmpunkt):

 I have a working example for an USB Gadget using GadgetFS on Openmoko.
 Unfortunately it's not yet ready to be published. Did you check out the
 patch from here https://docs.openmoko.org/trac/ticket/2206 ? It's the only
 needed modification to the kernel source. I have modified the
 configuration in usb.c for s3c2410_udc the following:
 {{{
         /* Samsung S3C24xx series, full speed only */
         if (stat (DEVNAME = "s3c2410_udc", &statb) == 0) {
                 HIGHSPEED = 0;
                 device_desc.bcdDevice = __constant_cpu_to_le16 (0x0104),

                 fs_source_desc.bEndpointAddress = USB_DIR_IN | 2;
                 EP_IN_NAME = "ep2-bulk";
                 fs_sink_desc.bEndpointAddress = USB_DIR_OUT | 1;
                 EP_OUT_NAME = "ep1-bulk";

                 source_sink_intf.bNumEndpoints = 3;
                 fs_status_desc.bEndpointAddress = USB_DIR_IN | 3;
                 EP_STATUS_NAME = "ep3-bulk";
         }
 }}}
 This works, although i am not quite sure if device_desc.bcdDevice is
 correctly set. Hope this helps.

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/2232#comment:10>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the buglog mailing list