extcon: ptn5150: Fix usage of atomic GPIO with sleeping GPIO chips
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: 4ed754de ("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>
Showing
Please register or sign in to comment