From: Hema HK Date: Mon, 28 Feb 2011 08:49:32 +0000 (+0530) Subject: usb: otg: TWL4030: Update the last_event variable. X-Git-Tag: MMI-PSA29.97-13-9~20524^2~78 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=37db3af11f02c2ccdf44a788694da16062a0333c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git usb: otg: TWL4030: Update the last_event variable. 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 Cc: Felipe Balbi Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/otg/twl4030-usb.c b/drivers/usb/otg/twl4030-usb.c index 2362d8352bc8..e01b073cc489 100644 --- a/drivers/usb/otg/twl4030-usb.c +++ b/drivers/usb/otg/twl4030-usb.c @@ -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... */