Edward O'Callaghan has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/72423 )
Change subject: dummyflasher.c: Speed up programmer ops without delay ......................................................................
dummyflasher.c: Speed up programmer ops without delay
There is no need to perform delays for the dummyflasher as there is no chipsets to settle down.
BUG=b:266014935 TEST=builds
Change-Id: I43411b6d1558d1a5da4c7508618f8a6ec6d9bf95 Signed-off-by: Edward O'Callaghan quasisec@google.com --- M dummyflasher.c 1 file changed, 22 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/23/72423/1
diff --git a/dummyflasher.c b/dummyflasher.c index 1960e92..70f4d7b 100644 --- a/dummyflasher.c +++ b/dummyflasher.c @@ -919,6 +919,10 @@ return 0; }
+static void dummy_nop_delay(const struct flashctx *flash, unsigned int usecs) +{ +} + static const struct spi_master spi_master_dummyflasher = { .map_flash_region = dummy_map, .unmap_flash_region = dummy_unmap, @@ -930,6 +934,7 @@ .read = default_spi_read, .write_256 = dummy_spi_write_256, .probe_opcode = dummy_spi_probe_opcode, + .delay = dummy_nop_delay, };
static const struct par_master par_master_dummyflasher = { @@ -943,6 +948,7 @@ .chip_writew = dummy_chip_writew, .chip_writel = dummy_chip_writel, .chip_writen = dummy_chip_writen, + .delay = dummy_nop_delay, };
static const struct opaque_master opaque_master_dummyflasher = {