1
0
Fork 0
alistair23-linux/drivers/extcon
Krzysztof Kozlowski a908e29705 extcon: ptn5150: Fix usage of atomic GPIO with sleeping GPIO chips
commit 6aaad58c87 upstream.

The driver uses atomic version of gpiod_set_value() without any real
reason.  It is called in a workqueue under mutex so it could sleep
there.  Changing it to "can_sleep" flavor allows to use the driver with
all GPIO chips.

Fixes: 4ed754de2d ("extcon: Add support for ptn5150 extcon driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Vijai Kumar K <vijaikumar.kanagarajan@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-05 11:43:24 +01:00
..
Kconfig mfd / platform: cros_ec: Move cros-ec core driver out from MFD 2019-09-02 11:33:12 +01:00
Makefile extcon: Add fsa9480 extcon driver 2019-06-22 21:34:51 +09:00
devres.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
extcon-adc-jack.c extcon: adc-jack: Fix an error handling path in 'adc_jack_probe()' 2020-06-24 17:50:36 +02:00
extcon-arizona.c extcon: arizona: Switch to use device_property_count_u32() 2019-07-24 18:57:42 +09:00
extcon-axp288.c extcon: axp288: Add wakeup support 2020-04-08 09:08:43 +02:00
extcon-fsa9480.c extcon: fsa9480: Support the FSA880 variant 2019-07-24 19:10:19 +09:00
extcon-gpio.c extcon: gpio: Request reasonable interrupts 2019-07-24 19:20:19 +09:00
extcon-intel-cht-wc.c extcon-intel-cht-wc: Don't reset USB data connection at probe 2020-02-01 09:34:46 +00:00
extcon-intel-int3496.c extcon: int3496: Convert to use SPDX identifier 2018-08-28 11:21:15 +09:00
extcon-intel-mrfld.c extcon: mrfld: Introduce extcon driver for Basin Cove PMIC 2019-04-05 10:21:41 +09:00
extcon-intel.h extcon: intel: Split out some definitions to a common header 2019-04-05 10:21:41 +09:00
extcon-max3355.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 233 2019-06-19 17:09:06 +02:00
extcon-max8997.c extcon: max8997: Fix lack of path setting in USB device mode 2018-11-14 09:06:32 +09:00
extcon-max14577.c extcon: max14577: Avoid forcing UART path on drive probe 2018-11-12 09:17:13 +09:00
extcon-max77693.c extcon: max77693: Avoid forcing UART path on drive probe 2018-11-12 09:17:13 +09:00
extcon-max77843.c extcon: extcon-max77843: convert to i2c_new_dummy_device 2019-07-24 18:59:05 +09:00
extcon-palmas.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
extcon-ptn5150.c extcon: ptn5150: Fix usage of atomic GPIO with sleeping GPIO chips 2020-11-05 11:43:24 +01:00
extcon-qcom-spmi-misc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
extcon-rt8973a.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
extcon-rt8973a.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
extcon-sm5502.c extcon: sm5502: Reset registers during initialization 2019-12-31 16:44:04 +01:00
extcon-sm5502.h extcon: sm5502: Reset registers during initialization 2019-12-31 16:44:04 +01:00
extcon-usb-gpio.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
extcon-usbc-cros-ec.c mfd / platform: cros_ec: Reorganize platform and mfd includes 2019-09-02 11:33:42 +01:00
extcon.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
extcon.h USB/PHY patches for 4.15-rc1 2017-11-13 21:14:07 -08:00