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

fix espi_hub: remove repeated data send in peripheral callback #51

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

Conversation

yimjiajun
Copy link

The fix ensures that the peripheral notification event is only triggered once in the callback function.

Previously, each call to espi_add_callback would insert the into a linked list.

This list would then be searched, and all matching ESPI_BUS_PERIPHERAL_NOTIFICATION events would be invoked when calling the callbacks.

The fix ensures that the peripheral notification event is only
triggered once in the callback function.

Previously, each call to espi_add_callback would insert the into
a linked list.

This list would then be searched, and all matching
ESPI_BUS_PERIPHERAL_NOTIFICATION events would be invoked when
calling the callbacks.
@albertofloyd albertofloyd self-requested a review September 4, 2024 04:33
@albertofloyd
Copy link
Contributor

@yimjiajun thanks for your contribution and patience.
We found same issue few months back. It has been planned for a while to include the fix (at least the espi_hub changes regarding the callback) as part in upcoming release that will migrate the repo to Zephyr 3.4.

However, the kbchost workaround removal will be slightly different since needs to be reworked to discriminate against when callback event corresponds to HOST_KBC_EVT_IBF in some EC vendor driver implementations.

fyi @Asthachavda

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.

3 participants