Skip to content

Commit

Permalink
platform/chrome: cros_ec_spi: Wait for USECS, not NSECS
Browse files Browse the repository at this point in the history
The use of `delay_usecs` in terminate_request() was replaced with the new
`delay` struct used by the SPI subsystem, however the unit was
set to SPI_DELAY_UNIT_NSECS instead of SPI_DELAY_UNIT_USECS. This fixes that.

Fixes: 7d3ca50 ("platform/chrome: cros_ec_spi: Use new structure for SPI transfer delays")
Signed-off-by: Benson Leung <[email protected]>
  • Loading branch information
bleungatchromium committed Apr 7, 2020
1 parent 317a0eb commit a463877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/chrome/cros_ec_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ static int terminate_request(struct cros_ec_device *ec_dev)
spi_message_init(&msg);
memset(&trans, 0, sizeof(trans));
trans.delay.value = ec_spi->end_of_msg_delay;
trans.delay.unit = SPI_DELAY_UNIT_NSECS;
trans.delay.unit = SPI_DELAY_UNIT_USECS;
spi_message_add_tail(&trans, &msg);

ret = spi_sync_locked(ec_spi->spi, &msg);
Expand Down

0 comments on commit a463877

Please sign in to comment.