Dear Fabio, My main objective is to switch between HID, VCP, Mass storage mode. But as the g_hid.ko crashes i am not able to switch mode. I am using nxp kernel Linux cpu49-ub 4.4.0-31-generic #50~14.04.1-Ubuntu SMP Wed Jul 13 01:06:37 UTC 2016 i686 i686 i686 GNU/Linux Can you please check if it happens to you on your architecture and also check that the g_hid.c file i have attached is there anything wrong. one more question. can it be possible to combine serial and HID through libcomposit then how? Regards Prabhu On Mon, Sep 11, 2017 at 7:36 PM, Fabio Estevam <festevam@xxxxxxxxx> wrote: > On Mon, Sep 11, 2017 at 10:32 AM, PRABHU <prabhu.rout@xxxxxxxxxxxxxxxxxx> wrote: >> Dear all, >> I was trying to do a stress test on module insertion and removal. 1st time >> modprobe g_hid and rmmod g_hid works. second time when doing insmod g_hid >> crashes the core. >> >> crash trace >> ---------------- >> >> root@imx6ulevk:~# modprobe ci_hdrc ci_hdrc.0: Device No Response >> g_hid >> Unable to handle kernel paging request at virtual address 7f09b664 >> pgd = 88a78000 >> [7f09b664] *pgd=88576811, *pte=00000000, *ppte=00000000 >> Internal error: Oops: 807 [#1] PREEMPT SMP ARM >> Modules linked in: g_hid(+) usb_f_hid libcomposite configfs ci_hdrc_imx >> usbmisc_imx ci_hdrc evbug uio_pdrv_genirq uio [last unloaded: g_hid] >> CPU: 0 PID: 679 Comm: modprobe Not tainted 4.1.15-2.1.0+g30278ab #31 > > Looks like you are using a vendor kernel. > > Could you try this on a mainline 4.13.1 kernel instead? > -- > 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 -- 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