diff options
author | Nico Huber <nico.h@gmx.de> | 2017-04-22 00:13:15 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2019-06-21 12:00:34 +0000 |
commit | 504215b9f68e26938eea75afcbc22bdf389af991 (patch) | |
tree | 85f3be7cd8fb2512a2eca63eb2ac3f3cf2456ce9 /spi25.c | |
parent | 477e1693c830d3246c4fd7caae8a2f2b8e9f49c1 (diff) | |
download | flashrom-504215b9f68e26938eea75afcbc22bdf389af991.tar.gz flashrom-504215b9f68e26938eea75afcbc22bdf389af991.tar.bz2 flashrom-504215b9f68e26938eea75afcbc22bdf389af991.zip |
spi25: Fix layering violation in default_spi_write_aai()
Change-Id: I8aa3e2992f64906edc669060936f9522d32637fb
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/33649
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'spi25.c')
-rw-r--r-- | spi25.c | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -743,20 +743,6 @@ int default_spi_write_aai(struct flashctx *flash, const uint8_t *buf, unsigned i JEDEC_AAI_WORD_PROGRAM, }; - switch (flash->mst->spi.type) { -#if CONFIG_INTERNAL == 1 -#if defined(__i386__) || defined(__x86_64__) - case SPI_CONTROLLER_IT87XX: - case SPI_CONTROLLER_WBSIO: - msg_perr("%s: impossible with this SPI controller," - " degrading to byte program\n", __func__); - return spi_chip_write_1(flash, buf, start, len); -#endif -#endif - default: - break; - } - /* The even start address and even length requirements can be either * honored outside this function, or we can call spi_byte_program * for the first and/or last byte and use AAI for the rest. |