Re: [U-Boot] [Patch V5 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-25 Thread Qianyu Gong
> -Original Message- > From: york sun > Sent: Tuesday, January 26, 2016 1:02 AM > To: Scott Wood ; Yao Yuan ; > Qianyu Gong > Cc: b48...@freescale.com; u-boot@lists.denx.de; wenbin.s...@freescale.com; > jt...@openedev.com > Subject: Re: [U-Boot] [Patch V5

Re: [U-Boot] [Patch V5 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-25 Thread Scott Wood
On 01/25/2016 10:47 AM, york sun wrote: > On 01/24/2016 08:09 PM, Yao Yuan wrote: >> On 01/25/2016 04:16 AM, York Sun wrote: >>> On 01/22/2016 07:43 AM, Scott Wood wrote: On 01/21/2016 09:35 PM, Qianyu Gong wrote: > >> -Original Message- >> From: Scott Wood >> Sent: Fri

Re: [U-Boot] [Patch V5 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-25 Thread york sun
On 01/25/2016 09:01 AM, Scott Wood wrote: > On 01/25/2016 10:47 AM, york sun wrote: >> On 01/24/2016 08:09 PM, Yao Yuan wrote: >>> On 01/25/2016 04:16 AM, York Sun wrote: On 01/22/2016 07:43 AM, Scott Wood wrote: > On 01/21/2016 09:35 PM, Qianyu Gong wrote: >> >>> -Original Mes

Re: [U-Boot] [Patch V5 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-25 Thread york sun
On 01/24/2016 08:09 PM, Yao Yuan wrote: > On 01/25/2016 04:16 AM, York Sun wrote: >> On 01/22/2016 07:43 AM, Scott Wood wrote: >>> On 01/21/2016 09:35 PM, Qianyu Gong wrote: > -Original Message- > From: Scott Wood > Sent: Friday, January 22, 2016 3:30 AM > To: Qianyu Go

Re: [U-Boot] [Patch V5 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-24 Thread Yao Yuan
On 01/25/2016 04:16 AM, York Sun wrote: > On 01/22/2016 07:43 AM, Scott Wood wrote: > > On 01/21/2016 09:35 PM, Qianyu Gong wrote: > >> > >>> -Original Message- > >>> From: Scott Wood > >>> Sent: Friday, January 22, 2016 3:30 AM > >>> To: Qianyu Gong ; u-boot@lists.denx.de; > >>> r58...@fre

Re: [U-Boot] [Patch V5 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-22 Thread york sun
On 01/22/2016 07:43 AM, Scott Wood wrote: > On 01/21/2016 09:35 PM, Qianyu Gong wrote: >> >>> -Original Message- >>> From: Scott Wood >>> Sent: Friday, January 22, 2016 3:30 AM >>> To: Qianyu Gong ; u-boot@lists.denx.de; >>> r58...@freescale.com >>> Cc: mingkai...@freescale.com; jt...@opene

Re: [U-Boot] [Patch V5 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-22 Thread Scott Wood
On 01/21/2016 09:35 PM, Qianyu Gong wrote: > >> -Original Message- >> From: Scott Wood >> Sent: Friday, January 22, 2016 3:30 AM >> To: Qianyu Gong ; u-boot@lists.denx.de; >> r58...@freescale.com >> Cc: mingkai...@freescale.com; jt...@openedev.com; b48...@freescale.com; >> shaohui@free

Re: [U-Boot] [Patch V5 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-21 Thread Qianyu Gong
> -Original Message- > From: Scott Wood > Sent: Friday, January 22, 2016 3:30 AM > To: Qianyu Gong ; u-boot@lists.denx.de; > r58...@freescale.com > Cc: mingkai...@freescale.com; jt...@openedev.com; b48...@freescale.com; > shaohui@freescale.com; wenbin.s...@freescale.com; Scott Wood > ;

Re: [U-Boot] [Patch V5 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-21 Thread Scott Wood
On 01/20/2016 09:43 PM, Gong Qianyu wrote: > From: Gong Qianyu > > In current driver everytime we memcpy 4 bytes to the dest memory > regardless of the remaining length. > This patch adds checking the remaining length before memcpy. > If the length is shorter than 4 bytes, memcpy the actual lengt

[U-Boot] [Patch V5 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-20 Thread Gong Qianyu
From: Gong Qianyu In current driver everytime we memcpy 4 bytes to the dest memory regardless of the remaining length. This patch adds checking the remaining length before memcpy. If the length is shorter than 4 bytes, memcpy the actual length of data to the dest memory. Signed-off-by: Gong Qian