spi: intel: Use correct mask for flash and protected regions
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 25 Oct 2022 06:28:00 +0000 (09:28 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 1 Nov 2022 18:28:11 +0000 (18:28 +0000)
commit92a66cbf6b30eda5719fbdfb24cd15fb341bba32
treeff36e55eb5c2c86ea4eccffe3f376958d61aa5c5
parentcf82d0ecb84e8ef9958721193f901609b408655b
spi: intel: Use correct mask for flash and protected regions

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: Mika Westerberg <mika.westerberg@linux.intel.com>
Link: https://lore.kernel.org/r/20221025062800.22357-1-mika.westerberg@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-intel.c