diff options
author | Corey Minyard | 2018-08-20 22:26:08 +0200 |
---|---|---|
committer | Paolo Bonzini | 2018-08-23 18:46:25 +0200 |
commit | 45726b6e2c6075826cacd87f7bdde372589b7cf3 (patch) | |
tree | ad993f6dc9b665b5644cbb992ee35acf090b24a9 /hw/isa/vt82c686.c | |
parent | i2c: pm_smbus: Don't delay host status register busy bit when interrupts are ... (diff) | |
download | qemu-45726b6e2c6075826cacd87f7bdde372589b7cf3.tar.gz qemu-45726b6e2c6075826cacd87f7bdde372589b7cf3.tar.xz qemu-45726b6e2c6075826cacd87f7bdde372589b7cf3.zip |
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>
Diffstat (limited to 'hw/isa/vt82c686.c')
-rw-r--r-- | hw/isa/vt82c686.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/isa/vt82c686.c b/hw/isa/vt82c686.c index cff1946232..7302f6d74b 100644 --- a/hw/isa/vt82c686.c +++ b/hw/isa/vt82c686.c @@ -370,7 +370,7 @@ static void vt82c686b_pm_realize(PCIDevice *dev, Error **errp) pci_conf[0x90] = s->smb_io_base | 1; pci_conf[0x91] = s->smb_io_base >> 8; pci_conf[0xd2] = 0x90; - pm_smbus_init(&s->dev.qdev, &s->smb); + pm_smbus_init(&s->dev.qdev, &s->smb, false); memory_region_add_subregion(get_system_io(), s->smb_io_base, &s->smb.io); apm_init(dev, &s->apm, NULL, s); |