Re: [PATCH v2 5/5] iio: chemical: sgp40: Implement turn_heater_off-command
From: Jonathan Cameron
Date: Sat Nov 07 2026 - 20:06:02 EST
On Mon, 2 Nov 2026 11:56:02 +0200
Jaakko Koivisto <jmatko@xxxxxx> wrote:
> Add functionality for turning the SGP40 sensor heating element
> on or off manually. After turning the heater off, the sensor enters
> idle mode. Track the state of the heater in the driver, as the device
> does not expose current heater state via any register.
>
> Turning the heater off saves approx. 2.5 mA compared to regular
> operation. The heating element is automatically turned back on
> when measurement is performed.
Hi Jaakko,
Add something here on how long it takes to power up. It
isn't obvious so far that this should be just done via runtime
pm and autosuspend.
Normally the argument to have a manual turn off is that time
is huge. Otherwise, why not runtime pm?
thanks,
Jonathan