aspeed/i2c: handle LAST command under the RX command
commitd0efdc1686405c3873703a8617daba54d3fbb75f
authorCédric Le Goater <clg@kaod.org>
Fri, 2 Jun 2017 10:51:49 +0000 (2 11:51 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Jun 2017 10:51:49 +0000 (2 11:51 +0100)
tree033b6e7197d9e8ff1908b09d31bed24455126476
parentddabca757a4eb29f342f7f1d01634ccdbe0e3844
aspeed/i2c: handle LAST command under the RX command

Today, the LAST command is handled with the STOP command but this is
incorrect. Also nack the I2C bus when a LAST is issued.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-id: 1494827476-1487-3-git-send-email-clg@kaod.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/i2c/aspeed_i2c.c