Commit 76a5c770 authored by Mauro Lima's avatar Mauro Lima Committed by sanglipeng
Browse files

spi: intel: Fix the offset to get the 64K erase opcode

stable inclusion
from stable-v5.10.156
commit 0b4d650f905cf332ef74ac95a4cd2edc4817913b
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7MCG1

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=0b4d650f905cf332ef74ac95a4cd2edc4817913b



--------------------------------

[ Upstream commit 6a43cd02 ]

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: default avatarMauro Lima <mauro.lima@eclypsium.com>
Reviewed-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Link: https://lore.kernel.org/r/20221012152135.28353-1-mauro.lima@eclypsium.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 9c13eee6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment