usb: otg: TWL4030: Update the last_event variable.
authorHema HK <hemahk@ti.com>
Mon, 28 Feb 2011 08:49:32 +0000 (14:19 +0530)
committerFelipe Balbi <balbi@ti.com>
Tue, 1 Mar 2011 09:35:27 +0000 (11:35 +0200)
Update the last_event variable of otg_transceiver. This will be used in
the musb platform glue driver for runtime idling the device.

Signed-off-by: Hema HK <hemahk@ti.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/otg/twl4030-usb.c

index 2362d83..e01b073 100644 (file)
@@ -275,6 +275,8 @@ static enum usb_xceiv_events twl4030_usb_linkstat(struct twl4030_usb *twl)
        dev_dbg(twl->dev, "HW_CONDITIONS 0x%02x/%d; link %d\n",
                        status, status, linkstat);
 
+       twl->otg.last_event = linkstat;
+
        /* REVISIT this assumes host and peripheral controllers
         * are registered, and that both are active...
         */