i2c:smbus: Correct the working of quick commands
commit905cec6d11088e585fcedb3fd606510959ee50ff
authorCorey Minyard <cminyard@mvista.com>
Fri, 30 Nov 2018 19:20:12 +0000 (30 13:20 -0600)
committerCorey Minyard <cminyard@mvista.com>
Thu, 28 Feb 2019 03:06:08 +0000 (27 21:06 -0600)
tree72a23061b2a05e7fa89068afe89847c202ca6244
parentbc15cde0c4acc9128f26ff78f99ce34a59200d5e
i2c:smbus: Correct the working of quick commands

The logic of handling quick SMBus commands was wrong.  If you get a
finish event with no data, that's a quick command.

Document the quick command while we are at it.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
hw/i2c/smbus_slave.c
include/hw/i2c/smbus_slave.h