Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755651AbbLGGex (ORCPT ); Mon, 7 Dec 2015 01:34:53 -0500 Received: from kirsty.vergenet.net ([202.4.237.240]:40776 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751450AbbLGGeu (ORCPT ); Mon, 7 Dec 2015 01:34:50 -0500 Date: Mon, 7 Dec 2015 15:34:47 +0900 From: Simon Horman To: Kuninori Morimoto Cc: Zhang Rui , Eduardo Valentin , Magnus , linux-sh@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/4] ARM: shmobile: r8a7790: enable to use thermal-zone Message-ID: <20151207063443.GH22834@verge.net.au> References: <871tb2hpn2.wl%kuninori.morimoto.gx@renesas.com> <87wpsugazs.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wpsugazs.wl%kuninori.morimoto.gx@renesas.com> Organisation: Horms Solutions Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1399 Lines: 30 On Fri, Dec 04, 2015 at 03:18:11AM +0000, Kuninori Morimoto wrote: > > From: Kuninori Morimoto > > This patch enables to use thermal-zone on r8a7790. > This thermal sensor can measure temperature from -40000 to 125000, > but over 117000 can be critical on this chip. > Thus, default critical temperature is now set as 115000 (this driver > is using 5000 steps) (Current critical temperature is using it as > 90000, but there is no big reason about it) > > And it doesn't check thermal zone periodically (same as current > behavior). You can exchange it by modifing polling-delay[-passive] > property. > > You can set trip temp if your kernel has CONFIG_THERMAL_WRITABLE_TRIPS, > but you need to take care to use it, since it will call > orderly_poweroff() it it reached to the value. > echo $temp > /sys/class/thermal/thermal_zone0/trip_point_0_temp > > Signed-off-by: Kuninori Morimoto I have marked this and the following shmobile patch as deffered pending acceptance of the driver changes (earlier in the patchset). Please repost the shmobile patches once that has occurred. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/