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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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 from 34db2cf to c55e711 Compare November 25, 2024 12:52
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 <dominik.ermel@nordicsemi.no>
@de-nordic de-nordic force-pushed the stream-flash-move-settings-out branch 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.

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