From: "Munegowda, Keshava" <keshava_mgowda-l0cyMroinI0@public.gmane.org>
To: "Menon, Nishanth" <nm-l0cyMroinI0@public.gmane.org>
Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
balbi-l0cyMroinI0@public.gmane.org,
gadiyar-l0cyMroinI0@public.gmane.org,
p-basak2-l0cyMroinI0@public.gmane.org,
axel.lin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
johnstul-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org,
mpfj-list-kZtEnBLzDKq1Qrn1Bg8BZw@public.gmane.org
Subject: Re: [PATCH] omap:usb: fixing ehci phy gpio values for omap3
Date: Wed, 27 Apr 2011 11:22:03 +0530 [thread overview]
Message-ID: <BANLkTi=apB0cZpgzFjHKuArrxkQX5W7deQ@mail.gmail.com> (raw)
In-Reply-To: <BANLkTi=fQCRAST1DvJEAnznNnySCv55Yag-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Tue, Apr 26, 2011 at 7:10 PM, Menon, Nishanth <nm-l0cyMroinI0@public.gmane.org> wrote:
> On Thu, Apr 21, 2011 at 09:22, Keshava Munegowda <keshava_mgowda@ti.com> wrote:
>>
>> From: Keshava Munegowda <Keshava_mgowda-l0cyMroinI0@public.gmane.org>
>>
>> The gpio of EHCI phy should be 0 instead of 1;
>> This fixes the hub enumeration issue in beagle xm board.
>>
>> Signed-off-by: Keshava Munegowda <keshava_mgowda-l0cyMroinI0@public.gmane.org>
>
> Dumb q1: Has this been tested on PandaBoard?
No, I have tested this on 4430 sdp . I think sdp validation is sufficient
> Dumb q2: is'nt it better to introduce polarity e.g.
> pdata->ehci_data->reset_gpio_polarity etc? this will allow board files
> to describe polarity of pin information to driver which can then be
> Phy and any board specific mods(e.g. inverter on the line) independent
> completely..
yes, I am thinking of doing it; since it requires modification of all
board files;
I will send this an another separate patch.
keshava munegowda
>
> Regards,
> Nishanth Menon
>
>> ---
>> drivers/mfd/omap-usb-host.c | 8 ++++----
>> 1 files changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c
>> index b3bb3ac..a12202e 100644
>> --- a/drivers/mfd/omap-usb-host.c
>> +++ b/drivers/mfd/omap-usb-host.c
>> @@ -718,14 +718,14 @@ static int usbhs_enable(struct device *dev)
>> gpio_request(pdata->ehci_data->reset_gpio_port[0],
>> "USB1 PHY reset");
>> gpio_direction_output
>> - (pdata->ehci_data->reset_gpio_port[0], 1);
>> + (pdata->ehci_data->reset_gpio_port[0], 0);
>> }
>>
>> if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[1])) {
>> gpio_request(pdata->ehci_data->reset_gpio_port[1],
>> "USB2 PHY reset");
>> gpio_direction_output
>> - (pdata->ehci_data->reset_gpio_port[1], 1);
>> + (pdata->ehci_data->reset_gpio_port[1], 0);
>> }
>>
>> /* Hold the PHY in RESET for enough time till DIR is high */
>> @@ -905,11 +905,11 @@ static int usbhs_enable(struct device *dev)
>>
>> if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[0]))
>> gpio_set_value
>> - (pdata->ehci_data->reset_gpio_port[0], 0);
>> + (pdata->ehci_data->reset_gpio_port[0], 1);
>>
>> if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[1]))
>> gpio_set_value
>> - (pdata->ehci_data->reset_gpio_port[1], 0);
>> + (pdata->ehci_data->reset_gpio_port[1], 1);
>> }
>>
>> end_count:
>> --
>> 1.6.0.4
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-04-27 5:52 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-21 14:22 [PATCH] mfd: Fix usbhs_enable error handling Keshava Munegowda
[not found] ` <1303395763-8702-1-git-send-email-keshava_mgowda-l0cyMroinI0@public.gmane.org>
2011-04-21 14:22 ` [PATCH] omap:usb: fixing ehci phy gpio values for omap3 Keshava Munegowda
[not found] ` <1303395763-8702-2-git-send-email-keshava_mgowda-l0cyMroinI0@public.gmane.org>
2011-04-21 14:22 ` [PATCH] omap:usb: add regulator support for EHCI Keshava Munegowda
[not found] ` <1303395763-8702-3-git-send-email-keshava_mgowda-l0cyMroinI0@public.gmane.org>
2011-05-02 9:38 ` Felipe Balbi
2011-04-26 13:40 ` [PATCH] omap:usb: fixing ehci phy gpio values for omap3 Menon, Nishanth
[not found] ` <BANLkTi=fQCRAST1DvJEAnznNnySCv55Yag-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-04-27 5:52 ` Munegowda, Keshava [this message]
[not found] ` <BANLkTi=apB0cZpgzFjHKuArrxkQX5W7deQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-04-27 7:58 ` Felipe Balbi
[not found] ` <20110427075843.GS13227-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org>
2011-04-27 8:26 ` Munegowda, Keshava
2011-05-02 9:38 ` Felipe Balbi
[not found] ` <20110502093815.GQ2529-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org>
2011-05-02 11:31 ` Munegowda, Keshava
[not found] ` <BANLkTi=kH02P9GFo6wmPpRGr=L582DEp0A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-05-02 11:54 ` Felipe Balbi
2011-05-02 12:23 ` Munegowda, Keshava
2011-04-26 8:58 ` [PATCH] mfd: Fix usbhs_enable error handling Felipe Balbi
[not found] ` <20110426085846.GI13227-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org>
2011-04-26 9:02 ` Keshava Munegowda
2011-04-26 9:04 ` Felipe Balbi
[not found] ` <20110426090418.GJ13227-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org>
2011-04-26 15:09 ` Steve Calfee
[not found] ` <BANLkTi=NB5as-Kz8bSCvh3=KPQR1wwXUOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-04-26 19:34 ` Felipe Balbi
[not found] ` <20110426193407.GR13227-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org>
2011-04-26 20:57 ` Steve Calfee
2011-05-02 9:37 ` Felipe Balbi
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='BANLkTi=apB0cZpgzFjHKuArrxkQX5W7deQ@mail.gmail.com' \
--to=keshava_mgowda-l0cymroini0@public.gmane.org \
--cc=axel.lin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=balbi-l0cyMroinI0@public.gmane.org \
--cc=gadiyar-l0cyMroinI0@public.gmane.org \
--cc=johnstul-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mpfj-list-kZtEnBLzDKq1Qrn1Bg8BZw@public.gmane.org \
--cc=nm-l0cyMroinI0@public.gmane.org \
--cc=p-basak2-l0cyMroinI0@public.gmane.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).