Bluetooth: hci_vhci: Fix to set force_wakeup value
RFC PATCH 1/1 Bluetooth: hci_vhci: Fix to set force_wakeup value
From: Tedd Ho-Jeong An <[email protected]>
This patch sets the wakeup value in the vhci driver data after reading the value.
--- drivers/bluetooth/hci_vhci.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/bluetooth/hci_vhci.c +2 -0
@@ -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
Marcel Holtmann
maintainerHi Tedd,
Quoted 13 lines
This patch sets the wakeup value in the vhci driver data after reading the value.
Signed-off-by Tedd Ho-Jeong An <[email protected]>---
drivers/bluetooth/hci_vhci.c| 2 ++1 file changed, 2 insertions(+)drivers/bluetooth/hci_vhci.c +0
-0
drivers/bluetooth/hci_vhci.c static ssize_t force_wakeup_write(struct file *file, · line 181
Quoted 6 lines
drivers/bluetooth/hci_vhci.c +2
-0@@ -176,6 +176,8 @@ static ssize_t force_wakeup_write(struct file *file,if (data->wakeup == enable)return -EALREADY ; + data->wakeup = enable; +return count;
patch looks good, but the commit message is confusing.
Regards
Marcel
Luiz Augusto von Dentz
maintainerHi Marcel, Tedd,
Quoted 19 lines · Marcel Holtmann
Hi Tedd,
Quoted 16 lines
This patch sets the wakeup value in the vhci driver data after reading the value.
Signed-off-by Tedd Ho-Jeong An <[email protected]>---
drivers/bluetooth/hci_vhci.c| 2 ++1 file changed, 2 insertions(+)drivers/bluetooth/hci_vhci.c +0
-0@@ -176,6 +176,8 @@ static ssize_t force_wakeup_write(struct file *file,if (data->wakeup == enable)return -EALREADY ;
Quoted 5 lines
drivers/bluetooth/hci_vhci.c static ssize_t force_wakeup_write(struct file *file, · line 181
Quoted 3 lines
drivers/bluetooth/hci_vhci.c +2
-0+ data->wakeup = enable; +return count;patch looks good, but the commit message is confusing.
Ive ended up fixing the original patch since I had to force push due to the pull request problem with committer/sign-off problem.
Quoted 4 lines
Regards
Marcel
Signature · 1 line
Luiz Augusto von Dentz