summaryrefslogtreecommitdiff
path: root/chip/g/i2cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/g/i2cs.c')
-rw-r--r--chip/g/i2cs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/chip/g/i2cs.c b/chip/g/i2cs.c
index 77c451079f..5e45ec0ee8 100644
--- a/chip/g/i2cs.c
+++ b/chip/g/i2cs.c
@@ -122,6 +122,9 @@ static void _i2cs_write_complete_int(void)
/* Reset the IRQ condition. */
GWRITE_FIELD(I2CS, INT_STATE, INTR_WRITE_COMPLETE, 1);
+ /* We're receiving some bytes, so don't sleep */
+ disable_sleep(SLEEP_MASK_I2C_SLAVE);
+
if (write_complete_handler_) {
uint16_t bytes_written;
uint16_t bytes_processed;