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)
commita52626106d6f7edf3d106c065e13a0313cfeb82f
tree10a72ecc0f687d526f8f57a0c081743eb265e585
parent90367a027a22c3a9ca8b8bac15df34d9e859fc11
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