Revert "drivers/spi: Stop using a variable-length array"

This reverts commit 59626b8670.

Reason for revert: Reported to cause boot-loops. Reason unknown.

Change-Id: Id7f6211aaaf0401017176f63a17763f28d2744c8
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52424
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Angel Pons
2021-04-16 13:57:07 +00:00
committed by Nico Huber
parent 4b29c4adeb
commit df40ca9d41
2 changed files with 8 additions and 8 deletions

View File

@@ -24,8 +24,6 @@
/* Common status */
#define STATUS_WIP 0x01
#define MAX_FLASH_CMD_DATA_SIZE 256
/* Send a single-byte command to the device and read the response */
int spi_flash_cmd(const struct spi_slave *spi, u8 cmd, void *response, size_t len);