From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Subject: Re: [PATCH v1 1/7] mtd: spi-nor: fix the wrong dummy value Date: Wed, 23 Apr 2014 21:41:26 +0200 Message-ID: <201404232141.27005.marex@denx.de> References: <1398248215-26768-2-git-send-email-b32955@freescale.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1398248215-26768-2-git-send-email-b32955@freescale.com> Sender: linux-doc-owner@vger.kernel.org To: Huang Shijie Cc: dwmw2@infradead.org, computersforpeace@gmail.com, linux-mtd@lists.infradead.org, linux-doc@vger.kernel.org, linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org List-Id: devicetree@vger.kernel.org On Wednesday, April 23, 2014 at 12:16:49 PM, Huang Shijie wrote: > For the DDR Quad read, the dummy cycles maybe 3 or 6 which is less then 8. > The dummy cycles is actually 8 for SPI fast/dual/quad read. > > This patch makes preparations for the DDR quad read, it fixes the wrong > dummy value for both the spi-nor.c and m25p80.c. > > Signed-off-by: Huang Shijie This patch is actually V2, right ? > --- > drivers/mtd/devices/m25p80.c | 5 ++++- > drivers/mtd/spi-nor/spi-nor.c | 2 +- > 2 files changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c > index 1557d8f..693e25f 100644 > --- a/drivers/mtd/devices/m25p80.c > +++ b/drivers/mtd/devices/m25p80.c > @@ -128,9 +128,12 @@ static int m25p80_read(struct spi_nor *nor, loff_t > from, size_t len, struct spi_device *spi = flash->spi; > struct spi_transfer t[2]; > struct spi_message m; > - int dummy = nor->read_dummy; > + unsigned int dummy = nor->read_dummy; > int ret; > > + /* convert the dummy cycles to the number of byte */ 'bytes', plural ... [...] Best regards, Marek Vasut From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut To: Huang Shijie Subject: Re: [PATCH v1 1/7] mtd: spi-nor: fix the wrong dummy value Date: Wed, 23 Apr 2014 21:41:26 +0200 References: <1398248215-26768-2-git-send-email-b32955@freescale.com> In-Reply-To: <1398248215-26768-2-git-send-email-b32955@freescale.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201404232141.27005.marex@denx.de> Cc: devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-spi@vger.kernel.org, linux-mtd@lists.infradead.org, computersforpeace@gmail.com, dwmw2@infradead.org, linux-arm-kernel@lists.infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wednesday, April 23, 2014 at 12:16:49 PM, Huang Shijie wrote: > For the DDR Quad read, the dummy cycles maybe 3 or 6 which is less then 8. > The dummy cycles is actually 8 for SPI fast/dual/quad read. > > This patch makes preparations for the DDR quad read, it fixes the wrong > dummy value for both the spi-nor.c and m25p80.c. > > Signed-off-by: Huang Shijie This patch is actually V2, right ? > --- > drivers/mtd/devices/m25p80.c | 5 ++++- > drivers/mtd/spi-nor/spi-nor.c | 2 +- > 2 files changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c > index 1557d8f..693e25f 100644 > --- a/drivers/mtd/devices/m25p80.c > +++ b/drivers/mtd/devices/m25p80.c > @@ -128,9 +128,12 @@ static int m25p80_read(struct spi_nor *nor, loff_t > from, size_t len, struct spi_device *spi = flash->spi; > struct spi_transfer t[2]; > struct spi_message m; > - int dummy = nor->read_dummy; > + unsigned int dummy = nor->read_dummy; > int ret; > > + /* convert the dummy cycles to the number of byte */ 'bytes', plural ... [...] Best regards, Marek Vasut From mboxrd@z Thu Jan 1 00:00:00 1970 From: marex@denx.de (Marek Vasut) Date: Wed, 23 Apr 2014 21:41:26 +0200 Subject: [PATCH v1 1/7] mtd: spi-nor: fix the wrong dummy value In-Reply-To: <1398248215-26768-2-git-send-email-b32955@freescale.com> References: <1398248215-26768-2-git-send-email-b32955@freescale.com> Message-ID: <201404232141.27005.marex@denx.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wednesday, April 23, 2014 at 12:16:49 PM, Huang Shijie wrote: > For the DDR Quad read, the dummy cycles maybe 3 or 6 which is less then 8. > The dummy cycles is actually 8 for SPI fast/dual/quad read. > > This patch makes preparations for the DDR quad read, it fixes the wrong > dummy value for both the spi-nor.c and m25p80.c. > > Signed-off-by: Huang Shijie This patch is actually V2, right ? > --- > drivers/mtd/devices/m25p80.c | 5 ++++- > drivers/mtd/spi-nor/spi-nor.c | 2 +- > 2 files changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c > index 1557d8f..693e25f 100644 > --- a/drivers/mtd/devices/m25p80.c > +++ b/drivers/mtd/devices/m25p80.c > @@ -128,9 +128,12 @@ static int m25p80_read(struct spi_nor *nor, loff_t > from, size_t len, struct spi_device *spi = flash->spi; > struct spi_transfer t[2]; > struct spi_message m; > - int dummy = nor->read_dummy; > + unsigned int dummy = nor->read_dummy; > int ret; > > + /* convert the dummy cycles to the number of byte */ 'bytes', plural ... [...] Best regards, Marek Vasut