summaryrefslogtreecommitdiffstats
path: root/sfdp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sfdp.c')
-rw-r--r--sfdp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sfdp.c b/sfdp.c
index 39d59e0..708b66b 100644
--- a/sfdp.c
+++ b/sfdp.c
@@ -176,10 +176,12 @@ static int sfdp_fill_flash(struct flashctx *flash, uint8_t *buf, uint16_t len)
flash->feature_bits = FEATURE_WRSR_EWSR;
msg_cdbg2("EWSR (0x50).\n");
}
- } else
+ } else {
msg_cdbg2("non-volatile and the standard does not allow "
"vendors to tell us whether EWSR/WREN is needed for "
"status register writes - assuming EWSR.\n");
+ flash->feature_bits = FEATURE_WRSR_EWSR;
+ }
msg_cdbg2(" Write chunk size is ");
if (tmp32 & (1 << 2)) {
OpenPOWER on IntegriCloud