Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1348746 > unrolled thread

Re: [PATCH] thermal: rockchip: disable thermal->clk in err case

Started byCaesar Wang <caesar.upstream@gmail.com>
First post2016-03-03 04:40 +0100
Last post2016-03-03 04:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] thermal: rockchip: disable thermal->clk in err case Caesar Wang <caesar.upstream@gmail.com> - 2016-03-03 04:40 +0100

#1348746 — Re: [PATCH] thermal: rockchip: disable thermal->clk in err case

FromCaesar Wang <caesar.upstream@gmail.com>
Date2016-03-03 04:40 +0100
SubjectRe: [PATCH] thermal: rockchip: disable thermal->clk in err case
Message-ID<r8shk-Zf-9@gated-at.bofh.it>
Hi ,

Sorry for the missing it.

在 2016年02月15日 10:27, Shawn Lin 写道:
> Disable thermal->clk when enabling pclk fails in
> resume routine.
>
> Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>

Reviewed-by: Caesar Wang <wxt@rock-chips.com>

> ---
>
>   drivers/thermal/rockchip_thermal.c | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c
> index 9787e8a..b54f6db 100644
> --- a/drivers/thermal/rockchip_thermal.c
> +++ b/drivers/thermal/rockchip_thermal.c
> @@ -656,8 +656,10 @@ static int __maybe_unused rockchip_thermal_resume(struct device *dev)
>   		return error;
>   
>   	error = clk_enable(thermal->pclk);
> -	if (error)
> +	if (error) {
> +		clk_disable(thermal->clk);
>   		return error;
> +	}
>   
>   	rockchip_thermal_reset_controller(thermal->reset);
>   


-- 
Thanks,
Caesar

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web