public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Hema HK <hemahk@ti.com>
To: linux-usb@vger.kernel.org
Cc: linux-omap@vger.kernel.org, Hema HK <hemahk@ti.com>,
	Felipe Balbi <balbi@ti.com>
Subject: [PATCH 1/5 v2] usb: otg: TWL4030: Update the last_event variable.
Date: Fri, 25 Feb 2011 18:54:02 +0530	[thread overview]
Message-ID: <1298640246-21181-2-git-send-email-hemahk@ti.com> (raw)
In-Reply-To: <1298640246-21181-1-git-send-email-hemahk@ti.com>

Update the last_event variable of otg_transceiver. This will be used in
the musb driver and gadget driver for runtime idling the device.

Signed-off-by: Hema HK <hemahk@ti.com>
Cc: Felipe Balbi <balbi@ti.com>
---
 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 2362d83..e01b073 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...
 	 */
-- 
1.7.0.4


  reply	other threads:[~2011-02-25 13:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-25 13:24 [PATCH 0/5 v2] usb: musb: Power management support Hema HK
2011-02-25 13:24 ` Hema HK [this message]
     [not found] ` <1298640246-21181-1-git-send-email-hemahk-l0cyMroinI0@public.gmane.org>
2011-02-25 13:24   ` [PATCH 2/5 v2] usb: musb: Remove platform context save/restore API Hema HK
2011-02-25 13:24   ` [PATCH 3/5 v2] usb: musb: Idle path retention and offmode support for OMAP3 Hema HK
     [not found]     ` <1298640246-21181-4-git-send-email-hemahk-l0cyMroinI0@public.gmane.org>
2011-02-25 13:34       ` Felipe Balbi
2011-02-25 13:24 ` [PATCH 4/5 v2] usb: musb: OMAP4430: Power down the PHY during board init Hema HK
2011-02-25 13:24 ` [PATCH 5/5 v2] usb: musb: OMAP4430: Save/restore the context Hema HK
2011-02-25 13:32   ` Felipe Balbi
2011-02-25 13:39     ` Hema Kalliguddi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1298640246-21181-2-git-send-email-hemahk@ti.com \
    --to=hemahk@ti.com \
    --cc=balbi@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox