Hi Fabio,

2018-04-11 9:45 GMT-03:00 Fabio Estevam <feste...@gmail.com>:
> From: Fabio Estevam <fabio.este...@nxp.com>
>
> The 'era' information can be retrieved from CAAM registers, so
> introduce a caam_get_era_from_hw() function that gets it via register
> reads in case the 'fsl,sec-era' property is not passed in the device
> tree.
>
> This function is based on the U-Boot implementation from
> drivers/crypto/fsl/sec.c
>
> Signed-off-by: Fabio Estevam <fabio.este...@nxp.com>

I have just tested on a mx7dsabresd board and confirmed that the ERA
is correctly retrieved:

Without your patch:

[    2.182756] caam 30900000.caam: device ID = 0x0a16030000000000 (Era -524)

With your patch applied:

[    2.183526] caam 30900000.caam: device ID = 0x0a16030000000000 (Era 8)

Tested-by: Breno Lima <breno.l...@nxp.com>

Thanks,
Breno Lima

Reply via email to