[Qemu-devel] [PATCH 1/3] smbus: fix writes

2014-06-09 Thread Marc MarĂ­
From: Paolo Bonzini SMBus protocol sends offset and length before the actual data that is transferred. So we need to skip two bytes rather than one. Signed-off-by: Paolo Bonzini --- hw/i2c/smbus.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/i2c/smbus.c b/h

[Qemu-devel] [PATCH 1/3] smbus: fix writes

2012-02-04 Thread Paolo Bonzini
SMBus protocol sends offset and length before the actual data that is transferred. So we need to skip two bytes rather than one. Signed-off-by: Paolo Bonzini --- hw/smbus.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/smbus.c b/hw/smbus.c index 77626f3..4ff2