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

2016-01-19 Thread Qianyu Gong
> -Original Message- > From: york sun > Sent: Wednesday, January 20, 2016 2:47 AM > To: Qianyu Gong ; u-boot@lists.denx.de > Cc: Mingkai Hu ; jt...@openedev.com; Yao Yuan > ; r58...@freescale.com; Gong Qianyu > > Subject: Re: [Patch V4 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue >

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

2016-01-19 Thread york sun
On 01/10/2016 06:15 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 V4 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-10 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