OSDN Git Service

i2c: pm_smbus: Make the I2C block read command read-only
authorCorey Minyard <cminyard@mvista.com>
Mon, 20 Aug 2018 20:26:03 +0000 (15:26 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Aug 2018 16:46:25 +0000 (18:46 +0200)
commit00bdfeab1584e68bad76034e4ffc33595533fe7d
tree04ef73c77099ee4b3e74d0a638e795a0d29e3b19
parent4b615be540d8566f4b981245b4d5401163c57ced
i2c: pm_smbus: Make the I2C block read command read-only

It did have write capability, but the manual says the behavior
with write enabled is undefined.  So just set an error in this
case.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1534796770-10295-4-git-send-email-minyard@acm.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i2c/pm_smbus.c