mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
* The initial state of a series of patches for sunxi-5.17 tag orange-pi-5.17-20220323-1423 * DEBUG for sunxi-5.17 * Add Armbian patches to 5.17 * Fix duplicate nodes for sun50i-h5-orangepi-pc2 * Fix reg_ahci_5v to status okay for bananapro board * Remove an unused patch for an unsupported sun50i-h6-tanix-tx6 board
33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
From 9c561be107f67a878c902970b0fca27f35baf071 Mon Sep 17 00:00:00 2001
|
|
From: Vyacheslav Bocharov <adeep@lexina.in>
|
|
Date: Tue, 19 Oct 2021 12:46:06 +0300
|
|
Subject: [PATCH 002/101] drv:bluetooth:hci_h5: power reset via gpio in
|
|
h5_btrtl_open
|
|
|
|
Add power reset via enable-gpios in h5_btrtl_open function.
|
|
|
|
Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>
|
|
---
|
|
drivers/bluetooth/hci_h5.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c
|
|
index c9b54335a..a56e378b1 100644
|
|
--- a/drivers/bluetooth/hci_h5.c
|
|
+++ b/drivers/bluetooth/hci_h5.c
|
|
@@ -971,6 +971,11 @@ static void h5_btrtl_open(struct h5 *h5)
|
|
pm_runtime_enable(&h5->hu->serdev->dev);
|
|
}
|
|
|
|
+ /* The controller needs reset to startup */
|
|
+ gpiod_set_value_cansleep(h5->enable_gpio, 0);
|
|
+ gpiod_set_value_cansleep(h5->device_wake_gpio, 0);
|
|
+ msleep(100);
|
|
+
|
|
/* The controller needs up to 500ms to wakeup */
|
|
gpiod_set_value_cansleep(h5->enable_gpio, 1);
|
|
gpiod_set_value_cansleep(h5->device_wake_gpio, 1);
|
|
--
|
|
2.31.1
|
|
|