dediprog: Disable 4BA modes for SF100 w/ protocol v2
It was enabled in commit a32d47f14886 (dediprog: Disable
SPI_MASTER_NO_4BA_MODES for additional devices), because
the hardware can handle it in theory. However, it never
was implemented on our side.
Change-Id: If4082d4c0ab56f544b48bc827ecee2c23bd976f2
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/168
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
diff --git a/dediprog.c b/dediprog.c
index 6b72938..da398e9 100644
--- a/dediprog.c
+++ b/dediprog.c
@@ -1521,7 +1521,7 @@
if (protocol(dp_data) < PROTOCOL_V3)
spi_master_dediprog.features &= ~SPI_MASTER_DUAL_IO;
- if ((dp_data->devicetype == DEV_SF100) ||
+ if ((dp_data->devicetype == DEV_SF100 && protocol(dp_data) == PROTOCOL_V1) ||
(dp_data->devicetype == DEV_SF600 && protocol(dp_data) == PROTOCOL_V3))
spi_master_dediprog.features &= ~SPI_MASTER_NO_4BA_MODES;