Had some progresses:

on kernel 3.17, musb controller driver is set to start as OTG mode as default. So as first thing, since my board has ID pin shorted to ground, i changed the default mode to MUSB_HOST., as it was on kernel 3.5.1

So with same settings of 3.5.1 now key is detected correctly at first insertion, but after a removal, the stick is not detected anymore.

Issue seems visible in drivers/usb/musb/da8xx.c, inside irqreturn_t da8xx_musb_interrupt() routine.

looking the /sys fs, i see that the mode moves in time order as:

|boot:       vbus off  b_idle||
boot:       vbus off  a_wait_vrise||
insertion:  vbus off  a_host|
removal:    vbus off  b_idle

After last b_host, the state never moves back to a_wait_vrise.

After the removal, the interrupt call irqreturn_t da8xx_musb_interrupt() seems broken and seems never called anymore.

Regards.

||
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to