extcon: int3496: Request non-exclusive access to the ID GPIO
authorHans de Goede <hdegoede@redhat.com>
Tue, 28 Dec 2021 17:01:39 +0000 (18:01 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 4 Feb 2022 02:13:30 +0000 (11:13 +0900)
commit93c6c2516d797c0114704d8ed5455cb10bca41c4
treefbfd5a5c81ae4ea4a969482f40c6a6cb45c3e6de
parentd1887cda9ff1ebbefd82d6138b4db690bcf8eb2c
extcon: int3496: Request non-exclusive access to the ID GPIO

Some DSDTs are buggy and do a read from the ID pin during the ACPI
initialization, causing the pin to be marked as owned by:
"ACPI:OpRegion" and causing gpiod_get() to fail with -EBUSY.

Pass the GPIOD_FLAGS_BIT_NONEXCLUSIVE flag to the gpiod_get() call
to work around this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-intel-int3496.c