]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: spinand: winbond: Prevent unsupported frequencies on dual/quad I/O variants
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 18 Jun 2025 08:48:00 +0000 (10:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:13:43 +0000 (11:13 +0100)
commitcaa9654112d94eb47f57ae5c35b6fe8d85f5cb38
tree5dfe07ff38d622dfa4695dde546bf187516ab333
parent8995cf53e66285f62412cc031ff9fb3a34061975
mtd: spinand: winbond: Prevent unsupported frequencies on dual/quad I/O variants

[ Upstream commit dba90f5a79c13936de4273a19e67908a0c296afe ]

Dual and quad capable chips natively support dual and quad I/O variants
at up to 104MHz (1-2-2 and 1-4-4 operations). Reaching the maximum speed
of 166MHz is theoretically possible (while still unsupported in the
field) by adding a few more dummy cycles. Let's be accurate and clearly
state this limit.

Setting a maximum frequency implies adding the frequency parameter to
the macro, which is done using a variadic argument to avoid impacting
all the other drivers which already make use of this macro.

Fixes: 1ea808b4d15b ("mtd: spinand: winbond: Update the *JW chip definitions")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/nand/spi/winbond.c
include/linux/mtd/spinand.h