From 1d0a7f8713902f68e9aab35e1a0284ff7b9b75cd Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Thu, 15 Jan 2015 15:08:42 -0800 Subject: [PATCH] mec1322: Fix I2C interrupt bug On boot, we shouldn't enabled I2C interrupt. The interrupt is only enabled when we are waiting for data or transfer completion. BRANCH=None BUG=chrome-os-partner:35308 TEST=Boot on Glower and do i2cscan. Change-Id: I534302ac057f2592f52d80d85cee66c35c6121d2 Signed-off-by: Vic Yang Reviewed-on: https://chromium-review.googlesource.com/241113 Tested-by: Vic Yang Reviewed-by: Randall Spangler Commit-Queue: Vic Yang --- chip/mec1322/i2c.c | 1 - 1 file changed, 1 deletion(-) diff --git a/chip/mec1322/i2c.c b/chip/mec1322/i2c.c index 038d4763d9..372ed20130 100644 --- a/chip/mec1322/i2c.c +++ b/chip/mec1322/i2c.c @@ -88,7 +88,6 @@ static void configure_port(int port, int kbps) MEC1322_I2C_CONFIG(port) |= 1 << 29; /* ENIDI */ MEC1322_INT_ENABLE(12) |= (1 << port); MEC1322_INT_BLK_EN |= 1 << 12; - task_enable_irq(MEC1322_IRQ_I2C_0 + port); } static void reset_port(int port)