Message ID | 20211002182109.165456-1-hj.tedd.an@gmail.com (mailing list archive) |
---|---|
State | RFC |
Headers | show |
Series | [RFC] Bluetooth: hci_vhci: Fix to set force_wakeup value | expand |
Context | Check | Description |
---|---|---|
tedd_an/checkpatch | success | Checkpatch PASS |
tedd_an/gitlint | success | Gitlint PASS |
tedd_an/buildkernel | success | Build Kernel PASS |
tedd_an/testrunnersetup | success | Test Runner Setup PASS |
tedd_an/testrunnerl2cap-tester | success | Total: 40, Passed: 40 (100.0%), Failed: 0, Not Run: 0 |
tedd_an/testrunnerbnep-tester | success | Total: 1, Passed: 1 (100.0%), Failed: 0, Not Run: 0 |
tedd_an/testrunnermgmt-tester | fail | Total: 458, Passed: 455 (99.3%), Failed: 3, Not Run: 0 |
tedd_an/testrunnerrfcomm-tester | success | Total: 9, Passed: 9 (100.0%), Failed: 0, Not Run: 0 |
tedd_an/testrunnersco-tester | success | Total: 12, Passed: 12 (100.0%), Failed: 0, Not Run: 0 |
tedd_an/testrunnersmp-tester | success | Total: 8, Passed: 8 (100.0%), Failed: 0, Not Run: 0 |
tedd_an/testrunneruserchan-tester | success | Total: 4, Passed: 4 (100.0%), Failed: 0, Not Run: 0 |
Hi Tedd, > This patch sets the wakeup value in the vhci driver data after reading > the value. > > Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com> > --- > 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; patch looks good, but the commit message is confusing. Regards Marcel
Hi Marcel, Tedd, On Sat, Oct 2, 2021 at 2:04 PM Marcel Holtmann <marcel@holtmann.org> wrote: > > Hi Tedd, > > > This patch sets the wakeup value in the vhci driver data after reading > > the value. > > > > Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com> > > --- > > 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; > > 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. > Regards > > Marcel >
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; }