diff options
Diffstat (limited to 'common/i2c_controller.c')
-rw-r--r-- | common/i2c_controller.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/i2c_controller.c b/common/i2c_controller.c index 56c2a52f08..49a6cf0458 100644 --- a/common/i2c_controller.c +++ b/common/i2c_controller.c @@ -252,8 +252,8 @@ void i2c_lock(int port, int lock) irq_lock_key = irq_lock(); i2c_port_active_list |= 1 << port; - /* Ec cannot enter sleep if there's any i2c port active. */ - disable_sleep(SLEEP_MASK_I2C_MASTER); + /* EC cannot enter sleep if there's any i2c port active. */ + disable_sleep(SLEEP_MASK_I2C_CONTROLLER); irq_unlock(irq_lock_key); } else { @@ -262,7 +262,7 @@ void i2c_lock(int port, int lock) i2c_port_active_list &= ~BIT(port); /* Once there is no i2c port active, enable sleep bit of i2c. */ if (!i2c_port_active_list) - enable_sleep(SLEEP_MASK_I2C_MASTER); + enable_sleep(SLEEP_MASK_I2C_CONTROLLER); irq_unlock(irq_lock_key); |