Re: [PATCH] spi: rspi: fix the bug related to mount/remount jffs2

2017-02-14 Thread Hiep Cao Minh
Hi Geert, Sorry for the delay. Thanks for your reply. On Mon, Feb 13, 2017 at 7:50 AM, Hiep Cao Minh wrote: Sorry to bother you! No, thank you for finally make me see my wrong reasoning! qspi_transfer_in() does: while (n > 0) { len =

Re: [PATCH] spi: rspi: fix the bug related to mount/remount jffs2

2017-02-13 Thread Geert Uytterhoeven
On Mon, Feb 6, 2017 at 1:46 PM, Mark Brown wrote: > On Mon, Feb 06, 2017 at 10:02:13AM +0900, DongCV wrote: >> From: Dong >> >> This patch fixes the output warning logs and data loss when >> performing mount/umount then remount the device with jffs2

Re: [PATCH] spi: rspi: fix the bug related to mount/remount jffs2

2017-02-13 Thread Geert Uytterhoeven
Hi Hiep, On Mon, Feb 13, 2017 at 7:50 AM, Hiep Cao Minh wrote: > Sorry to bother you! No, thank you for finally make me see my wrong reasoning! >> qspi_transfer_in() does: >> >> while (n > 0) { >> len = qspi_set_receive_trigger(rspi, n); >>

Re: [PATCH] spi: rspi: fix the bug related to mount/remount jffs2

2017-02-12 Thread Hiep Cao Minh
Hi Geert, Sorry to bother you! qspi_transfer_in() does: while (n > 0) { len = qspi_set_receive_trigger(rspi, n); // len will be <= n I agree. This is len = min value of n and 32. if (len == QSPI_BUFFER_SIZE) {

Re: [PATCH] spi: rspi: fix the bug related to mount/remount jffs2

2017-02-08 Thread Geert Uytterhoeven
Hi Dong, On Tue, Feb 7, 2017 at 11:25 AM, DongCV wrote: >>> diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c >>> index 9daf500..2ee1301 100644 >>> --- a/drivers/spi/spi-rspi.c >>> +++ b/drivers/spi/spi-rspi.c >>> @@ -848,7 +848,6 @@ static int

Re: [PATCH] spi: rspi: fix the bug related to mount/remount jffs2

2017-02-07 Thread DongCV
Dear Geert, Thank you for your reply. diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c index 9daf500..2ee1301 100644 --- a/drivers/spi/spi-rspi.c +++ b/drivers/spi/spi-rspi.c @@ -848,7 +848,6 @@ static int qspi_transfer_in(struct rspi_data *rspi, struct spi_transfer *xfer)

Re: [PATCH] spi: rspi: fix the bug related to mount/remount jffs2

2017-02-06 Thread Mark Brown
On Mon, Feb 06, 2017 at 10:02:13AM +0900, DongCV wrote: > From: Dong > > This patch fixes the output warning logs and data loss when > performing mount/umount then remount the device with jffs2 format. This is not a good changelog since it does not describe what the problem

Re: [PATCH] spi: rspi: fix the bug related to mount/remount jffs2

2017-02-06 Thread Geert Uytterhoeven
Hi Dong, On Mon, Feb 6, 2017 at 2:02 AM, DongCV wrote: > From: Dong > > This patch fixes the output warning logs and data loss when > performing mount/umount then remount the device with jffs2 format. > > This is the warning logs when performing

[PATCH] spi: rspi: fix the bug related to mount/remount jffs2

2017-02-05 Thread DongCV
From: Dong This patch fixes the output warning logs and data loss when performing mount/umount then remount the device with jffs2 format. This is the warning logs when performing mount/umount then remount the device with jffs2 format: "root@linaro-naro:~# mount -t jffs2

Re: [PATCH] spi: rspi: fix the bug related to mount/remount jffs2

2017-01-27 Thread Geert Uytterhoeven
17 00:00:00 2001 >> From: Dong <cv-d...@jinso.co.jp> >> Date: Fri, 27 Jan 2017 16:29:18 +0900 >> Subject: [PATCH] spi: rspi: fix the bug related to mount/remount jffs2 >> >> This patch fixes the output warning logs and data loss when >> performing mount/