linux-yocto/drivers/bluetooth
Bartosz Golaszewski e2e38c5211 Bluetooth: hci_qca: move the SoC type check to the right place
commit 0fb410c914 upstream.

Commit 3d05fc8223 ("Bluetooth: qca: set power_ctrl_enabled on NULL
returned by gpiod_get_optional()") accidentally changed the prevous
behavior where power control would be disabled without the BT_EN GPIO
only on QCA_WCN6750 and QCA_WCN6855 while also getting the error check
wrong. We should treat every IS_ERR() return value from
devm_gpiod_get_optional() as a reason to bail-out while we should only
set power_ctrl_enabled to false on the two models mentioned above. While
at it: use dev_err_probe() to save a LOC.

Cc: stable@vger.kernel.org
Fixes: 3d05fc8223 ("Bluetooth: qca: set power_ctrl_enabled on NULL returned by gpiod_get_optional()")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tested-by: Hsin-chen Chuang <chharry@chromium.org>
Reviewed-by: Hsin-chen Chuang <chharry@chromium.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-06-19 15:28:00 +02:00
..
ath3k.c Bluetooth: ath3k: Fix multiple issues reported by checkpatch.pl 2024-06-27 13:49:02 +02:00
bcm203x.c
bfusb.c
bluecard_cs.c
bpa10x.c
bt3c_cs.c
btbcm.c
btbcm.h
btintel.c Bluetooth: btintel: Direct exception event to bluetooth stack 2024-11-22 15:38:32 +01:00
btintel.h
btmrvl_debugfs.c
btmrvl_drv.h
btmrvl_main.c Bluetooth: HCI: Remove HCI_AMP support 2024-06-12 11:11:55 +02:00
btmrvl_sdio.c Bluetooth: btmrvl: Use IRQF_NO_AUTOEN flag in request_irq() 2024-10-10 11:57:16 +02:00
btmrvl_sdio.h
btmtk.c Bluetooth: btmtk: avoid UAF in btmtk_process_coredump 2024-12-19 18:11:34 +01:00
btmtk.h Bluetooth: btmtk: Add MODULE_FIRMWARE() for MT7922 2024-04-13 13:07:33 +02:00
btmtksdio.c
btmtkuart.c
btnxpuart.c Bluetooth: btnxpuart: Fix kernel panic during FW release 2025-05-22 14:12:24 +02:00
btqca.c Bluetooth: qca: simplify WCN399x NVM loading 2025-04-25 10:45:17 +02:00
btqca.h Bluetooth: qca: fix info leak when fetching fw build id 2024-05-17 12:02:38 +02:00
btqcomsmd.c
btrsi.c Bluetooth: HCI: Remove HCI_AMP support 2024-06-12 11:11:55 +02:00
btrtl.c Bluetooth: btrtl: Prevent potential NULL dereference 2025-04-25 10:45:40 +02:00
btrtl.h
btsdio.c Bluetooth: HCI: Remove HCI_AMP support 2024-06-12 11:11:55 +02:00
btusb.c Bluetooth: btusb: use skb_pull to avoid unsafe access in QCA dump handling 2025-06-04 14:42:18 +02:00
dtl1_cs.c
h4_recv.h
hci_ag6xx.c
hci_ath.c
hci_bcm.c
hci_bcm4377.c Bluetooth: hci_bcm4377: Use correct unit for timeouts 2024-08-03 08:53:44 +02:00
hci_bcsp.c
hci_h4.c
hci_h5.c Bluetooth: btrtl: fix out of bounds memory access 2024-03-26 18:19:38 -04:00
hci_intel.c
hci_ldisc.c Bluetooth: hci_uart: Fix another race during initialization 2025-04-25 10:45:37 +02:00
hci_ll.c
hci_mrvl.c
hci_nokia.c
hci_qca.c Bluetooth: hci_qca: move the SoC type check to the right place 2025-06-19 15:28:00 +02:00
hci_serdev.c Bluetooth: HCI: Remove HCI_AMP support 2024-06-12 11:11:55 +02:00
hci_uart.h Bluetooth: hci_uart: Fix another race during initialization 2025-04-25 10:45:37 +02:00
hci_vhci.c Bluetooth: vhci: Avoid needless snprintf() calls 2025-04-25 10:45:47 +02:00
Kconfig
Makefile
virtio_bt.c Bluetooth: HCI: Remove HCI_AMP support 2024-06-12 11:11:55 +02:00