]> git.proxmox.com Git - mirror_qemu.git/commit
libqos: fix omap-i2c receiving more than 4 bytes
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 18 Mar 2019 15:49:59 +0000 (16:49 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Jun 2019 12:03:01 +0000 (14:03 +0200)
commit05095ece6f726dfd2244d4ed1b7e47e35ba7a922
treea70a3c27fd2534ae58753ad652cb4aea299d614e
parente8ecb706a8a3a75ea45387a3561b6debed9cacc3
libqos: fix omap-i2c receiving more than 4 bytes

If more than 4 bytes are received, the FIFO cannot host the entire
contents of the transfer and STP will be nonzero before entering
the transfer loop.  Also, CNT will contain the number of bytes
left to be transferred instead of the total number of bytes in
the transfer.

(Reverse engineered from the omap_i2c.c source code; no available
datasheet).

This will fix ds1338-test for omap-i2c.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/libqos/i2c-omap.c