summaryrefslogtreecommitdiff
path: root/include/dwc3-uboot.h
diff options
context:
space:
mode:
authorGong Qianyu <Qianyu.Gong@freescale.com>2016-01-26 15:06:40 +0800
committerYork Sun <york.sun@nxp.com>2016-01-27 08:28:04 -0800
commit5207014deb1a465d2ac808254902100e7ea69d75 (patch)
treee4f2f5d7483e9c8a330d02b8d37628982121fb86 /include/dwc3-uboot.h
parentc2a4cb17b4ff194e905df76b9f7c1b5a00b99b25 (diff)
downloadu-boot-imx-5207014deb1a465d2ac808254902100e7ea69d75.zip
u-boot-imx-5207014deb1a465d2ac808254902100e7ea69d75.tar.gz
u-boot-imx-5207014deb1a465d2ac808254902100e7ea69d75.tar.bz2
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>
Diffstat (limited to 'include/dwc3-uboot.h')
0 files changed, 0 insertions, 0 deletions