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

Set host flash Mux back to SP once host is booted #1575

Merged
merged 1 commit into from
Dec 12, 2023
Merged

Conversation

citrus-it
Copy link
Contributor

Fixes #1172


fn set_hf_mux_to_sp(&mut self) {
if self.hf_mux_state != Some(HfMuxState::SP) {
let _ = self.hf.set_mux(HfMuxState::SP);
Copy link
Contributor

Choose a reason for hiding this comment

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

I was going to ask what we could or should do if this fails (e.g., should we retry setting the mux to the SP on every valid IPCC message), but it looks like this can't actually fail unless the hf task crashes outright. If hf crashes and restarts, do we know what happens with the mux?

Copy link
Contributor Author

@citrus-it citrus-it Dec 9, 2023

Choose a reason for hiding this comment

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

If hf crashes and restarts, the mux will be set to the SP - that's its default disposition and it explicitly resets the pin. Testing bears this out. I've added a comment, thanks.

@citrus-it citrus-it self-assigned this Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

host-sp-comms should commandeer flash for hf
2 participants