linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] spi: intel: Fix the offset to get the 64K erase opcode
@ 2022-10-12 15:21 Mauro Lima
  2022-10-13  8:41 ` Mika Westerberg
  2022-10-13 13:41 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Mauro Lima @ 2022-10-12 15:21 UTC (permalink / raw)
  To: broonie; +Cc: mika.westerberg, linux-spi, linux-kernel, Mauro Lima

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>
---
 drivers/spi/spi-intel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-intel.c b/drivers/spi/spi-intel.c
index 55f4ee2db002..605acb1bf4b0 100644
--- a/drivers/spi/spi-intel.c
+++ b/drivers/spi/spi-intel.c
@@ -114,7 +114,7 @@
 #define ERASE_OPCODE_SHIFT		8
 #define ERASE_OPCODE_MASK		(0xff << ERASE_OPCODE_SHIFT)
 #define ERASE_64K_OPCODE_SHIFT		16
-#define ERASE_64K_OPCODE_MASK		(0xff << ERASE_OPCODE_SHIFT)
+#define ERASE_64K_OPCODE_MASK		(0xff << ERASE_64K_OPCODE_SHIFT)
 
 /* Flash descriptor fields */
 #define FLVALSIG_MAGIC			0x0ff0a55a
-- 
2.34.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] spi: intel: Fix the offset to get the 64K erase opcode
  2022-10-12 15:21 [PATCH] spi: intel: Fix the offset to get the 64K erase opcode Mauro Lima
@ 2022-10-13  8:41 ` Mika Westerberg
  2022-10-13 13:41 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mika Westerberg @ 2022-10-13  8:41 UTC (permalink / raw)
  To: Mauro Lima; +Cc: broonie, linux-spi, linux-kernel

On Wed, Oct 12, 2022 at 12:21:35PM -0300, Mauro Lima wrote:
> 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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] spi: intel: Fix the offset to get the 64K erase opcode
  2022-10-12 15:21 [PATCH] spi: intel: Fix the offset to get the 64K erase opcode Mauro Lima
  2022-10-13  8:41 ` Mika Westerberg
@ 2022-10-13 13:41 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2022-10-13 13:41 UTC (permalink / raw)
  To: Mauro Lima; +Cc: linux-kernel, mika.westerberg, linux-spi

On Wed, 12 Oct 2022 12:21:35 -0300, Mauro Lima wrote:
> 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.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/1] spi: intel: Fix the offset to get the 64K erase opcode
      commit: 6a43cd02ddbc597dc9a1f82c1e433f871a2f6f06

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-13 13:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-12 15:21 [PATCH] spi: intel: Fix the offset to get the 64K erase opcode Mauro Lima
2022-10-13  8:41 ` Mika Westerberg
2022-10-13 13:41 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).