Hi
I'm using PSP 04.06.00.07 with new power-management features. I've rebuilt the kernel (using am335x default configuration) with just a minor change: the two musb controller are configured as host and peripheral instead of host and otg, thus modifying board-am335xevm.c as:
.mode = (MUSB_HOST << 4) | MUSB_PERIPHERAL,
In the EVM, when the USB peripheral port is plugged in and I execute an rmmod command of loaded USB gadget module (any of them: g_mass_storage, g_ether, g_file_storage) I get a kernel error for "Unable to handle kernel NULL pointer dereference at virtual address 0000000c". I've attached the whole error log.
Everything works fine if cable is unplugged when rmmod is executed, or if musb controllers are configured as HOST+OTG. But I need to set them as HOST+PERIP for my custom board, and the issue affects also that board so I do not think it depends on hw.
Regards,
Max