Bug in nand_select_chip?

David Woodhouse dwmw2 at infradead.org
Wed Mar 17 10:54:47 EST 2004


On Wed, 2004-03-17 at 16:44 +0100, llandre wrote:
> The old function, with chip==0, sets the nCE pin low:

> The new function, with chip==0, sets the nCE pin high:

> 1) Why did the code change this way?

To handle multiple chips. More correctly, should should say
"The new function, with chip == N, sets nCE on chip #N high."

To deselect _all_ chips you use chip == -1.

All callers of nand_select_chip() were changed at the same time
though... this shouldn't cause a problem.

-- 
dwmw2




More information about the linux-mtd mailing list