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

ec_host_cmd: introduce Host Command state #69560

Merged

Conversation

niedzwiecki-dawid
Copy link
Member

@niedzwiecki-dawid niedzwiecki-dawid commented Feb 28, 2024

It makes sures that a backend has been initilized and doesn't allow
sending a response twice. There is a possibility, that a command handler
that calls ec_host_cmd_send_response function returns anyway (which is a
mistake).

@zephyrbot zephyrbot added area: ec_host_cmd Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. labels Feb 28, 2024
fabiobaltieri
fabiobaltieri previously approved these changes Feb 28, 2024
@niedzwiecki-dawid
Copy link
Member Author

Sorry for disturbing, I've changed me mind and I'll upload checking HC state in the general code, for all backends.

@niedzwiecki-dawid niedzwiecki-dawid added the In progress For PRs: is work in progress and should not be merged yet. For issues: Is being worked on label Feb 28, 2024
@niedzwiecki-dawid niedzwiecki-dawid changed the title ec_host_cmd: uart: do not send response twice ec_host_cmd: introduce Host Command state Feb 29, 2024
@niedzwiecki-dawid niedzwiecki-dawid removed the Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. label Feb 29, 2024
fabiobaltieri
fabiobaltieri previously approved these changes Feb 29, 2024
Introduce a current state of Host Command subsystem.

It makes sures that a backend has been initilized and doesn't allow
sending a response twice. There is a possibility, that a command handler
that calls ec_host_cmd_send_response function returns anyway (which is a
mistake).

Signed-off-by: Dawid Niedzwiecki <[email protected]>
@henrikbrixandersen henrikbrixandersen merged commit 4d97dcf into zephyrproject-rtos:main Mar 6, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ec_host_cmd In progress For PRs: is work in progress and should not be merged yet. For issues: Is being worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants