diff options
author | Matt DeVillier <matt.devillier@gmail.com> | 2022-04-11 17:10:09 -0500 |
---|---|---|
committer | Paul Fagerburg <pfagerburg@chromium.org> | 2022-05-31 13:43:09 +0000 |
commit | 57097130d5e4880e39ce8f63eba6f11d7c51e94c (patch) | |
tree | d5c7f83ce9df41579c2adbe2dcaa0175342f4ed4 /src/drivers/pc80 | |
parent | 1017a8fc5f60e6d819d9f3a165c1d4aef766cda0 (diff) |
drivers/i2c/dw_i2c: Adjust to handle 0-byte transfers
0-byte writes can be used as a way to probe/check presence of an i2c
device, so adjust _dw_i2c_transfer() to immediately set the STOP bit
and raise logger level for TX abort messages when the segment length
is zero. Adjust dw_i2c_transfer() to allow zero-segment-length
messages to be passed thru to _dw_i2c_transfer().
Tested as part of entire i2c-detect patch train.
Change-Id: I518e849f4c476c264a1464886b1853af66c0b29d
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63561
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@tutanota.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/drivers/pc80')
0 files changed, 0 insertions, 0 deletions