]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btusb: request wake pin with NOAUTOEN
authorBrian Norris <briannorris@chromium.org>
Tue, 9 Apr 2019 18:49:17 +0000 (11:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Apr 2019 03:38:24 +0000 (17:38 -1000)
commite07f7448008ae01a70dbbf6a74c5a9eab71807f7
treea0574841f90b59fa08855d7eec95fd132063d645
parent967ff9e8bfd2b8473073ff1d75a81f8938bb30a3
Bluetooth: btusb: request wake pin with NOAUTOEN

Badly-designed systems might have (for example) active-high wake pins
that default to high (e.g., because of external pull ups) until they
have an active firmware which starts driving it low.  This can cause an
interrupt storm in the time between request_irq() and disable_irq().

We don't support shared interrupts here, so let's just pre-configure the
interrupt to avoid auto-enabling it.

Fixes: 044ba51a8813 ("Bluetooth: btusb: Add out-of-band wakeup support")
Fixes: 9d71aeb3e662 ("arm64: dts: rockchip: move QCA6174A wakeup pin into its USB node")
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/bluetooth/btusb.c