]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Dec 2022 12:59:25 +0000 (13:59 +0100)
commit0a1e1b8f672453159562dd180849e606d1f1f129
tree416ff22fd7850846bdf9e07f5f353d128facb454
parentccb1c7357a334d942abca51929a2f0e61f448f5a
spi: intel: Fix the offset to get the 64K erase opcode

[ Upstream commit 6a43cd02ddbc597dc9a1f82c1e433f871a2f6f06 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 5e61dffb16dcbb31663de0a9a6010bd2b581406d)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
drivers/mtd/spi-nor/controllers/intel-spi.c