]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86: int3472: Call "reset" GPIO "enable" for INT347E
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 11 Feb 2025 07:28:40 +0000 (09:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Mar 2025 19:54:17 +0000 (12:54 -0700)
commit7e759fb015125c3e767b8a00e709c3eb4095f00d
tree090757d1ac5fd7b6aa485920eaf2412d0ac8a33f
parent515b17dcd4cf711d12e6f1ed60bd7c1ce490cadf
platform/x86: int3472: Call "reset" GPIO "enable" for INT347E

[ Upstream commit 569617dbbd06286fb73f3f1c2ac91e51d863c7de ]

The DT bindings for ov7251 specify "enable" GPIO (xshutdown in
documentation) but the int3472 indiscriminately provides this as a "reset"
GPIO to sensor drivers. Take this into account by assigning it as "enable"
with active high polarity for INT347E devices, i.e. ov7251. "reset" with
active low polarity remains the default GPIO name for other devices.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250211072841.7713-3-sakari.ailus@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/intel/int3472/discrete.c