Re: do not block sleep patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Felipe Balbi <felipe.balbi@xxxxxxxxx> [080626 16:34]:
> hi all,
> 
> Resending the patch as it didn't get applied.
> 
> Searching on the archives would be painful :-p

Thanks, one question below..

> 
> -- 
> 	- Balbi

> From d8f7f708e32ad7daadf9e48e7ba0ebecdf91094c Mon Sep 17 00:00:00 2001
> From: Felipe Balbi <felipe.balbi@xxxxxxxxx>
> Date: Thu, 26 Jun 2008 16:31:44 +0300
> Subject: [PATCH] ARCH: OMAP: MUSB: Do not block sleep
> MIME-Version: 1.0
> Content-Type: text/plain; charset=utf-8
> Content-Transfer-Encoding: 8bit
> 
> Do not block sleep while musb clock is enabled
> as it completely blocks dynamic sleep.
> 
> Thanks to Jouni Högander.
> 
> Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxx>
> Signed-off-by: Jouni Högander <jouni.hogander@xxxxxxxxx>
> ---
>  arch/arm/mach-omap2/usb-musb.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/usb-musb.c b/arch/arm/mach-omap2/usb-musb.c
> index cbd59f8..d495549 100644
> --- a/arch/arm/mach-omap2/usb-musb.c
> +++ b/arch/arm/mach-omap2/usb-musb.c
> @@ -58,14 +58,12 @@ static int musb_set_clock(struct clk *clk, int state)
>  		if (clk_on > 0)
>  			return -ENODEV;
>  
> -		omap2_block_sleep();
>  		clk_enable(clk);
>  		clk_on = 1;
>  	} else {
>  		if (clk_on == 0)
>  			return -ENODEV;
>  
> -		clk_disable(clk);
>  		clk_on = 0;
>  		omap2_allow_sleep();
>  	}
> -- 

Did you mean to remove omap2_allow_sleep() instead of clk_disable()?

Tony

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux