mtd: spi-nor: spansion: Make RD_ANY_REG_OP macro take number of dummy bytes
authorTakahiro Kuwano <Takahiro.Kuwano@infineon.com>
Thu, 2 Mar 2023 07:35:06 +0000 (16:35 +0900)
committerTudor Ambarus <tudor.ambarus@linaro.org>
Fri, 17 Mar 2023 09:11:03 +0000 (11:11 +0200)
commitd628783c46d3c317deb0671ceb986be358fbaf69
tree4f95af9b4c8e104a9408ad1da37d37ee3219d2aa
parenteeac8ede17557680855031c6f305ece2378af326
mtd: spi-nor: spansion: Make RD_ANY_REG_OP macro take number of dummy bytes

Currently Read Any Register op is used to read volatile registers without
any dummy cycles, but the op requires dummy cycles depending on register
type (volatiler or non-volatile), device family, and device configuration.
Add 'ndummy' argument to RD_ANY_REG_OP macro to support other use cases.

Suggested-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Link: https://lore.kernel.org/r/03756e9e3ac41d2016a71d2afb702398dd0b19ed.1677557525.git.Takahiro.Kuwano@infineon.com
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
drivers/mtd/spi-nor/spansion.c