coreboot/src
Arthur Heymans 1b04aa2591 sb/intel/common: Fix SMBus block commands
Clear LAST_BYTE flag at beginning of block commands.

For reads, slave device determines in the message format how
many bytes it has to transfer out, host firmware only dictates
the maximum buffer length. Return SMBUS_ERROR if only
partial message was received.

For writes, return SMBUS_ERROR if length > 32.

For writes, fix off-by-one error reading memory one
byte past the buffer end.

Change-Id: If9e5d24255a0a03039b52d2863bc278d0eefc311
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/20879
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
2017-08-20 20:45:00 +00:00
..
acpi src/acpi: Add guards on all header files 2017-08-01 23:04:27 +00:00
arch i82801dx/gx/ix/jx: Add low-memory backup for S3 path 2017-08-19 15:31:51 +00:00
commonlib Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
console console: Add weak method to notify about death 2017-08-14 11:01:41 +00:00
cpu arch/x86: Sanity checking on HAVE_SMI_HANDLER 2017-08-19 15:34:48 +00:00
device device/smbus: Reuse I2C bus operations where applicable 2017-08-18 15:34:15 +00:00
drivers drivers/i2c/rx6110sa: Drop I2C interface arbitration 2017-08-18 15:33:58 +00:00
ec include/device: Split i2c.h into three 2017-08-18 15:33:29 +00:00
include arch/x86: Clean up CONFIG_SMP and MAX_CPUS test 2017-08-19 15:30:51 +00:00
lib lib/cbmem: provide optional cbmem top initialization hook 2017-08-04 04:29:57 +00:00
mainboard mb/gigabyte/ga-b75m-d3v: add libgfxinit support 2017-08-20 12:33:54 +00:00
northbridge nb/intel/x4x: Fix booting with FSB800 DDR667 combination 2017-08-20 13:36:29 +00:00
soc arch/x86: Sanity checking on HAVE_SMI_HANDLER 2017-08-19 15:34:48 +00:00
southbridge sb/intel/common: Fix SMBus block commands 2017-08-20 20:45:00 +00:00
superio superio/winbond/w83977tf: Drop early_serial.c 2017-08-15 21:03:34 +00:00
vboot vboot: Remove get_sw_write_protect_state callback 2017-07-18 23:24:01 +00:00
vendorcode AGESA f15tn: Fix MemContext buffer parser for AmdInitPost() 2017-08-16 22:06:57 +00:00
Kconfig Add support for Undefined Behavior Sanitizer 2017-06-14 19:56:59 +02:00