Re: [PATCH 08/25] thermal/drivers/hisi: Fix configuration register setting

2017-10-16 Thread Eduardo Valentin
On Tue, Oct 10, 2017 at 08:02:33PM +0200, Daniel Lezcano wrote: > The TEMP0_CFG configuration register contains different field to set up the > temperature controller. However in the code, nothing prevents a setup to > overwrite the previous one: eg. writing the hdak value overwrites the sensor > s

[PATCH 08/25] thermal/drivers/hisi: Fix configuration register setting

2017-10-10 Thread Daniel Lezcano
The TEMP0_CFG configuration register contains different field to set up the temperature controller. However in the code, nothing prevents a setup to overwrite the previous one: eg. writing the hdak value overwrites the sensor selection, the sensor selection overwrites the hdak value. In order to p