]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 18 Jun 2025 09:18:45 +0000 (11:18 +0200)
commitdba90f5a79c13936de4273a19e67908a0c296afe
treed95ce6c65b5a04984da54c1a645f0b3cd0b9835f
parent29384bbb1a2a5926f97b8cbe469081e7a1770dea
mtd: spinand: winbond: Prevent unsupported frequencies on dual/quad I/O variants

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>
drivers/mtd/nand/spi/winbond.c
include/linux/mtd/spinand.h