2023-03-06 22:32:43

by Brian Gix

[permalink] [raw]
Subject: [PATCH] Bluetooth: Remove "Power-on" check from Mesh feature

The Bluetooth mesh experimental feature enable was requiring the
controller to be powered off in order for the Enable to work. Mesh is
supposed to be enablable regardless of the controller state, and created
an unintended requirement that the mesh daemon be started before the
classic bluetoothd daemon.

Fixes: Unintended Bluetooth startup order dependancy
Signed-off-by: Brian Gix <[email protected]>
---
net/bluetooth/mgmt.c | 6 ------
1 file changed, 6 deletions(-)

diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 0dd30a3beb77..7576db8eb83e 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -4627,12 +4627,6 @@ static int set_mgmt_mesh_func(struct sock *sk, struct hci_dev *hdev,
MGMT_OP_SET_EXP_FEATURE,
MGMT_STATUS_INVALID_INDEX);

- /* Changes can only be made when controller is powered down */
- if (hdev_is_powered(hdev))
- return mgmt_cmd_status(sk, hdev->id,
- MGMT_OP_SET_EXP_FEATURE,
- MGMT_STATUS_REJECTED);
-
/* Parameters are limited to a single octet */
if (data_len != MGMT_SET_EXP_FEATURE_SIZE + 1)
return mgmt_cmd_status(sk, hdev->id,
--
2.39.2



2023-03-06 23:05:24

by bluez.test.bot

[permalink] [raw]
Subject: RE: Bluetooth: Remove "Power-on" check from Mesh feature

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=727113

---Test result---

Test Summary:
CheckPatch FAIL 1.05 seconds
GitLint PASS 0.26 seconds
SubjectPrefix PASS 0.07 seconds
BuildKernel PASS 43.10 seconds
CheckAllWarning PASS 47.38 seconds
CheckSparse PASS 52.48 seconds
CheckSmatch PASS 142.54 seconds
BuildKernel32 PASS 41.20 seconds
TestRunnerSetup PASS 590.44 seconds
TestRunner_l2cap-tester PASS 19.97 seconds
TestRunner_iso-tester PASS 23.30 seconds
TestRunner_bnep-tester PASS 7.69 seconds
TestRunner_mgmt-tester PASS 142.76 seconds
TestRunner_rfcomm-tester PASS 12.07 seconds
TestRunner_sco-tester PASS 10.67 seconds
TestRunner_ioctl-tester PASS 12.58 seconds
TestRunner_mesh-tester PASS 9.36 seconds
TestRunner_smp-tester PASS 10.42 seconds
TestRunner_userchan-tester PASS 7.90 seconds
IncrementalBuild PASS 39.43 seconds

Details
##############################
Test: CheckPatch - FAIL
Desc: Run checkpatch.pl script
Output:
Bluetooth: Remove "Power-on" check from Mesh feature
WARNING: 'dependancy' may be misspelled - perhaps 'dependency'?
#85:
Fixes: Unintended Bluetooth startup order dependancy
^^^^^^^^^^

total: 0 errors, 1 warnings, 0 checks, 12 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.

/github/workspace/src/src/13162455.patch has style problems, please review.

NOTE: Ignored message types: UNKNOWN_COMMIT_ID

NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.




---
Regards,
Linux Bluetooth

2023-03-07 21:30:26

by patchwork-bot+bluetooth

[permalink] [raw]
Subject: Re: [PATCH] Bluetooth: Remove "Power-on" check from Mesh feature

Hello:

This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <[email protected]>:

On Mon, 6 Mar 2023 14:32:21 -0800 you wrote:
> The Bluetooth mesh experimental feature enable was requiring the
> controller to be powered off in order for the Enable to work. Mesh is
> supposed to be enablable regardless of the controller state, and created
> an unintended requirement that the mesh daemon be started before the
> classic bluetoothd daemon.
>
> Fixes: Unintended Bluetooth startup order dependancy
> Signed-off-by: Brian Gix <[email protected]>
>
> [...]

Here is the summary with links:
- Bluetooth: Remove "Power-on" check from Mesh feature
https://git.kernel.org/bluetooth/bluetooth-next/c/eaa2b72585a3

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html