aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/mst_fpga.c
diff options
context:
space:
mode:
authorHang Yu <francis_yuu@stu.pku.edu.cn>2023-08-12 14:52:29 +0800
committerCédric Le Goater <clg@kaod.org>2023-09-01 11:40:04 +0200
commit961faf3ddbd8ffcdf776bbcf88af0bc97218114a (patch)
tree4b6f7254ac1374b8be880f9acf35d49b4aab9d3f /hw/misc/mst_fpga.c
parent97b8aa5ae9ff197394395eda5062ea3681e09c28 (diff)
downloadqemu-961faf3ddbd8ffcdf776bbcf88af0bc97218114a.zip
qemu-961faf3ddbd8ffcdf776bbcf88af0bc97218114a.tar.gz
qemu-961faf3ddbd8ffcdf776bbcf88af0bc97218114a.tar.bz2
hw/i2c/aspeed: Fix TXBUF transmission start position error
According to the ast2600 datasheet and the linux aspeed i2c driver, the TXBUF transmission start position should be TXBUF[0] instead of TXBUF[1],so the arg pool_start is useless,and the address is not included in TXBUF.So even if Tx Count equals zero,there is at least 1 byte data needs to be transmitted,and M_TX_CMD should not be cleared at this condition.The driver url is: https://github.com/AspeedTech-BMC/linux/blob/aspeed-master-v5.15/drivers/i2c/busses/i2c-ast2600.c Signed-off-by: Hang Yu <francis_yuu@stu.pku.edu.cn> Fixes: 6054fc73e8f4 ("aspeed/i2c: Add support for pool buffer transfers") Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'hw/misc/mst_fpga.c')
0 files changed, 0 insertions, 0 deletions