summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2013-04-10 09:00:08 -0700
committerChromeBot <chrome-bot@google.com>2013-04-11 09:15:29 -0700
commit8b3262d644003b3c9727998dc8d4b0c749450aef (patch)
tree71cfc3585cb6d73ba7877072fed8a4b43fef9bb4
parentaad24aa2df9f914b56f77ef7fd3fb7118a58db88 (diff)
downloadchrome-ec-8b3262d644003b3c9727998dc8d4b0c749450aef.tar.gz
stm32: do not enable interrupts on I2C1
We don't have any interrupt handler for I2C1, so enabling of the I2C1 interrupts will just end up triggering a panic everytime the interrupt fires. By the way, I2C1 is used as master and all communications happen without using the I2C interrupt. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=spring BUG=chrome-os-partner:18499 TEST=On Spring, run EC flashing in a loop from the AP while true do flashrom --fast-verify -p internal:bus=lpc -w ec.bin flashrom --fast-verify -p internal:bus=lpc -w ec_autest_image.bin done and check that we always succeed and have no panic. Change-Id: I6b071f309218410840707380d296bdf14b10e9f5 Reviewed-on: https://gerrit.chromium.org/gerrit/47749 Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Vic Yang <victoryang@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--chip/stm32/i2c.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/chip/stm32/i2c.c b/chip/stm32/i2c.c
index e2f1a9fbd8..90fe4e2965 100644
--- a/chip/stm32/i2c.c
+++ b/chip/stm32/i2c.c
@@ -502,8 +502,6 @@ static void i2c_init(void)
i2c_init_port(I2C2);
/* Enable event and error interrupts */
- task_enable_irq(STM32_IRQ_I2C1_EV);
- task_enable_irq(STM32_IRQ_I2C1_ER);
task_enable_irq(STM32_IRQ_I2C2_EV);
task_enable_irq(STM32_IRQ_I2C2_ER);
}