[PATCH v1] thermal: imx: Update critical temp threshold

Francesco Dolcini francesco.dolcini at toradex.com
Thu May 12 06:56:53 PDT 2022


On Thu, May 12, 2022 at 12:52:46PM +0200, Daniel Lezcano wrote:
> On 12/05/2022 12:24, Francesco Dolcini wrote:
> > Hello Lucas,
> > 
> > On Thu, May 12, 2022 at 12:08:08PM +0200, Lucas Stach wrote:
> > > Am Donnerstag, dem 12.05.2022 um 09:36 +0200 schrieb Francesco Dolcini:
> 
> [ ... ]
> 
> > Anyway, would it be fine to have a patch that make the critical
> > threshold write-able (in my initial message I mentioned this as my
> > preferred solution also)? If anybody has a pointer on how
> > to do it, it would be great, I'm not familiar with that code.
> 
> What about a module param ?

I would be happy to just be able to write to the `critical`
trip_point_temp file in sysfs, however the thermal
framework seems to enforce the critical threshold being read only (only
`get_trip_temp` callback available). Is there any way to change this? 

# cat /sys/class/thermal/thermal_zone0/trip_point_1_type
critical
# ls -l /sys/class/thermal/thermal_zone0/trip_point_1_temp
-r--r--r-- 1 root root 4096 May  6 14:33 /sys/class/thermal/thermal_zone0/trip_point_1_temp

Francesco




More information about the linux-arm-kernel mailing list