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
pmc
pmt
speed_select_if
telemetry
uncore-frequency
wmi
bxtwc_tmu.c
chtdc_ti_pwrbtn.c
chtwc_int33fe.c
crystal_cove_charger.c
hid.c
int0002_vgpio.c
ishtp_eclite.c
Kconfig
Makefile
mrfld_pwrbtn.c
oaktrail.c
punit_ipc.c
rst.c
sdsi.c
smartconnect.c
turbo_max_3.c
vbtn.c
vsec.c
vsec.h