Commit af5084af authored by Mika Westerberg's avatar Mika Westerberg Committed by sanglipeng
Browse files

spi: intel: Use correct mask for flash and protected regions

stable inclusion
from stable-v5.10.156
commit 65ac4d1807d2dd4a77833902b1d4c2e73edf7d37
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=65ac4d1807d2dd4a77833902b1d4c2e73edf7d37



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

[ Upstream commit 92a66cbf ]

The flash and protected region mask is actually 0x7fff (30:16 and 14:0)
and not 0x3fff so fix this accordingly. While there use GENMASK() instead.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Link: https://lore.kernel.org/r/20221025062800.22357-1-mika.westerberg@linux.intel.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 5a0d872c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment