platform/x86: int3472: Avoid GPIO regulator spikes
authorHans de Goede <hdegoede@redhat.com>
Thu, 17 Apr 2025 11:13:34 +0000 (13:13 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 24 Apr 2025 13:05:37 +0000 (16:05 +0300)
commitccda394e1ef17c3de33e31e7a4d2e647be6a362d
tree25e1d6423ec8f7f32435ed750eb48f360d559a90
parent033234bdc6cfb88a797a16aa3a9df815bbe01a28
platform/x86: int3472: Avoid GPIO regulator spikes

Avoid the GPIO controlling the avdd regulator being driven low or high
for a very short time leading to spikes by adding an enable delay of 2 ms
and a minimum off to on delay of also 2 ms.

Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: David Heidelberg <david@ixit.cz> # Dell Latitude 9440
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Link: https://lore.kernel.org/r/20250417111337.38142-7-hdegoede@redhat.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/int3472/clk_and_regulator.c
drivers/platform/x86/intel/int3472/common.h
drivers/platform/x86/intel/int3472/discrete.c