-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
storage/stream_flash: Initialize settings at point of use #81867
Conversation
c55e711
to
00810c3
Compare
@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. |
Would it than make sense to remove the |
hawkbit is going to make use of that, as soon as this can be merged: #71954 |
Yes, it does. Thanks, I will fix that. |
1 similar comment
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]>
00810c3
to
5a2bf24
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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.