Re: [U-Boot] [PATCH] fs: fat: fix bug when write size is less than a sector size

2013-07-23 Thread Josh Wu
Hi, Dear Wolfgang Denk On 7/19/2013 7:20 PM, Wolfgang Denk wrote: Dear Josh Wu, In message <51e90a3d.6000...@atmel.com> you wrote: Why would this be needed? The case of a partial write is covered further down below in the code, in the "if (size % mydata->sect_size)" part... The call of disk_

Re: [U-Boot] [PATCH] fs: fat: fix bug when write size is less than a sector size

2013-07-19 Thread Wolfgang Denk
Dear Josh Wu, In message <51e90a3d.6000...@atmel.com> you wrote: > > > Why would this be needed? The case of a partial write is covered > > further down below in the code, in the "if (size % mydata->sect_size)" > > part... > > The call of disk_write() will pass the sector size as 0. That will c

Re: [U-Boot] [PATCH] fs: fat: fix bug when write size is less than a sector size

2013-07-19 Thread Josh Wu
Dear Wolfgang Denk, Thank you for the quick reply. On 7/18/2013 4:24 PM, Wolfgang Denk wrote: Dear Josh Wu, In message <1374134870-10154-1-git-send-email-josh...@atmel.com> you wrote: Tested in at91sam9x5ek and sama5d3x-ek in mmc fat. Signed-off-by: Josh Wu --- When I debugging this issue,

Re: [U-Boot] [PATCH] fs: fat: fix bug when write size is less than a sector size

2013-07-18 Thread Wolfgang Denk
Dear Josh Wu, In message <1374134870-10154-1-git-send-email-josh...@atmel.com> you wrote: > Tested in at91sam9x5ek and sama5d3x-ek in mmc fat. > > Signed-off-by: Josh Wu > --- > When I debugging this issue, I also find the thread talking about this: > http://thread.gmane.org/gmane.comp.boot-lo

[U-Boot] [PATCH] fs: fat: fix bug when write size is less than a sector size

2013-07-18 Thread Josh Wu
Tested in at91sam9x5ek and sama5d3x-ek in mmc fat. Signed-off-by: Josh Wu --- When I debugging this issue, I also find the thread talking about this: http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/158698 But finally no patch is send for this bug. So I send this and cc all the people in