diff options
author | Hema HK <hemahk@ti.com> | 2011-02-28 14:19:32 +0530 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-03-01 11:35:27 +0200 |
commit | 37db3af11f02c2ccdf44a788694da16062a0333c (patch) | |
tree | cbea9ecba330fa6858177f2752a173991b60690a | |
parent | 7acc6197b76edd0b932a7cbcc6cfad0a8a87f026 (diff) | |
download | linux-37db3af11f02c2ccdf44a788694da16062a0333c.tar.gz linux-37db3af11f02c2ccdf44a788694da16062a0333c.tar.bz2 linux-37db3af11f02c2ccdf44a788694da16062a0333c.zip |
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 <hemahk@ti.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/otg/twl4030-usb.c | 2 |
1 files changed, 2 insertions, 0 deletions
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... */ |