Skip to content

Conversation

elmo9999
Copy link
Contributor

@elmo9999 elmo9999 commented Oct 7, 2025

When using the eSPI peripheral channel for HOST_CMD, the STS0 bit indicates that EC is busy.
To reflect this properly,
STS0 should only be set when there is actual input data to process.

This avoids falsely signaling a busy state when there is no data.

When using the eSPI peripheral channel for HOST_CMD,
the STS0 bit indicates that EC is busy.
To reflect this properly,
STS0 should only be set when there is actual input data to process.

This avoids falsely signaling a busy state when there is no data.

Signed-off-by: Elmo Lan <[email protected]>
Copy link

sonarqubecloud bot commented Oct 7, 2025

promt0_reg->STS |= ACPI_STS_STS0;
}

evt.evt_data = (uint8_t)promt0_reg->IB;
Copy link
Contributor

@VenkatKotakonda VenkatKotakonda Oct 7, 2025

Choose a reason for hiding this comment

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

wouldn't this IB data invalid if IBF is not set?
in that case shouldn't this data copy code moved under above if condition?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants