Skip to content

Commit ba18d41

Browse files
maass-hamburgkartben
authored andcommitted
drivers: flash: spi_nor: fix 4byte opcodes
the check for both bit should be in the first DWORD. Signed-off-by: Fin Maaß <[email protected]>
1 parent a7756f2 commit ba18d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/flash/spi_nor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ static int spi_nor_process_sfdp(const struct device *dev)
13301330
}
13311331

13321332
if (!((sys_le32_to_cpu(u2.dw[0]) & BIT(0)) &&
1333-
(sys_le32_to_cpu(u2.dw[1]) & BIT(6)))) {
1333+
(sys_le32_to_cpu(u2.dw[0]) & BIT(6)))) {
13341334
LOG_ERR("4-byte addressing not supported");
13351335
return -ENOTSUP;
13361336
}

0 commit comments

Comments
 (0)