commit | a5357cae48daed4edc4b01ff742658da16be1649 | [log] [tgz] |
---|---|---|
author | Gong Qianyu <Qianyu.Gong@freescale.com> | Tue Jan 26 15:06:40 2016 +0800 |
committer | York Sun <york.sun@nxp.com> | Wed Jan 27 08:28:04 2016 -0800 |
tree | e4f2f5d7483e9c8a330d02b8d37628982121fb86 | |
parent | 14b532ec014c3ea09a2c3823216ac516f815346e [diff] |
spi: fsl_qspi: Fix qspi_op_rdid memcpy issue 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 Qianyu <Qianyu.Gong@freescale.com> Reviewed-by: York Sun <york.sun@nxp.com>