summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
Diffstat (limited to 'chip')
-rw-r--r--chip/stm32/i2c-stm32l.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/chip/stm32/i2c-stm32l.c b/chip/stm32/i2c-stm32l.c
index 0892dc28e7..6f09cc340b 100644
--- a/chip/stm32/i2c-stm32l.c
+++ b/chip/stm32/i2c-stm32l.c
@@ -108,7 +108,6 @@ static int send_start(int port, int slave_addr)
/* Write slave address */
STM32_I2C_DR(port) = slave_addr & 0xff;
- dump_i2c_reg(port, "wrote addr");
rv = wait_sr1(port, STM32_I2C_SR1_ADDR);
if (rv)
return rv;
@@ -116,6 +115,8 @@ static int send_start(int port, int slave_addr)
/* Read SR2 to clear ADDR bit */
rv = STM32_I2C_SR2(port);
+ dump_i2c_reg(port, "wrote addr");
+
return EC_SUCCESS;
}