linux/drivers/platform/x86/intel
Hans de Goede c7acfd933d platform/x86: int3472/discrete: Ensure the clk/power enable pins are in output mode
commit cf5ac2d45f upstream.

acpi_get_and_request_gpiod() does not take a gpio_lookup_flags argument
specifying that the pins direction should be initialized to a specific
value.

This means that in some cases the pins might be left in input mode, causing
the gpiod_set() calls made to enable the clk / regulator to not work.

One example of this problem is the clk-enable GPIO for the ov01a1s sensor
on a Dell Latitude 9420 being left in input mode causing the clk to
never get enabled.

Explicitly set the direction of the pins to output to fix this.

Fixes: 5de691bffe ("platform/x86: Add intel_skl_int3472 driver")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Reviewed-by: Daniel Scally <djrscally@gmail.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Link: https://lore.kernel.org/r/20230111201426.947853-1-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-01-18 11:58:15 +01:00
..
atomisp2
ifs
int1092
int3472 platform/x86: int3472/discrete: Ensure the clk/power enable pins are in output mode 2023-01-18 11:58:15 +01:00
pmc platform/x86/intel: pmc: Don't unconditionally attach Intel PMC when virtualized 2022-11-15 16:53:17 +01:00
pmt platform/x86/intel/pmt: Sapphire Rapids PMT errata fix 2022-11-07 12:33:49 +01:00
speed_select_if
telemetry
uncore-frequency platform/x86: intel-uncore-freq: add Emerald Rapids support 2023-01-07 11:11:43 +01:00
wmi
bxtwc_tmu.c
chtdc_ti_pwrbtn.c
chtwc_int33fe.c
crystal_cove_charger.c
hid.c platform/x86/intel/hid: Add some ACPI device IDs 2022-11-07 12:33:49 +01:00
int0002_vgpio.c
ishtp_eclite.c
Kconfig
Makefile
mrfld_pwrbtn.c
oaktrail.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
punit_ipc.c
rst.c
sdsi.c
smartconnect.c
turbo_max_3.c
vbtn.c
vsec.c
vsec.h