From: Felipe Balbi <felipe.balbi@nokia.com>
To: ext Keshava Munegowda <keshava_mgowda@ti.com>
Cc: "linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
Anand Gadiyar <gadiyar@ti.com>
Subject: Re: [PATCH 3/5] usb: ehci: relocate PHY reset code
Date: Thu, 19 Aug 2010 09:01:26 +0300 [thread overview]
Message-ID: <20100819060126.GS4385@nokia.com> (raw)
In-Reply-To: <1282100145-27485-4-git-send-email-keshava_mgowda@ti.com>
On Wed, Aug 18, 2010 at 04:55:43AM +0200, ext Keshava Munegowda wrote:
>The PHY reset code is moved at the begining and end of the function
>omap_start_ehc. This simplfies the writing clocks enabling code for
>OMAP4 later.
>
>Signed-off-by: Keshava Munegowda <keshava_mgowda@ti.com>
>Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
>---
> drivers/usb/host/ehci-omap.c | 52 +++++++++++++++++++++----------------------
> 1 file changed, 26 insertions(+), 26 deletions(-)
>
>Index: linux-2.6/drivers/usb/host/ehci-omap.c
>===================================================================
>--- linux-2.6.orig/drivers/usb/host/ehci-omap.c
>+++ linux-2.6/drivers/usb/host/ehci-omap.c
>@@ -279,6 +279,24 @@ static int omap_start_ehc(struct ehci_hc
>
> dev_dbg(omap->dev, "starting TI EHCI USB Controller\n");
>
>+ if (omap->phy_reset) {
>+ /* Refer: ISSUE1 */
>+ if (gpio_is_valid(omap->reset_gpio_port[0])) {
>+ gpio_request(omap->reset_gpio_port[0],
>+ "USB1 PHY reset");
>+ gpio_direction_output(omap->reset_gpio_port[0], 0);
>+ }
>+
>+ if (gpio_is_valid(omap->reset_gpio_port[1])) {
>+ gpio_request(omap->reset_gpio_port[1],
>+ "USB2 PHY reset");
>+ gpio_direction_output(omap->reset_gpio_port[1], 0);
>+ }
>+
>+ /* Hold the PHY in RESET for enough time till DIR is high */
>+ udelay(10);
>+ }
there was another patch doing this with ulpi messages and that's more
portable as every board will have support for softreset but we can't
guarantee all of them will have these gpio routed correctly, right ?
--
balbi
DefectiveByDesign.org
next prev parent reply other threads:[~2010-08-19 6:01 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-18 2:55 [PATCH 0/5] usb: omap: prepare for OMAP4 EHCI and OHCI support Keshava Munegowda
[not found] ` <1282100145-27485-1-git-send-email-keshava_mgowda-l0cyMroinI0@public.gmane.org>
2010-08-18 2:55 ` [PATCH 1/5] usb: ehci: omap: Update clock names to be same across OMAP3 and OMAP4 Keshava Munegowda
2010-08-18 2:55 ` [PATCH 2/5] usb: ehci: don't hard-code TLL channel count Keshava Munegowda
[not found] ` <1282100145-27485-3-git-send-email-keshava_mgowda-l0cyMroinI0@public.gmane.org>
2010-08-18 2:55 ` [PATCH 3/5] usb: ehci: relocate PHY reset code Keshava Munegowda
[not found] ` <1282100145-27485-4-git-send-email-keshava_mgowda-l0cyMroinI0@public.gmane.org>
2010-08-18 2:55 ` [PATCH 4/5] usb: ohci: omap: Update clock names to be same across OMAP3 and OMAP4 Keshava Munegowda
[not found] ` <1282100145-27485-5-git-send-email-keshava_mgowda-l0cyMroinI0@public.gmane.org>
2010-08-18 2:55 ` [PATCH 5/6] usb: ohci: don't hard-code TLL channel count Keshava Munegowda
[not found] ` <1282100145-27485-6-git-send-email-keshava_mgowda-l0cyMroinI0@public.gmane.org>
2010-08-18 15:37 ` Munegowda, Keshava
2010-08-19 6:03 ` Felipe Balbi
[not found] ` <20100819060308.GT4385-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2010-08-19 6:26 ` Munegowda, Keshava
2010-08-19 7:23 ` Felipe Balbi
2010-08-19 7:26 ` Munegowda, Keshava
2010-08-19 6:01 ` Felipe Balbi [this message]
[not found] ` <20100819060126.GS4385-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2010-08-20 9:41 ` [PATCH 3/5] usb: ehci: relocate PHY reset code Gadiyar, Anand
2010-09-08 7:51 ` [PATCH 0/5] usb: omap: prepare for OMAP4 EHCI and OHCI support Munegowda, Keshava
2010-09-08 8:55 ` Greg KH
2010-09-08 9:49 ` Munegowda, Keshava
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=20100819060126.GS4385@nokia.com \
--to=felipe.balbi@nokia.com \
--cc=gadiyar@ti.com \
--cc=keshava_mgowda@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