Re: [PATCH v2 6/6] platform/x86: ayaneo-ec: Add suspend hook
From: Guenter Roeck
Date: Wed Oct 29 2025 - 10:25:33 EST
On 10/29/25 03:49, Antheas Kapenekakis wrote:
...
Speaking of which, what is the policy for hwmon when it comes to
settings after hibernation. I am being asked to add a restore hook for
hwmon settings here, but other relevant drivers do not have it
(asuswmi, gpdfan, oxpec), is a new requirement for hwmon?
Your driver is in platform/x86. I do not dictate or control requirements
in that subsystem. I only get involved at all if I catch a flagrant violation
of hwmon's API/ABI. I found that people implementing hwmon drivers outside
hwmon often do it to avoid maintainer scrutiny, and I am tired of arguing
with people claiming that they know the hwmon subsystem better than me.
For drivers/hwmon, there is no mandate to implement suspend/restore support,
but if implemented if _should_ be complete. I understand that this is not
always the case. I don't reject code because of it because it is sometimes
all but impossible to implement. My philosophy is that anyone interested
in a perfect implementation of suspend/restore support is invited to submit
patch(es) implementing it.
Long story short, there is no such requirement for hwmon drivers in
drivers/hwmon/, but I can not speak for requirement in drivers/platform/.
That is for the respective maintainers to determine and decide.
Guenter