andy_purcell@xxxxxxxxxxxx wrote: >>> >>> I have a second issue with a functionfs USB-device implementation. >>> >>> The scenario is this: >>> 1) USB-device app starts up, runs fine >>> 2) ssh to the device, kill the app with CTRL-C >>> 3) try to start the USB-device app 2nd time >>> >>> PANIC >>> >>> dmesg output: >>> [ 2553.870000] ------------[ cut here ]------------ [ 2553.870000] >>> kernel BUG at /var/lib/jenkins/workspace/Complete_PXYZ/.../kernel- >>> source/fs/sysfs/file.c:332! >>> >>> [ 2553.870000] Internal error: Oops - BUG: 0 [#1] PREEMPT ARM [ >>> 2553.870000] Modules linked in: designware_udc usb_f_fs libcomposite >>> udc_core fuse configfs autofs4 >> >> what is this designware_udc? We don't have that in mainline > > It is a driver for a very old ST Micro processor. > I now believe it is the cause of the problem. > The same user-space code for starting and stopping our USB function works > on another platform. > So now I must look at the source code for this old ST Micro processor and > compare it to our other platform. Most likely that is the old Synopsys UDC gadget controller, which is supported by drivers/usb/gadget/udc/snps_udc_core.c. I suggest you take a look at that, perhaps you can use that code and get rid of your out-of-tree driver altogether. -- Paul -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html