Skip to content

Commit 6a43cd0

Browse files
lemonateclypsiumbroonie
authored andcommitted
spi: intel: Fix the offset to get the 64K erase opcode
According to documentation, the 64K erase opcode is located in VSCC range [16:23] instead of [8:15]. Use the proper value to shift the mask over the correct range. Signed-off-by: Mauro Lima <[email protected]> Reviewed-by: Mika Westerberg <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 5302e1f commit 6a43cd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi-intel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
#define ERASE_OPCODE_SHIFT 8
115115
#define ERASE_OPCODE_MASK (0xff << ERASE_OPCODE_SHIFT)
116116
#define ERASE_64K_OPCODE_SHIFT 16
117-
#define ERASE_64K_OPCODE_MASK (0xff << ERASE_OPCODE_SHIFT)
117+
#define ERASE_64K_OPCODE_MASK (0xff << ERASE_64K_OPCODE_SHIFT)
118118

119119
/* Flash descriptor fields */
120120
#define FLVALSIG_MAGIC 0x0ff0a55a

0 commit comments

Comments
 (0)