On Wed, Sep 22, 2010 at 06:14:10AM -0500, Maulik Mankad wrote:
I think you misunderstood my comment above. Its because we get two RESET irqs and the code snippet above. On the first Reset irq musb->g.speed is set to 3 (USB_SPEED_HIGH) which is right. On the second irq as per the above code g.speed is not USB_SPEED_UNKNOWN since it is set to 3 by the first Reset irq and hence it calls musb_g_disconnect(). Hope this clears why we see that 0mA notification.
see that musb_g_disconnect() is called when speed is different than UNKNOWN, so having a speed set to whatever value other than unknown will make a disconnect happen. -- balbi -- 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