[PATCH] support ONFI multi lun NAND

Artem Bityutskiy dedekind1 at gmail.com
Tue Mar 20 08:48:45 EDT 2012


On Mon, 2012-03-19 at 15:35 +0100, Matthieu CASTET wrote:
> -	chip->chipsize = (uint64_t)le32_to_cpu(p->blocks_per_lun) * mtd->erasesize;
> +	chip->chipsize = (uint64_t)le32_to_cpu(p->blocks_per_lun) * mtd->erasesize
> +					* p->lun_count;

I've split this long line on 2 shorter:

+       chip->chipsize = le32_to_cpu(p->blocks_per_lun);
+       chip->chipsize *= (uint64_t)mtd->erasesize * p->lun_count;

And pushed to l2-mtd.git, thanks!

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120320/c4c64429/attachment-0001.sig>


More information about the linux-mtd mailing list