2021-10-04 22:54:28

by Tedd Ho-Jeong An

[permalink] [raw]
Subject: [PATCH V2] 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.

Signed-off-by: Tedd Ho-Jeong An <[email protected]>
---
drivers/bluetooth/hci_vhci.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c
index b45db0db347c..5fd91106e853 100644
--- a/drivers/bluetooth/hci_vhci.c
+++ b/drivers/bluetooth/hci_vhci.c
@@ -176,6 +176,8 @@ static ssize_t force_wakeup_write(struct file *file,
if (data->wakeup == enable)
return -EALREADY;

+ data->wakeup = enable;
+
return count;
}

--
2.25.1


2021-10-04 23:56:38

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: [PATCH V2] Bluetooth: hci_vhci: Fix to set the force_wakeup value

Hi Tedd,

On Mon, Oct 4, 2021 at 3:54 PM Tedd Ho-Jeong An <[email protected]> wrote:
>
> From: Tedd Ho-Jeong An <[email protected]>
>
> This patch sets the wakeup state of the vhci driver when the
> force_wakeup is updated.
>
> Signed-off-by: Tedd Ho-Jeong An <[email protected]>
> ---
> drivers/bluetooth/hci_vhci.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c
> index b45db0db347c..5fd91106e853 100644
> --- a/drivers/bluetooth/hci_vhci.c
> +++ b/drivers/bluetooth/hci_vhci.c
> @@ -176,6 +176,8 @@ static ssize_t force_wakeup_write(struct file *file,
> if (data->wakeup == enable)
> return -EALREADY;
>
> + data->wakeup = enable;
> +
> return count;
> }
>
> --
> 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.


--
Luiz Augusto von Dentz

2021-10-06 08:58:33

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [PATCH V2] Bluetooth: hci_vhci: Fix to set the force_wakeup value

Hi Tedd,

> This patch sets the wakeup state of the vhci driver when the
> force_wakeup is updated.
>
> Signed-off-by: Tedd Ho-Jeong An <[email protected]>
> ---
> drivers/bluetooth/hci_vhci.c | 2 ++
> 1 file changed, 2 insertions(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel