]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: inside-secure - Add EIP97/EIP197 and endianness detection
authorPascal van Leeuwen <pascalvanl@gmail.com>
Fri, 6 Sep 2019 14:31:48 +0000 (16:31 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 Sep 2019 11:17:57 +0000 (21:17 +1000)
commit32745aaf3621dc2a375590b4a6a39ef446064f2b
tree29bb3f7ecbad84c0e93f4cdbaad5765fd1977c4a
parente85cc76ff5fc86c19173ca5a6c0ef27e57c64848
crypto: inside-secure - Add EIP97/EIP197 and endianness detection

This patch adds automatic EIP97/EIP197 detection, so it does not need to
rely on any static value from the device table anymore. In particular,
the static value from the table won't work for PCI devboards that cannot
be further identified save from this direct hardware probing.

The patch also adds automatic host xs endianness detection & correction.

Signed-off-by: Pascal van Leeuwen <pvanleeuwen@verimatrix.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel.c
drivers/crypto/inside-secure/safexcel.h