From: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>
To: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org>
Cc: Sergei Shtylyov
<sshtylyov-Igf4POYTYCDQT0dZR+AlfA@public.gmane.org>,
balbi-l0cyMroinI0@public.gmane.org,
keshava_mgowda-l0cyMroinI0@public.gmane.org,
bjorn-yOkvZcmFvRU@public.gmane.org,
linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v3 23/23] mfd: omap-usb-host: Don't spam console on clk_set_parent failure
Date: Thu, 13 Dec 2012 12:46:35 +0200 [thread overview]
Message-ID: <20121213104635.GF1916@arwen.pp.htv.fi> (raw)
In-Reply-To: <50BF569A.1080403-l0cyMroinI0@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 3063 bytes --]
On Wed, Dec 05, 2012 at 04:13:46PM +0200, Roger Quadros wrote:
> On 12/05/2012 03:42 PM, Sergei Shtylyov wrote:
> > Hello.
> >
> > On 04-12-2012 18:31, Roger Quadros wrote:
> >
> >> clk_set_parent is expected to fail on OMAP3 platforms. We don't
> >> consider that as fatal so don't spam console.
> >
> >> Signed-off-by: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org>
> >> ---
> >> drivers/mfd/omap-usb-host.c | 18 +++++++++---------
> >> 1 files changed, 9 insertions(+), 9 deletions(-)
> >>
> >> diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c
> >> index 0bb54393..e5257dc 100644
> >> --- a/drivers/mfd/omap-usb-host.c
> >> +++ b/drivers/mfd/omap-usb-host.c
> >> @@ -657,32 +657,32 @@ static int __devinit usbhs_omap_probe(struct
> >> platform_device *pdev)
> >> }
> >>
> >> if (is_ehci_phy_mode(pdata->port_mode[0])) {
> >> - /* for OMAP3 , the clk set paretn fails */
> >> + /* for OMAP3, clk_set_parent fails */
> >> ret = clk_set_parent(omap->utmi_clk[0],
> >> omap->xclk60mhsp1_ck);
> >> if (ret != 0)
> >> - dev_err(dev, "xclk60mhsp1_ck set parent"
> >> - "failed error:%d\n", ret);
> >> + dev_dbg(dev, "xclk60mhsp1_ck set parent failed : %d\n",
> >> + ret);
> >> } else if (is_ehci_tll_mode(pdata->port_mode[0])) {
> >> ret = clk_set_parent(omap->utmi_clk[0],
> >> omap->init_60m_fclk);
> >> if (ret != 0)
> >> - dev_err(dev, "init_60m_fclk set parent"
> >> - "failed error:%d\n", ret);
> >> + dev_dbg(dev, "P0 init_60m_fclk set parent failed: %d\n",
> >> + ret);
> >> }
> >>
> >> if (is_ehci_phy_mode(pdata->port_mode[1])) {
> >> ret = clk_set_parent(omap->utmi_clk[1],
> >> omap->xclk60mhsp2_ck);
> >> if (ret != 0)
> >> - dev_err(dev, "xclk60mhsp2_ck set parent"
> >> - "failed error:%d\n", ret);
> >> + dev_dbg(dev, "xclk60mhsp2_ck set parent failed : %d\n",
> >> + ret);
> >> } else if (is_ehci_tll_mode(pdata->port_mode[1])) {
> >> ret = clk_set_parent(omap->utmi_clk[1],
> >> omap->init_60m_fclk);
> >> if (ret != 0)
> >> - dev_err(dev, "init_60m_fclk set parent"
> >> - "failed error:%d\n", ret);
> >> + dev_dbg(dev, "P1 init_60m_fclk set parent failed: %d\n",
> >> + ret);
> >
> > Hm, you sometimes put a space before colon in the error message and
> > sometimes not. Inconsistent. :-)
> >
>
> That was because it fit in 80 characters without the space. I'm not sure
> what is more important, fitting in 80 or consistency in the print
> message. Maybe i should have removed the spaces everywhere so that it is
> consistent as well. :)
I'd say it's the consistency :-)
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2012-12-13 10:46 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-04 14:31 [PATCH v3 16/23] ARM: OMAP2+: clock data: Merge utmi_px_gfclk into usb_host_hs_utmi_px_clk Roger Quadros
2012-12-04 14:31 ` [PATCH v3 17/23] mfd: omap-usb-host: Manage HSIC clocks for HSIC mode Roger Quadros
[not found] ` <1354631514-24815-1-git-send-email-rogerq-l0cyMroinI0@public.gmane.org>
2012-12-04 14:31 ` [PATCH v3 18/23] mfd: omap-usb-host: Get rid of unnecessary spinlock Roger Quadros
2012-12-04 14:31 ` [PATCH v3 19/23] mfd: omap-usb-host: clean up omap_usbhs_init() Roger Quadros
2012-12-04 14:31 ` [PATCH v3 20/23] USB: ehci-omap: Don't free gpios that we didn't request Roger Quadros
2012-12-04 14:31 ` [PATCH v3 21/23] ARM: OMAP3: clock data: get rid of unused USB host clock aliases and dummies Roger Quadros
2012-12-04 14:31 ` [PATCH v3 22/23] ARM: OMAP4: clock data: get rid of unused USB host clock aliases Roger Quadros
2012-12-04 14:31 ` [PATCH v3 23/23] mfd: omap-usb-host: Don't spam console on clk_set_parent failure Roger Quadros
2012-12-05 13:42 ` Sergei Shtylyov
2012-12-05 14:13 ` Roger Quadros
[not found] ` <50BF569A.1080403-l0cyMroinI0@public.gmane.org>
2012-12-13 10:46 ` Felipe Balbi [this message]
2012-12-13 11:04 ` Jassi Brar
2012-12-05 5:08 ` [PATCH v3 16/23] ARM: OMAP2+: clock data: Merge utmi_px_gfclk into usb_host_hs_utmi_px_clk Paul Walmsley
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=20121213104635.GF1916@arwen.pp.htv.fi \
--to=balbi-l0cymroini0@public.gmane.org \
--cc=bjorn-yOkvZcmFvRU@public.gmane.org \
--cc=keshava_mgowda-l0cyMroinI0@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=rogerq-l0cyMroinI0@public.gmane.org \
--cc=sshtylyov-Igf4POYTYCDQT0dZR+AlfA@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