Re: [PATCH] Bluetooth: hci_bcm: use gpiod cansleep version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Loic,

> Some GPIO controller drivers request sleepable context and so can't
> be accessed from IRQ context. Using gpiod_set/get_value accessors
> with such controller leads to a kernel warning since they are
> reserved for atomic context (according to the documentation).
> 
> Use the postfixed _cansleep version instead, indicating that context
> is safe for sleeping if necessary. Note that this is the case here
> since we never toggle the gpio neither from IRQ nor from a spinlocked
> section.
> 
> Signed-off-by: Loic Poulain <loic.poulain@xxxxxxxxxx>
> ---
> drivers/bluetooth/hci_bcm.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux