From: Ajay Kumar Gupta <ajay.gupta@ti.com>
To: linux-usb@vger.kernel.org
Cc: linux-omap@vger.kernel.org, felipe.balbi@nokia.com,
amit.kucheria@verdurent.com, khilman@deeprootsystems.com,
Ajay Kumar Gupta <ajay.gupta@ti.com>
Subject: [PATCH 3/3] musb: use neednop flag for nop registration
Date: Thu, 27 May 2010 12:34:48 +0530 [thread overview]
Message-ID: <1274943888-17615-3-git-send-email-ajay.gupta@ti.com> (raw)
In-Reply-To: <1274943888-17615-2-git-send-email-ajay.gupta@ti.com>
Some of the boards based on OMAP3 (like OMAP3EVM) and all the
board on OMAP4 uses nop transceiver so register and unregister
it based on '.neednop' flag passed from board files.
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
---
drivers/usb/musb/omap2430.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c
index 50591e7..2ec1bc4 100644
--- a/drivers/usb/musb/omap2430.c
+++ b/drivers/usb/musb/omap2430.c
@@ -198,6 +198,9 @@ int __init musb_platform_init(struct musb *musb)
omap_cfg_reg(AE5_2430_USB0HS_STP);
#endif
+ if (data->neednop)
+ usb_nop_xceiv_register();
+
/* We require some kind of external transceiver, hooked
* up through ULPI. TWL4030-family PMICs include one,
* which needs a driver, drivers aren't always needed.
@@ -323,8 +326,12 @@ static int musb_platform_resume(struct musb *musb)
int musb_platform_exit(struct musb *musb)
{
+ struct omap_musb_board_data *data = musb->board_data;
musb_platform_suspend(musb);
+ if (data->neednop)
+ usb_nop_xceiv_unregister();
+
return 0;
}
--
1.6.2.4
next prev parent reply other threads:[~2010-05-27 7:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-27 7:04 [PATCH 1/3] OMAP3: musb: add neednop flag to fix nop modular issue Ajay Kumar Gupta
[not found] ` <1274943888-17615-1-git-send-email-ajay.gupta-l0cyMroinI0@public.gmane.org>
2010-05-27 7:04 ` [PATCH 2/3] musb: populate board_data within musb structure Ajay Kumar Gupta
2010-05-27 7:04 ` Ajay Kumar Gupta [this message]
[not found] ` <1274943888-17615-2-git-send-email-ajay.gupta-l0cyMroinI0@public.gmane.org>
2010-05-27 9:03 ` Kalliguddi, Hema
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=1274943888-17615-3-git-send-email-ajay.gupta@ti.com \
--to=ajay.gupta@ti.com \
--cc=amit.kucheria@verdurent.com \
--cc=felipe.balbi@nokia.com \
--cc=khilman@deeprootsystems.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;
as well as URLs for NNTP newsgroup(s).