1
0
Fork 0
Commit Graph

4 Commits (redonkable)

Author SHA1 Message Date
Franck LENORMAND 2e2d8dc156 MLK-23822: soc: imx: secvio: Fix boot message when nvmem not initialised
When the nvmem subsystem is not initialised at boot, the probe
will fail and an error message will be displayed.
In this case the message should not be printed as the driver will
be probed later.

This patch checks the error code from nvmem before printing the
message.

It also fixes the cleaning path as the driver was not exiting
properly.

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2020-05-11 17:46:23 +02:00
Franck LENORMAND d134fcc5b6 MLK-23892: soc: imx: secvio: Fix intentionnal fall through
The function snvs_reader uses a switch case with intentionnal
fall through which is an error displayed at compilation.

This patch uses the keyword "fallthrough" to fix the issue.

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
2020-05-04 16:06:40 +02:00
Franck LENORMAND 9e2b6dacf5 SSI-87: soc: imx: secvio: Report to audit FW all security violations
Report to audit framework in case a secure violation is
reported to the driver.

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
2020-03-13 17:11:58 +01:00
Franck LENORMAND 7c907f8b54 SSI-87: soc: imx: secvio: Add support for SNVS secvio and tamper via SCFW
The driver register an IRQ handle to SCU for security
violation interrupt.

When an interruption is fired, the driver inform the user.

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
2020-03-13 17:11:58 +01:00