i2c: designware: Add SMBUS quick command support
authorPhil Elwell <phil@raspberrypi.com>
Fri, 4 Dec 2020 15:20:36 +0000 (15:20 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:34:47 +0000 (11:34 +0000)
commit1d619002c0037189e4b88a089a05dca083b00ac7
tree0f8134523cb2d38fbe0ded4263af342fd015aee1
parente8c73772d43d53d1548ff2c667122fa199873d88
i2c: designware: Add SMBUS quick command support

The SMBUS emulation code turns an SMBUS quick command into a zero-
length read. This controller can't do zero length accesses, but it
can do quick commands, so reverse the emulation. The alternative
would be to properly implement the SMBUS support but that is a lot
more work, and unnecessary just to get i2cdetect working.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/i2c/busses/i2c-designware-core.h
drivers/i2c/busses/i2c-designware-master.c