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 <mauro.lima@eclypsium.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Link: https://lore.kernel.org/r/20221012152135.28353-1-mauro.lima@eclypsium.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 5302e1f commit 6a43cd0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)