]> git.baikalelectronics.ru Git - kernel.git/commit
spi: intel: Fix the offset to get the 64K erase opcode
authorMauro Lima <mauro.lima@eclypsium.com>
Wed, 12 Oct 2022 15:21:35 +0000 (12:21 -0300)
committerMark Brown <broonie@kernel.org>
Thu, 13 Oct 2022 12:01:37 +0000 (13:01 +0100)
commit90a5a913541918822d878c9df2d0eb4ed0711597
treeaefb6073741de020f21d9d039982cc7442659276
parenta622ac73bd4ed4ab946f3c22aa8e36b922d862f2
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>
drivers/spi/spi-intel.c