public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: qca: don't disable power management for QCA6390
@ 2024-06-24 19:45 Bartosz Golaszewski
  2024-06-24 20:17 ` Dmitry Baryshkov
  2024-06-26 20:00 ` patchwork-bot+bluetooth
  0 siblings, 2 replies; 13+ messages in thread
From: Bartosz Golaszewski @ 2024-06-24 19:45 UTC (permalink / raw)
  To: Marcel Holtmann, Luiz Augusto von Dentz
  Cc: linux-bluetooth, linux-kernel, Bartosz Golaszewski,
	Dmitry Baryshkov

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

We unnecessarily fallthrough the case for QCA6390 when initializing the
device and hit the condition where - due to the lack of the enable-gpio
- we disable power management despite using the power sequencer. We don't
need to look for clocks on this model so it makes more sense to just
register the hci device and break the switch.

Reported-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fixes: 4029dba6b6f1 ("Bluetooth: qca: use the power sequencer for QCA6390")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 drivers/bluetooth/hci_qca.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
index 2b31f3dc33a9..bc6a49ba26f9 100644
--- a/drivers/bluetooth/hci_qca.c
+++ b/drivers/bluetooth/hci_qca.c
@@ -2402,7 +2402,13 @@ static int qca_serdev_probe(struct serdev_device *serdev)
 							   "bluetooth");
 		if (IS_ERR(qcadev->bt_power->pwrseq))
 			return PTR_ERR(qcadev->bt_power->pwrseq);
-		fallthrough;
+
+		err = hci_uart_register_device(&qcadev->serdev_hu, &qca_proto);
+		if (err) {
+			BT_ERR("qca6390 serdev registration failed");
+			return err;
+		}
+		break;
 
 	default:
 		qcadev->bt_en = devm_gpiod_get_optional(&serdev->dev, "enable",
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-06-26 20:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-24 19:45 [PATCH] Bluetooth: qca: don't disable power management for QCA6390 Bartosz Golaszewski
2024-06-24 20:17 ` Dmitry Baryshkov
2024-06-24 20:46   ` Bartosz Golaszewski
2024-06-24 21:19     ` Dmitry Baryshkov
2024-06-25  6:50       ` Bartosz Golaszewski
2024-06-25  6:57         ` Dmitry Baryshkov
2024-06-25  7:46       ` Bartosz Golaszewski
2024-06-25  7:47         ` Dmitry Baryshkov
2024-06-25  8:50           ` Bartosz Golaszewski
2024-06-25  8:55             ` Dmitry Baryshkov
2024-06-25  9:01               ` Bartosz Golaszewski
2024-06-25  9:02                 ` Dmitry Baryshkov
2024-06-26 20:00 ` patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox