Re: [PATCH] mtd: mtdraw: Fix cdev size calculation for large NANDs

2020-05-04 Thread Sascha Hauer
On Mon, May 04, 2020 at 03:21:48PM +0200, Yunus Bas wrote: > From: Stefan Riedmueller > > Raw size for large NAND devices (> 4 GB) can exceed 32 bits, so we need > 64 bit types as factors. Both factors are of 32 bit types, as such is > the return value. At least one factor needs to be 64 bit type

[PATCH] mtd: mtdraw: Fix cdev size calculation for large NANDs

2020-05-04 Thread Yunus Bas
From: Stefan Riedmueller Raw size for large NAND devices (> 4 GB) can exceed 32 bits, so we need 64 bit types as factors. Both factors are of 32 bit types, as such is the return value. At least one factor needs to be 64 bit type when calculating the size. Signed-off-by: Stefan Riedmueller Signe