From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
To: pramod gurav <pramod.gurav.etc@gmail.com>
Cc: linux-usb@vger.kernel.org, Felipe Balbi <balbi@ti.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-arm-msm@vger.kernel.org
Subject: Re: [RFC PATCH 2/3 ] usb: phy: msm: Make phy_reset clk and reset line optional.
Date: Thu, 17 Jul 2014 14:14:15 +0100 [thread overview]
Message-ID: <53C7CC27.9010106@linaro.org> (raw)
In-Reply-To: <CAMf-jSmDUdtfVqbWYxbWzDxBp1oR2Bnp-3q85b24jxc2zx9Hww@mail.gmail.com>
On 17/07/14 13:54, pramod gurav wrote:
> Hi Srini,
>
> On Thu, Jul 17, 2014 at 6:19 PM, <pramod.gurav.etc@gmail.com> wrote:
>> From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
>>
>> This patch makes the phy reset clk and reset line optional as this clk
>> is not available on boards like IFC6410 with APQ8064.
>>
> .
> [snip]
> .
>>
>> pdata->mode = of_usb_get_dr_mode(node);
>> if (pdata->mode == USB_DR_MODE_UNKNOWN)
>> @@ -1556,7 +1556,7 @@ static int msm_otg_probe(struct platform_device *pdev)
>> np ? "phy" : "usb_phy_clk");
>> if (IS_ERR(motg->phy_reset_clk)) {
>> dev_err(&pdev->dev, "failed to get usb_phy_clk\n");
>
> I keep getting this error on IFC6410. Cant we suppress it?
IMO, We should ignore this message for IFC 6410 board as they do not
have phy reset clk.
>
>> - return PTR_ERR(motg->phy_reset_clk);
>> + motg->phy_reset_clk = NULL;
>
> for non-ifc boards(having this clk), if they have this clock should
> not code return on failure to get the usb_phy_clk?
I agree, Its a catch 22 situation here.
Unless we introduce more SOC level awareness into this driver. Which
would be a bit overdo for printing this message.
The error message should be considered more seriously for non IFC board.
Thanks,
srini
>
>> }
>>
>> motg->clk = devm_clk_get(&pdev->dev, np ? "core" : "usb_hs_clk");
>> --
>> 1.7.9.5
>>
>
>
>
next prev parent reply other threads:[~2014-07-17 13:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-17 12:54 [RFC PATCH 2/3 ] usb: phy: msm: Make phy_reset clk and reset line optional pramod gurav
2014-07-17 13:14 ` Srinivas Kandagatla [this message]
2014-07-17 14:39 ` Felipe Balbi
[not found] ` <20140717143941.GB10459-HgARHv6XitL9zxVx7UNMDg@public.gmane.org>
2014-07-17 14:41 ` Srinivas Kandagatla
-- strict thread matches above, loose matches on Subject: below --
2014-06-18 17:00 [RFC PATCH 0/3] ehci_msm fixes for APQ8064 USB host support Srinivas Kandagatla
2014-06-18 17:01 ` [RFC PATCH 2/3] usb: phy: msm: Make phy_reset clk and reset line optional Srinivas Kandagatla
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=53C7CC27.9010106@linaro.org \
--to=srinivas.kandagatla@linaro.org \
--cc=balbi@ti.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=pramod.gurav.etc@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.