i2c: pm_smbus: Add the ability to force block transfer enable
commit45726b6e2c6075826cacd87f7bdde372589b7cf3
authorCorey Minyard <cminyard@mvista.com>
Mon, 20 Aug 2018 20:26:08 +0000 (20 15:26 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Aug 2018 16:46:25 +0000 (23 18:46 +0200)
treead993f6dc9b665b5644cbb992ee35acf090b24a9
parent12bd93c150239020803b1ae08af819cd38e55360
i2c: pm_smbus: Add the ability to force block transfer enable

The PIIX4 hardware has block transfer buffer always enabled in
the hardware, but the i801 does not.  Add a parameter to pm_smbus_init
to force on the block transfer so the PIIX4 handler can enable this
by default, as it was disabled by default before.

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-9-git-send-email-minyard@acm.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/acpi/piix4.c
hw/i2c/pm_smbus.c
hw/i2c/smbus_ich9.c
hw/isa/vt82c686.c
include/hw/i2c/pm_smbus.h