To recap my previous comments re get_last_event() ... the idea is bad, don't try that. Better to just update the otg_transceiver state. That way you'll be working with a real Stocate Machine, which can match up to the OTG specs and thus be more debuggable, and easier to make conformant. AND you won't be writing nasty "if I came this way do like that" code, which is actually far worse than spaghetti code. -- 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