All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sshtylyov-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
To: Felipe Balbi <felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
Cc: tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org,
	linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [patch-v2.6.34 7/9] usb: musb: use only clk framework for clk handling
Date: Wed, 30 Dec 2009 14:18:56 +0300	[thread overview]
Message-ID: <4B3B3720.9070205@ru.mvista.com> (raw)
In-Reply-To: <1262127567-15202-8-git-send-email-felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>

Hello.

Felipe Balbi wrote:

> get rid of the set_clock hackery.
>
> Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> Signed-off-by: Felipe Balbi <felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
> ---
>
> Greg, I'll send this patch to you shortly, it's
> only here so that Tony can have it in linux-omap-2.6
> to avoid breaking any of his boards.
>   

   Er, I'm afraid I have to NAK this patch...

> diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
> index 5eb9318..37ca87d 100644
> --- a/drivers/usb/musb/musb_core.c
> +++ b/drivers/usb/musb/musb_core.c
> @@ -977,10 +977,8 @@ static void musb_shutdown(struct platform_device *pdev)
>  	spin_lock_irqsave(&musb->lock, flags);
>  	musb_platform_disable(musb);
>  	musb_generic_disable(musb);
> -	if (musb->clock) {
> -		clk_put(musb->clock);
> -		musb->clock = NULL;
> -	}
> +	clk_put(musb->clock);
> +	musb->clock = NULL;
>  	spin_unlock_irqrestore(&musb->lock, flags);
>  
>  	/* FIXME power down */
> @@ -1864,10 +1862,8 @@ static void musb_free(struct musb *musb)
>  	musb_platform_exit(musb);
>  	musb_writeb(musb->mregs, MUSB_DEVCTL, 0);
>  
> -	if (musb->clock) {
> -		clk_disable(musb->clock);
> -		clk_put(musb->clock);
> -	}
> +	clk_disable(musb->clock);
> +	clk_put(musb->clock);
>  
>  #ifdef CONFIG_USB_MUSB_HDRC_HCD
>  	usb_put_hcd(musb_to_hcd(musb));
> @@ -1930,7 +1926,6 @@ bad_config:
>  	spin_lock_init(&musb->lock);
>  	musb->board_mode = plat->mode;
>  	musb->board_set_power = plat->set_power;
> -	musb->set_clock = plat->set_clock;
>  	musb->min_power = plat->min_power;
>  
>  	/* Clock usage is chip-specific ... functional clock (DaVinci,
> @@ -1938,15 +1933,17 @@ bad_config:
>  	 * code does is make sure a clock handle is available; platform
>  	 * code manages it during start/stop and suspend/resume.
>  	 */
> -	if (plat->clock) {
> -		musb->clock = clk_get(dev, plat->clock);
> -		if (IS_ERR(musb->clock)) {
> -			status = PTR_ERR(musb->clock);
> -			musb->clock = NULL;
> -			goto fail;
> -		}
> +	musb->clock = clk_get(dev, "ick");
>   

   Why always "ick"?! Do you think OMAPs are the only boards using MUSB 
out there?

WBR, Sergei


--
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

  parent reply	other threads:[~2009-12-30 11:18 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-29 22:59 [patch-v2.6.34 0/9] arm omap patches for -next merge window Felipe Balbi
2009-12-29 22:59 ` Felipe Balbi
2009-12-29 22:59 ` [patch-v2.6.34 2/9] arm: omap: musb: we can use clk framework Felipe Balbi
2009-12-29 22:59   ` Felipe Balbi
2009-12-29 22:59 ` [patch-v2.6.34 4/9] arm: omap: musb: remove unused dma data Felipe Balbi
2009-12-29 22:59   ` Felipe Balbi
2009-12-29 22:59 ` [patch-v2.6.34 6/9] arm: omap: gpmc: avoid section definitions on headers Felipe Balbi
2009-12-29 22:59   ` Felipe Balbi
     [not found] ` <1262127567-15202-1-git-send-email-felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2009-12-29 22:59   ` [patch-v2.6.34 1/9] arm: omap: musb: remove unused data Felipe Balbi
2009-12-29 22:59     ` Felipe Balbi
2009-12-29 22:59   ` [patch-v2.6.34 3/9] arm: omap: musb: remove unused soft_con field Felipe Balbi
2009-12-29 22:59     ` Felipe Balbi
2009-12-29 22:59   ` [patch-v2.6.34 5/9] arm: omap: musb: remove unnecessary return Felipe Balbi
2009-12-29 22:59     ` Felipe Balbi
2009-12-29 22:59   ` [patch-v2.6.34 7/9] usb: musb: use only clk framework for clk handling Felipe Balbi
2009-12-29 22:59     ` Felipe Balbi
     [not found]     ` <1262127567-15202-8-git-send-email-felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2009-12-30 11:18       ` Sergei Shtylyov [this message]
     [not found]         ` <4B3B3720.9070205-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
2009-12-30 11:53           ` Felipe Balbi
2009-12-30 11:53             ` Felipe Balbi
2009-12-30 13:06             ` Sergei Shtylyov
     [not found]               ` <4B3B504B.4020602-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
2009-12-30 13:14                 ` Felipe Balbi
2009-12-30 13:14                   ` Felipe Balbi
2009-12-30 13:20                   ` Felipe Balbi
2009-12-30 13:20                     ` Felipe Balbi
2009-12-30 13:25                   ` Sergei Shtylyov
     [not found]                     ` <4B3B54E1.9010600-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
2009-12-30 13:29                       ` Felipe Balbi
2009-12-30 13:29                         ` Felipe Balbi
2009-12-30 13:43                         ` Sergei Shtylyov
     [not found]                           ` <4B3B58F0.2070903-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
2009-12-30 13:46                             ` Felipe Balbi
2009-12-30 13:46                               ` Felipe Balbi
2009-12-30 14:45                               ` Sergei Shtylyov
2009-12-29 22:59 ` [patch-v2.6.34 8/9] arm: omap: musb: do not pass clock name to driver Felipe Balbi
2009-12-29 22:59   ` Felipe Balbi
2009-12-30 11:23   ` Sergei Shtylyov
2009-12-30 11:55     ` Felipe Balbi
2009-12-30 11:55       ` Felipe Balbi
2009-12-30 13:10       ` Sergei Shtylyov
2009-12-29 22:59 ` [patch-v2.6.34 9/9] arm: omap: musb: get rid of dyn_fifo Felipe Balbi
2009-12-29 22:59   ` 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=4B3B3720.9070205@ru.mvista.com \
    --to=sshtylyov-hkdhdckh98+b+jhodadfcq@public.gmane.org \
    --cc=felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@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 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.