mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
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 <victoryang@google.com> Reviewed-on: https://chromium-review.googlesource.com/241113 Tested-by: Vic Yang <victoryang@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org> Commit-Queue: Vic Yang <victoryang@chromium.org>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
7e8567fd5e
commit
1d0a7f8713
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user