Skip to contentSkip to conversation

Bluetooth: hci_vhci: Fix to set the force_wakeup value

PATCH In review Tedd Ho-Jeong An 3 participants 3 messages Oct 4, 2021 – Oct 6, 2021 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Bluetooth: hci_vhci: Fix to set the force_wakeup value

From: Tedd Ho-Jeong An <[email protected]>

This patch sets the wakeup state of the vhci driver when the force_wakeup is updated.

---
 drivers/bluetooth/hci_vhci.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/bluetooth/hci_vhci.c +2 -0
index b45db0db347c..5fd91106e853 100644
@@ -176,6 +176,8 @@ static ssize_t force_wakeup_write(struct file *file,
 	if (data->wakeup == enable)
 		return -EALREADY;
 
+	data->wakeup = enable;
+
 	return count;
 }
 
Signature · 1 line
2.25.1
#1 lore raw

Hi Tedd,

Quoted 25 lines · Tedd Ho-Jeong An

From: Tedd Ho-Jeong An <[email protected]>

This patch sets the wakeup state of the vhci driver when the force_wakeup is updated.

---
 drivers/bluetooth/hci_vhci.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/bluetooth/hci_vhci.c +2 -1
index b45db0db347c..5fd91106e853 100644
@@ -176,6 +176,8 @@ static ssize_t force_wakeup_write(struct file *file,
        if (data->wakeup == enable)
                return -EALREADY;
 
+       data->wakeup = enable;
+
        return count;
 }
 
--
Quoted 1 line

2.25.1

https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git/commit/?id=43f51bd946dab69bb38b05863898dd711b7e4506

It already contains this change as well.

Signature · 1 line
Luiz Augusto von Dentz