drivers: flash: spi_nor: fix 4byte opcodes
the check for both bit should be in the first DWORD. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
parent
a7756f20d1
commit
ba18d41804
1 changed files with 1 additions and 1 deletions
|
|
@ -1330,7 +1330,7 @@ static int spi_nor_process_sfdp(const struct device *dev)
|
|||
}
|
||||
|
||||
if (!((sys_le32_to_cpu(u2.dw[0]) & BIT(0)) &&
|
||||
(sys_le32_to_cpu(u2.dw[1]) & BIT(6)))) {
|
||||
(sys_le32_to_cpu(u2.dw[0]) & BIT(6)))) {
|
||||
LOG_ERR("4-byte addressing not supported");
|
||||
return -ENOTSUP;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue