coreboot/src/soc
Furquan Shaikh 8613ba7028 UPSTREAM: spi_flash: Make a deep copy of spi_slave structure
Commit 36b81af (spi: Pass pointer to spi_slave structure in
spi_setup_slave) changes the way spi_setup_slave handles the spi_slave
structure. Instead of expecting spi controller drivers to maintain
spi_slave structure in CAR_GLOBAL/data section, caller is expected to
manage the spi_slave structure. This requires that spi_flash drivers
maintain spi_slave structure and flash probe function needs to make a
copy of the passed in spi_slave structure.

This change fixes the regression on Lenovo X230 and other mainboards.

CQ-DEPEND=CL:417081,CL:417080,CL:417958
BUG=chrome-os-partner:59832
BRANCH=None
TEST=None

Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://review.coreboot.org/17728
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Iru Cai <mytbk920423@gmail.com>

Change-Id: I0ad971eecaf3bfe301e9f95badc043193cc27cab
Reviewed-on: https://chromium-review.googlesource.com/417087
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-12-08 12:30:32 -08:00
..
broadcom/cygnus UPSTREAM: spi: Define and use spi_ctrlr structure 2016-12-08 12:30:16 -08:00
dmp/vortex86ex UPSTREAM: src/soc: Capitalize CPU, ACPI, RAM and ROM 2016-08-04 23:37:59 -07:00
imgtec/pistachio UPSTREAM: spi: Define and use spi_ctrlr structure 2016-12-08 12:30:16 -08:00
intel UPSTREAM: spi_flash: Make a deep copy of spi_slave structure 2016-12-08 12:30:32 -08:00
lowrisc/lowrisc UPSTREAM: riscv: add the lowrisc System On Chip support 2016-10-27 12:41:53 -07:00
marvell UPSTREAM: spi: Define and use spi_ctrlr structure 2016-12-08 12:30:16 -08:00
mediatek/mt8173 UPSTREAM: spi_flash: Make a deep copy of spi_slave structure 2016-12-08 12:30:32 -08:00
nvidia UPSTREAM: spi: Define and use spi_ctrlr structure 2016-12-08 12:30:16 -08:00
qualcomm UPSTREAM: spi: Define and use spi_ctrlr structure 2016-12-08 12:30:16 -08:00
rdc/r8610 rdc/r8610: Move to src/soc 2016-05-05 20:08:58 +02:00
rockchip UPSTREAM: rockchip/rk3399: display: Update edp initialization retry 2016-12-08 12:30:20 -08:00
samsung UPSTREAM: spi: Define and use spi_ctrlr structure 2016-12-08 12:30:16 -08:00
ucb/riscv UPSTREAM: soc/ucb/riscv: select BOOTBLOCK_CONSOLE 2016-08-15 18:36:13 -07:00