Re: Handling multiple NAND chips

David Woodhouse
2003-07-27T16:29:54Z

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