public inbox for linux-hwmon@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] hmwon: (sy7636a) fix regulator handling
@ 2025-09-20 11:43 Andreas Kemnade
  2025-09-20 11:43 ` [PATCH RFC 1/2] hwmon: (sy7636a) fix races during probe of mfd subdevices Andreas Kemnade
  2025-09-20 11:43 ` [PATCH 2/2] hwmon: (sy7636a) enable regulator only if needed Andreas Kemnade
  0 siblings, 2 replies; 22+ messages in thread
From: Andreas Kemnade @ 2025-09-20 11:43 UTC (permalink / raw)
  To: jdelvare, linux, lgirdwood, broonie, linux-hwmon, linux-kernel,
	Alistair Francis
  Cc: Andreas Kemnade

The temperature sensor in these devices in only usable if its
regulators are turned on.
To have that properly working fix a race during probe which leads to
dummy regulator assigned instead. That fix looks questionable,
therefore mark it as RFC. Having the regulators enabled increases
power consumption a lot, so rather turn them on only when needed.
The usual usage pattern would be to enable regulators, read temperature to
determine how to configure waveforms for the epaper display,
initiate the refresh and turning the regulators off.

Andreas Kemnade (2):
  hwmon: (sy7636a) fix races during probe of mfd subdevices
  hwmon: (sy7636a) enable regulator only if needed

 drivers/hwmon/sy7636a-hwmon.c | 34 ++++++++++++++++++++++++----------
 1 file changed, 24 insertions(+), 10 deletions(-)

-- 
2.47.3


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2026-02-01 16:29 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-20 11:43 [PATCH 0/2] hmwon: (sy7636a) fix regulator handling Andreas Kemnade
2025-09-20 11:43 ` [PATCH RFC 1/2] hwmon: (sy7636a) fix races during probe of mfd subdevices Andreas Kemnade
2025-09-20 19:58   ` Mark Brown
2025-09-20 21:33     ` Andreas Kemnade
2025-09-20 22:18       ` Mark Brown
2025-09-21 16:35         ` Andreas Kemnade
2025-09-24  7:00         ` Andreas Kemnade
2025-09-24  7:17           ` Guenter Roeck
2025-09-24 17:53             ` Andreas Kemnade
2025-09-24 19:16               ` Guenter Roeck
2025-09-27 18:39                 ` Jonathan Cameron
2025-10-27 20:12                   ` Andreas Kemnade
2026-01-22 14:23                 ` In-kernel hwmon read: (was: Re: [PATCH RFC 1/2] hwmon: (sy7636a) fix races during probe of mfd subdevices) Andreas Kemnade
2026-01-31 18:42                   ` Jonathan Cameron
2026-02-01 16:29                   ` In-kernel hwmon read: Guenter Roeck
2025-09-24  8:44           ` [PATCH RFC 1/2] hwmon: (sy7636a) fix races during probe of mfd subdevices Mark Brown
2025-10-27 11:30             ` Andreas Kemnade
2025-09-20 11:43 ` [PATCH 2/2] hwmon: (sy7636a) enable regulator only if needed Andreas Kemnade
2025-09-24 16:06   ` Guenter Roeck
2025-09-24 20:40     ` Andreas Kemnade
2025-09-24 21:06       ` Guenter Roeck
2025-09-24 21:58         ` Andreas Kemnade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox