Miquel Raynal
8fd507bb42
mtd: rawnand: mxic: Stop using nand_release()
...
This helper is not very useful and very often people get confused:
they use nand_release() instead of nand_cleanup().
Let's stop using nand_release() by calling mtd_device_unregister() and
nand_cleanup() directly.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com >
Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-31-miquel.raynal@bootlin.com
2020-05-31 10:53:34 +02:00
Boris Brezillon
ce446b4b2d
mtd: rawnand: Take check_only into account
...
->exec_op() is passed a check_only argument that encodes when the
controller should just check whether the operation is supported or not
without executing it. Some controllers simply ignore this arguments,
others don't but keep modifying some of the registers before returning.
Let's fix all those drivers.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com >
Link: https://lore.kernel.org/linux-mtd/20200418194217.1016060-1-boris.brezillon@collabora.com
2020-05-10 21:16:01 +02:00
YueHaibing
21777bc904
mtd: rawnand: mxic: Remove dev_err() on platform_get_irq() failure
...
platform_get_irq() will call dev_err() itself on failure,
so there is no need for the driver to also do this.
This is detected by coccinelle.
Signed-off-by: YueHaibing <yuehaibing@huawei.com >
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com >
2019-10-29 14:40:42 +01:00
Mason Yang
738b0ca55f
mtd: rawnand: Add Macronix raw NAND controller driver
...
Add a driver for Macronix raw NAND controller.
Signed-off-by: Mason Yang <masonccyang@mxic.com.tw >
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com >
2019-08-26 09:25:41 +02:00