Commit 2af0a709 authored by Loic Poulain's avatar Loic Poulain Committed by Marcel Holtmann

Bluetooth: hci_bcm: Use non-sleep version of gpio_set_value

We should not sleep while holding a spinlock.
bcm_gpio_set_power is called while holding the bcm_device_list lock.
Signed-off-by: default avatarLoic Poulain <loic.poulain@intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 9cd3778c
...@@ -138,8 +138,8 @@ static int bcm_gpio_set_power(struct bcm_device *dev, bool powered) ...@@ -138,8 +138,8 @@ static int bcm_gpio_set_power(struct bcm_device *dev, bool powered)
if (powered && !IS_ERR(dev->clk) && !dev->clk_enabled) if (powered && !IS_ERR(dev->clk) && !dev->clk_enabled)
clk_enable(dev->clk); clk_enable(dev->clk);
gpiod_set_value_cansleep(dev->shutdown, powered); gpiod_set_value(dev->shutdown, powered);
gpiod_set_value_cansleep(dev->device_wakeup, powered); gpiod_set_value(dev->device_wakeup, powered);
if (!powered && !IS_ERR(dev->clk) && dev->clk_enabled) if (!powered && !IS_ERR(dev->clk) && dev->clk_enabled)
clk_disable(dev->clk); clk_disable(dev->clk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment