summaryrefslogtreecommitdiff
path: root/board/ryu/board.h
diff options
context:
space:
mode:
authorMulin Chao <mlchao@nuvoton.com>2017-01-24 16:38:54 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-01-26 01:45:44 -0800
commit45817826e17528782d65f7571b1224ef99f67faa (patch)
tree2006839aa64cfcc84967114700a5baaf6557be59 /board/ryu/board.h
parentc7a7f1542e13b8be6d800ef84a14478e3724cd05 (diff)
downloadchrome-ec-45817826e17528782d65f7571b1224ef99f67faa.tar.gz
npcx: i2c: Fixed bug ec returns error during reading last byte.
If common layer called i2c_xfer() with only one byte read length and the flag is I2C_XFER_STOP, the npcx's i2c driver will return error directly. The reason is once ec read last byte of previous transaction, hardware will release SCL and i2c slave start to send following byte. Ec might not have chance to generate NACK in time. A additional dummy byte is necessary to make sure ec generate NACK before STOP condition. BRANCH=none BUG=chrome-os-partner:60266 TEST=make BOARD=pyro; test battery command on pyro with CONFIG_CRC8 and CONFIG_SMBUS. Change-Id: I372ff494b49656cbfbd4044b99b00b13daf0b741 Signed-off-by: Mulin Chao <mlchao@nuvoton.com> Reviewed-on: https://chromium-review.googlesource.com/430569 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/ryu/board.h')
0 files changed, 0 insertions, 0 deletions