mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
ASoC: wcd9335: switch to using sleeping variants of gpiod API
The driver does not use gpiod API calls in an atomic context. Switch to gpiod_set_value_cansleep() calls to allow using the driver with GPIO controllers that might need process context to operate. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Link: https://patch.msgid.link/alsAsTcQrpnnR46d@google.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
d542c74cac
commit
50b2e4bfb4
|
|
@ -5010,9 +5010,9 @@ static int wcd9335_power_on_reset(struct wcd9335_codec *wcd)
|
|||
*/
|
||||
usleep_range(600, 650);
|
||||
|
||||
gpiod_set_value(wcd->reset_gpio, 1);
|
||||
gpiod_set_value_cansleep(wcd->reset_gpio, 1);
|
||||
msleep(20);
|
||||
gpiod_set_value(wcd->reset_gpio, 0);
|
||||
gpiod_set_value_cansleep(wcd->reset_gpio, 0);
|
||||
msleep(20);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user