Re: [PATCH v5 10/23] mtd: nand: denali: rework interrupt handling

From: Masahiro Yamada
Date: Thu Jun 08 2017 - 13:30:23 EST


2017-06-09 2:26 GMT+09:00 Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>:

> ->dev_ready() is optional, but we may end up with waiting more than needed.
>
> case NAND_CMD_RESET:
> if (chip->dev_ready)
> break;
> udelay(chip->chip_delay);
>
>
> chip->chip_delay is probably set large enough, so this is not optimal.

I misunderstood the code.

The following line will be the most of the part of delay.

nand_wait_status_ready(mtd, 250);


--
Best Regards
Masahiro Yamada