]> 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)
commitaf6a27678299212b96c62886388f87afe69df767
tree29bb3f7ecbad84c0e93f4cdbaad5765fd1977c4a
parent0fafee08c64fc5fc18005c441fc1474ea85cc149
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