spi: mxic: Add support for direct mapping
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 27 Jan 2022 09:18:07 +0000 (10:18 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 10 Feb 2022 08:32:30 +0000 (09:32 +0100)
commit33fce1d8bfa8220eb3edf5b3691a411a9191d0b1
treeabb5de6cb1004607f7e82110c0570a684ba96e0d
parentd1b64bb28907b0ae4eff6befd6a1a476fbb68424
spi: mxic: Add support for direct mapping

Implement the ->dirmap_create() and ->dirmap_read/write() hooks to
provide a fast path for read and write accesses.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Tested-by: Zhengxun Li <zhengxunli@mxic.com.tw>
Reviewed-by: Zhengxun Li <zhengxunli@mxic.com.tw>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/linux-mtd/20220127091808.1043392-13-miquel.raynal@bootlin.com
drivers/spi/spi-mxic.c