diff options
author | Arseniy Krasnov <AVKrasnov@sberdevices.ru> | 2023-06-08 07:47:28 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2023-06-09 17:21:15 +0200 |
commit | c17a90a46a712b78578dd7156380fdd515a2af9d (patch) | |
tree | 2c7f9d695134501cf07d2d9a22e011ebaec57b1f /drivers/hsi | |
parent | 262bc0096b7c9122f5f815f094b068a1496a20f6 (diff) | |
download | linux-stable-c17a90a46a712b78578dd7156380fdd515a2af9d.tar.gz linux-stable-c17a90a46a712b78578dd7156380fdd515a2af9d.tar.bz2 linux-stable-c17a90a46a712b78578dd7156380fdd515a2af9d.zip |
mtd: rawnand: meson: waiting w/o wired ready/busy pin
If there is no wired ready/busy pin, classic way to wait for command
completion is to use function 'nand_soft_waitrdy()'. Meson NAND has
special command which allows to wait for NAND_STATUS_READY bit without
reading status in a software loop (as 'nand_soft_waitrdy()' does). To
use it send this command along with NAND_CMD_STATUS, then wait for an
interrupt, and after interrupt send NAND_CMD_READ0. So this feature
allows to use interrupt driven waiting without wired ready/busy pin.
Suggested-by: Liang Yang <liang.yang@amlogic.com>
Signed-off-by: Arseniy Krasnov <AVKrasnov@sberdevices.ru>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230608044728.1328506-3-AVKrasnov@sberdevices.ru
Diffstat (limited to 'drivers/hsi')
0 files changed, 0 insertions, 0 deletions