coreboot-kgpe-d16/src
Aaron Durbin 41f6690239 drivers/spi: fix flash writes at page boundaries
There was an assumption that all SPI controllers could
consume a full page of data to write. However, that
assumption doesn't hold when spi_crop_chunk() indicates
sizes smaller than page size. If the requested offset isn't
page aligned from the start then writes will fail corrupting
data since a page boundary isn't honored.

The spansion driver needed quite a bit more work to honor
the spi_crop_chunk() result. It now mimics the other
driver's code. Also, needed to add spi_crop_chunk() to
marvell/bg4cd SoC to make google/cosmos build. SPI obviously
doesn't work on that platform, but it fixes the build error.

Change-Id: I93e24a5a717adcee45a017c164bd960f4592ad50
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/17910
Tested-by: build bot (Jenkins)
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
2016-12-19 22:34:52 +01:00
..
acpi
arch ACPI S3: Signal successful boot 2016-12-18 20:38:09 +01:00
commonlib buildsystem: Drop explicit (k)config.h includes 2016-12-08 19:46:53 +01:00
console Hook up libhwbase in ramstage 2016-11-29 23:45:40 +01:00
cpu ti/beaglebone: Define arch for omap-header build 2016-12-18 22:18:37 +01:00
device drivers/intel/gma: Add textmode support with libgfxinit 2016-12-19 16:00:22 +01:00
drivers drivers/spi: fix flash writes at page boundaries 2016-12-19 22:34:52 +01:00
ec ec/ene932: correct ACPI battery data fed into ToString() 2016-12-15 23:39:04 +01:00
include smbios.h: add missing SKU field to type3 table 2016-12-15 23:43:07 +01:00
lib lib/spd_bin: Check return code & remove dead code 2016-12-14 18:58:03 +01:00
mainboard google/poppy: Add new board 2016-12-19 17:51:24 +01:00
northbridge intel/fsp_rangeley: Fix use of __SIMPLE_DEVICE__ 2016-12-18 20:52:27 +01:00
soc drivers/spi: fix flash writes at page boundaries 2016-12-19 22:34:52 +01:00
southbridge pcengines/apu2: add board support 2016-12-19 10:11:13 +01:00
superio sio/ite/it8783ef: Return (0) in ACPI _PSC methods 2016-12-13 22:49:24 +01:00
vboot lib/cbmem: allow anyone to use cbmem_possibly_online() 2016-12-15 23:11:13 +01:00
vendorcode AMD binaryPI: Promote rules.h to default include 2016-12-18 20:53:33 +01:00
Kconfig ACPI S3: Flip ACPI_HUGE_LOWMEM_BACKUP default 2016-12-11 09:12:48 +01:00