Recursion in CFI driver. Is it really necessary to have.

Nicolas Pitre nico at
Fri Oct 12 10:26:26 EDT 2007

On Fri, 12 Oct 2007, Alexey Korolev wrote:

> Hi,
> We encountered some problems with CFI driver (cfi_cmdset_0001.c).
> Investigation showed that it is rather possible that the issues are related to
> recursion call of get_chip function. I am just wondering if it really needed
> to have the recursion in CFI drivers. 

For Sibley it is.

> From point of Flash commands the maximum
> necessary depth of recursive calls should be 1. (To handle suspend operatons).

Recursion should happen 1) only on Sibley, and 2) only when concurrent 
writing and/or erasing happens.

In that context, suspend happens only for erase.

> What do you think of little modification here?

Please be more clear about your problem first.


More information about the linux-mtd mailing list