Skip to content

Commit a463877

Browse files
platform/chrome: cros_ec_spi: Wait for USECS, not NSECS
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]>
1 parent 317a0eb commit a463877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/platform/chrome/cros_ec_spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static int terminate_request(struct cros_ec_device *ec_dev)
128128
spi_message_init(&msg);
129129
memset(&trans, 0, sizeof(trans));
130130
trans.delay.value = ec_spi->end_of_msg_delay;
131-
trans.delay.unit = SPI_DELAY_UNIT_NSECS;
131+
trans.delay.unit = SPI_DELAY_UNIT_USECS;
132132
spi_message_add_tail(&trans, &msg);
133133

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

0 commit comments

Comments
 (0)