eSPI KConfig overrides espi_config API channel selection in eSPI driver #24162
Labels
area: eSPI
eSPI
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Describe the bug
eSPI KConfig channel enables overrides anything client driver is requesting.
i.e KConfig indicates following channels are supported
VW_CHANNEL
OOB_CHANNEL
FLASH_CHANNEL
If user decides only to enable only VW channel and Peripheral channel, eSPI driver still sends the wrong channel capabilities to eSPI partner. (VW/PC/OOB).
To Reproduce
Change initialization in samples/drivers/espi/src/main.c under espi_init
Reduce the amount of channels support
build
mkdir build; cd build
cmake -DBOARD=board\mec15xx
make
Run the driver sample.
All channels supported by the driver are advertised as enabled instead only the ones selected by client driver via espi_config API.
Expected behavior
Only the channels selected by the client driver should be advertised.
Impact
This deviates from eSPI API intention and slows debug due mismatched capabilities sicne eSPI analyzer to debug early handshake issues.
The text was updated successfully, but these errors were encountered: