]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon/sec - modify the hardware endian configuration
authorKai Ye <yekai13@huawei.com>
Fri, 13 Aug 2021 07:41:02 +0000 (15:41 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 21 Aug 2021 07:44:57 +0000 (15:44 +0800)
commit9abd06eb58ad67c169c64816fb4b0cf2206c31e4
tree10a72ecc0f687d526f8f57a0c081743eb265e585
parent321a0975119d84897d6607904339ae6b4f47d847
crypto: hisilicon/sec - modify the hardware endian configuration

When the endian configuration of the hardware is abnormal, it will
cause the SEC engine is faulty that reports empty message. And it
will affect the normal function of the hardware. Currently the soft
configuration method can't restore the faulty device. The endian
needs to be configured according to the system properties. So fix it.

Signed-off-by: Kai Ye <yekai13@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sec2/sec.h
drivers/crypto/hisilicon/sec2/sec_main.c