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

storage/stream_flash: Initialize settings at point of use #81867

Merged

Conversation

de-nordic
Copy link
Collaborator

The commit moves Settigns initialization out of stream_flash initialization function into: stream_flash_progress_clear
stream_flash_progress_load and stream_flash_progress_save.

This slightly increases code size (~56 bytes on Arm) but allows to initialize Stream Flash even if Settings subsystem fails to initialize and continue providing its basic functionality.

@de-nordic de-nordic force-pushed the stream-flash-move-settings-out branch 2 times, most recently from c55e711 to 00810c3 Compare November 25, 2024 20:24
@de-nordic de-nordic marked this pull request as ready for review November 26, 2024 09:27
@de-nordic de-nordic added the area: Storage Storage subsystem label Nov 26, 2024
@de-nordic de-nordic added this to the v4.1.0 milestone Nov 26, 2024
@de-nordic de-nordic self-assigned this Nov 26, 2024
@kartben
Copy link
Collaborator

kartben commented Dec 3, 2024

@de-nordic could you add some reviewers you feel would be appropriate? thanks

@de-nordic de-nordic requested a review from nvlsianpu December 3, 2024 08:54
@de-nordic
Copy link
Collaborator Author

de-nordic commented Dec 3, 2024

@de-nordic could you add some reviewers you feel would be appropriate? thanks

I am trying to find someone interested in this. I mean using the feature.

@maass-hamburg
Copy link
Collaborator

Would it than make sense to remove the settings_subsys_init() in the stream_flash_init()?

@maass-hamburg maass-hamburg self-requested a review December 21, 2024 21:06
@maass-hamburg
Copy link
Collaborator

hawkbit is going to make use of that, as soon as this can be merged: #71954

@de-nordic
Copy link
Collaborator Author

Would it than make sense to remove the settings_subsys_init() in the stream_flash_init()?

Yes, it does. Thanks, I will fix that.

1 similar comment
@de-nordic
Copy link
Collaborator Author

Would it than make sense to remove the settings_subsys_init() in the stream_flash_init()?

Yes, it does. Thanks, I will fix that.

The commit moves Settigns initialization out of stream_flash
initialization function into: stream_flash_progress_clear
 stream_flash_progress_load and stream_flash_progress_save.

This slightly increases code size (~56 bytes on Arm) but allows
to initialize Stream Flash even if Settings subsystem fails
to initialize and continue providing its basic functionality.

Signed-off-by: Dominik Ermel <[email protected]>
@de-nordic de-nordic force-pushed the stream-flash-move-settings-out branch from 00810c3 to 5a2bf24 Compare January 1, 2025 16:00
Copy link
Collaborator

@maass-hamburg maass-hamburg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kartben kartben merged commit ce97185 into zephyrproject-rtos:main Jan 7, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Storage Storage subsystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants