diff options
author | Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> | 2016-01-11 12:30:41 +0530 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2016-01-27 15:55:53 +0100 |
commit | f72132673a01216e760864e442f168977cce2bd2 (patch) | |
tree | f40c78d365a762f7cf13b40c874eb0e884bac6e0 /drivers/fpga | |
parent | 38c4761c236e0d8efd6b552d6b036015097c7bd9 (diff) | |
download | u-boot-imx-f72132673a01216e760864e442f168977cce2bd2.zip u-boot-imx-f72132673a01216e760864e442f168977cce2bd2.tar.gz u-boot-imx-f72132673a01216e760864e442f168977cce2bd2.tar.bz2 |
fpga: xilinx: Check for substring in device ID validation
Check for substrings in deviceID validation check
so that it can support xa bitstreams also.
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/fpga')
-rw-r--r-- | drivers/fpga/xilinx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/fpga/xilinx.c b/drivers/fpga/xilinx.c index c765a74..d459a2f 100644 --- a/drivers/fpga/xilinx.c +++ b/drivers/fpga/xilinx.c @@ -75,8 +75,8 @@ int fpga_loadbitstream(int devnum, char *fpgadata, size_t size, buffer[i] = *dataptr++; if (xdesc->name) { - i = strncmp(buffer, xdesc->name, strlen(xdesc->name)); - if (i) { + i = (ulong)strstr(buffer, xdesc->name); + if (!i) { printf("%s: Wrong bitstream ID for this device\n", __func__); printf("%s: Bitstream ID %s, current device ID %d/%s\n", |