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

Masahiro Yamada
2017-06-08T17:31:11Z

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

> ->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