On Tue, 2012-04-17 at 12:42 +0200, Jan Lübbe wrote: > Here rxstate is called from musb_g_rx with an req parameter of > 0xffffffcc. After some more debugging, it seems that musb_ep->req_list in musb_g_rx() is NULL, which causes next_request(musb_ep) to return 0xffffffcc (-52). By applying the patch below, i was able to work around the panic. Host mode still works fine... diff --git a/drivers/usb/musb/musb_core.h b/drivers/usb/musb/musb_core.h index 93de517..129116d 100644 --- a/drivers/usb/musb/musb_core.h +++ b/drivers/usb/musb/musb_core.h @@ -96,7 +96,7 @@ struct musb_ep; /****************************** PERIPHERAL ROLE *****************************/ -#define is_peripheral_capable() (1) +#define is_peripheral_capable() (0) extern irqreturn_t musb_g_ep0_irq(struct musb *); extern void musb_g_tx(struct musb *, u8); I'm still no sure why I get an peripheral interrupt at all, though... Regards, Jan -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- 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