Handling multiple NAND chips

David Woodhouse dwmw2 at infradead.org
Sun Jul 27 12:28:47 EDT 2003


On Sun, 2003-07-27 at 09:58, J.D. Bakker wrote:
> I was wondering what to do when 'chip' is larger than the maximum 
> number of NANDs. Currently I silently deselect all devices when that 
> happens.

Well, it'll never be higher than the maximum number passed into
nand_scan(). It's a should-never-happen case; I'd rather you BUG() if
you're going to check for it at all.

> [just tried to insmod my first cut of the lartcan NAND driver -- blew 
> up with 'partition extends beyond the end of device "<NULL>"' and a 
> bunch of divisions by zero. Back to the drawing board...]

Leave out the partitioning until the basic NAND code is working?

-- 
dwmw2




More information about the linux-mtd mailing list