]> git.baikalelectronics.ru Git - kernel.git/commit
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, 13 May 2022 08:03:40 +0000 (17:03 +0900)
commit8be7fc94be361e4acf73130934cc0742fef40978
treee933e00880979afbb8c2eee14923e5dd2a7a916e
parent559b7ff2802c3502aadf32fd85ddd32d89445c4a
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