Skip to content
Commit e9d470b2 authored by Jun Lin's avatar Jun Lin Committed by Benjamin Cabé
Browse files

ec_host_cmd: shi: npcx: not reset when receiving bad data



When the SHI driver receives data from the host and finds it is invalid
(due to a checksum error or an unsupported protocol version),
it currently resets the state machine, initializes the output buffer,
and waits for CS de-assertion. Upon CS de-assertion, the driver resets
the state machine and initializes the output buffer again. This commit
removes the first redundant reset and re-initialization in the function
`shi_npcx_bad_received_data()`, improving the driver’s efficiency.

Signed-off-by: default avatarJun Lin <CHLin56@nuvoton.com>
parent 5af3adf6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment