Re: [PATCH v2] mtd: Fix mtdblock for >4GB MTD devices

2017-03-12 Thread Marek Vasut
On 03/01/2017 05:14 AM, lepton wrote: > If checking some calling side, the len is from cache_size of struct > mtdblk_dev, it's defined as unsigned int now. So it's not 64bit yet. Ummm ... since you're top-posting, I have no clue which part do you refer to , sorry. > BTW, seems it's just block

Re: [PATCH v2] mtd: Fix mtdblock for >4GB MTD devices

2017-03-12 Thread Marek Vasut
On 03/01/2017 05:14 AM, lepton wrote: > If checking some calling side, the len is from cache_size of struct > mtdblk_dev, it's defined as unsigned int now. So it's not 64bit yet. Ummm ... since you're top-posting, I have no clue which part do you refer to , sorry. > BTW, seems it's just block

Re: [PATCH v2] mtd: Fix mtdblock for >4GB MTD devices

2017-03-01 Thread lepton
If checking some calling side, the len is from cache_size of struct mtdblk_dev, it's defined as unsigned int now. So it's not 64bit yet. BTW, seems it's just block size (512) at some other calling side. (Sorry for previous same content email, just found out it's html format and rejected by mail

Re: [PATCH v2] mtd: Fix mtdblock for >4GB MTD devices

2017-03-01 Thread lepton
If checking some calling side, the len is from cache_size of struct mtdblk_dev, it's defined as unsigned int now. So it's not 64bit yet. BTW, seems it's just block size (512) at some other calling side. (Sorry for previous same content email, just found out it's html format and rejected by mail

Re: [PATCH v2] mtd: Fix mtdblock for >4GB MTD devices

2017-02-27 Thread Marek Vasut
On 02/22/2017 03:15 AM, Lepton Wu wrote: > Change to use loff_t instead of unsigned long in some functions > to make sure mtdblock can handle offset bigger than 4G in 32 bits mode. > > Signed-off-by: Lepton Wu > --- > Changes in v2: > - Make the commit message more clearer

Re: [PATCH v2] mtd: Fix mtdblock for >4GB MTD devices

2017-02-27 Thread Marek Vasut
On 02/22/2017 03:15 AM, Lepton Wu wrote: > Change to use loff_t instead of unsigned long in some functions > to make sure mtdblock can handle offset bigger than 4G in 32 bits mode. > > Signed-off-by: Lepton Wu > --- > Changes in v2: > - Make the commit message more clearer and fix some format

[PATCH v2] mtd: Fix mtdblock for >4GB MTD devices

2017-02-21 Thread Lepton Wu
Change to use loff_t instead of unsigned long in some functions to make sure mtdblock can handle offset bigger than 4G in 32 bits mode. Signed-off-by: Lepton Wu --- Changes in v2: - Make the commit message more clearer and fix some format issues. drivers/mtd/mtdblock.c

[PATCH v2] mtd: Fix mtdblock for >4GB MTD devices

2017-02-21 Thread Lepton Wu
Change to use loff_t instead of unsigned long in some functions to make sure mtdblock can handle offset bigger than 4G in 32 bits mode. Signed-off-by: Lepton Wu --- Changes in v2: - Make the commit message more clearer and fix some format issues. drivers/mtd/mtdblock.c| 35