Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth: Mesh: use settings priority feature #83214

Conversation

KyraLengfeld
Copy link
Collaborator

By using SETTINGS_STATIC_HANDLER_DEFINE_WITH_CPRIO we can ensure that BT subsystems always get loaded after BT, and BT Mesh after both of them.

This solves the host having to register a GATT service in a delayed manner, as we are sure to now register the GATT service after sc_commit sets SC_LOAD.

@KyraLengfeld
Copy link
Collaborator Author

Note: This PR is following up on the effort in #79690

@HaavardRei
Copy link
Contributor

Nit: Should the host changes be split into a separate commit?

@KyraLengfeld
Copy link
Collaborator Author

Nit: Should the host changes be split into a separate commit?

I'd assume its more clear looking back on this change as one commit instead of having separate commits. That said, I don't mind splitting it if that is the consensus of the reviewers.

tests/bsim/bluetooth/mesh/src/test_advertiser.c Outdated Show resolved Hide resolved
subsys/bluetooth/host/settings.c Outdated Show resolved Hide resolved
@KyraLengfeld KyraLengfeld force-pushed the use_settings_prio_feature_mesh_start branch from 0e463af to cf53f1b Compare December 21, 2024 10:42
@KyraLengfeld KyraLengfeld force-pushed the use_settings_prio_feature_mesh_start branch from cf53f1b to 9c1f3d0 Compare December 23, 2024 08:26
subsys/bluetooth/mesh/proxy_srv.c Show resolved Hide resolved
subsys/bluetooth/mesh/proxy_srv.c Show resolved Hide resolved
subsys/bluetooth/common/bt_settings_commit.h Outdated Show resolved Hide resolved
tests/bsim/bluetooth/mesh/src/test_advertiser.c Outdated Show resolved Hide resolved
By using `SETTINGS_STATIC_HANDLER_DEFINE_WITH_CPRIO` we can ensure that
BT subsystems always get loaded after BT, and BT Mesh after both of
them.

This solves the host having to register a GATT service in a delayed
manner, as we are sure to now register the GATT service after sc_commit
sets `SC_LOAD`.

Signed-off-by: Kyra Lengfeld <kyra.lengfeld@nordicsemi.no>
@KyraLengfeld KyraLengfeld force-pushed the use_settings_prio_feature_mesh_start branch from 9c1f3d0 to 8149a93 Compare January 2, 2025 17:00
@KyraLengfeld KyraLengfeld requested a review from PavelVPV January 13, 2025 13:47
@kartben kartben merged commit 64d8713 into zephyrproject-rtos:main Jan 13, 2025
27 checks passed
@KyraLengfeld KyraLengfeld deleted the use_settings_prio_feature_mesh_start branch January 14, 2025 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants