diff options
Diffstat (limited to 'chip/g/sps_hc.c')
-rw-r--r-- | chip/g/sps_hc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/g/sps_hc.c b/chip/g/sps_hc.c index 5ddad59d34..1fe9c6f62a 100644 --- a/chip/g/sps_hc.c +++ b/chip/g/sps_hc.c @@ -124,13 +124,13 @@ static int req_header_looks_good(const struct ec_host_request *req) } /* RX FIFO handler (runs in interrupt context) */ -static void hc_rx_handler(uint8_t *data, size_t data_size, int cs_enabled) +static void hc_rx_handler(uint8_t *data, size_t data_size, int cs_disabled) { struct ec_host_request *req = (struct ec_host_request *)rxbuf; static struct host_packet rx_packet; size_t i; - if (!cs_enabled) { + if (cs_disabled) { if (state == SPI_STATE_PROCESSING) { /* * A task is preparing a response, but the master has |