MLK-16716 nvmem: imx-scu-ocotp do not read invalid address
authorPeng Fan <peng.fan@nxp.com>
Fri, 27 Oct 2017 10:02:45 +0000 (18:02 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit103d51a5b8d508591049effbcbeb44227a37cde1
treef074b6ddaeff48b96eaf02700ba223247ed845f9
parent9a88300d3f4687a48ddfa9b5510ccb798fe1d48b
MLK-16716 nvmem: imx-scu-ocotp do not read invalid address

Fix: hexdump: /sys/bus/nvmem/devices/imx-ocotp0/nvmem: Input/output error

Address space [272,543] is invalid address space on 8QXP, reading from SCU
will get SC_ERR_PARAM. So ignore these words when reading fuse.

 BuildInfo:
  - SCFW 8dcff26, IMX-MKIMAGE ea027c4b, ATF
  - U-Boot 2017.03-imx_v2017.03_4.9.51_imx8_beta1+g6dc7b0f

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
drivers/nvmem/imx-scu-ocotp.c