<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/drivers/crypto/aspeed, branch master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/drivers/crypto/aspeed?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/drivers/crypto/aspeed?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2022-09-30T05:59:13Z</updated>
<entry>
<title>crypto: aspeed - Remove redundant dev_err call</title>
<updated>2022-09-30T05:59:13Z</updated>
<author>
<name>Shang XiaoJing</name>
<email>shangxiaojing@huawei.com</email>
</author>
<published>2022-09-23T10:01:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=b411b1a0c8bddd470fc8c3457629ac25a168cba0'/>
<id>urn:sha1:b411b1a0c8bddd470fc8c3457629ac25a168cba0</id>
<content type='text'>
devm_ioremap_resource() prints error message in itself. Remove the
dev_err call to avoid redundant error message.

Signed-off-by: Shang XiaoJing &lt;shangxiaojing@huawei.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: aspeed - Fix check for platform_get_irq() errors</title>
<updated>2022-09-30T05:57:50Z</updated>
<author>
<name>YueHaibing</name>
<email>yuehaibing@huawei.com</email>
</author>
<published>2022-09-20T03:21:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=70513e1d65599f39aba4fa6594546f7c81fa59f4'/>
<id>urn:sha1:70513e1d65599f39aba4fa6594546f7c81fa59f4</id>
<content type='text'>
The platform_get_irq() function returns negative on error and
positive non-zero values on success. It never returns zero, but if it
did then treat that as a success.

Also remove redundant dev_err() print as platform_get_irq() already
prints an error.

Fixes: 108713a713c7 ("crypto: aspeed - Add HACE hash driver")
Signed-off-by: YueHaibing &lt;yuehaibing@huawei.com&gt;
Reviewed-by: Neal Liu &lt;neal_liu@aspeedtech.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: aspeed - fix build error when only CRYPTO_DEV_ASPEED is enabled</title>
<updated>2022-09-30T05:57:49Z</updated>
<author>
<name>Neal Liu</name>
<email>neal_liu@aspeedtech.com</email>
</author>
<published>2022-09-19T06:37:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=f78f6f0bf34fd85c17ebcb31d645536112aa25d3'/>
<id>urn:sha1:f78f6f0bf34fd85c17ebcb31d645536112aa25d3</id>
<content type='text'>
Fix build error within the following configs setting:
- CONFIG_CRYPTO_DEV_ASPEED=y
- CONFIG_CRYPTO_DEV_ASPEED_HACE_HASH is not set
- CONFIG_CRYPTO_DEV_ASPEED_HACE_CRYPTO is not set

Error messages:
make[4]: *** No rule to make target 'drivers/crypto/aspeed/aspeed_crypto.o'
, needed by 'drivers/crypto/aspeed/built-in.a'.
make[4]: Target '__build' not remade because of errors.

Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Signed-off-by: Neal Liu &lt;neal_liu@aspeedtech.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: aspeed - fix return value check in aspeed_hace_probe()</title>
<updated>2022-09-09T08:18:32Z</updated>
<author>
<name>Sun Ke</name>
<email>sunke32@huawei.com</email>
</author>
<published>2022-08-30T03:13:47Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=dc377e013bec20dfedaec5d1f6327e4d57da359b'/>
<id>urn:sha1:dc377e013bec20dfedaec5d1f6327e4d57da359b</id>
<content type='text'>
In case of error, the function devm_ioremap_resource() returns
ERR_PTR() not NULL. The NULL test in the return value check must be
replaced with IS_ERR().

Fixes: 108713a713c7 ("crypto: aspeed - Add HACE hash driver")
Signed-off-by: Sun Ke &lt;sunke32@huawei.com&gt;
Reviewed-by: Neal Liu&lt;neal_liu@aspeedtech.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: aspeed - Fix sparse warnings</title>
<updated>2022-09-07T06:11:04Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2022-09-06T05:05:35Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=efc96d43ec38381dacbd51679c2d01438511371d'/>
<id>urn:sha1:efc96d43ec38381dacbd51679c2d01438511371d</id>
<content type='text'>
This patch fixes a bunch of bit endianness warnings and two missing
static modifiers.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Reviewed-by: Neal Liu &lt;neal_liu@aspeedtech.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: aspeed: fix format unexpected build warning</title>
<updated>2022-09-07T06:09:47Z</updated>
<author>
<name>Neal Liu</name>
<email>neal_liu@aspeedtech.com</email>
</author>
<published>2022-09-07T03:34:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=aa450316c662f599189e0910444cf064c4f31602'/>
<id>urn:sha1:aa450316c662f599189e0910444cf064c4f31602</id>
<content type='text'>
This fixes the following similar build warning when
enabling compile test:

aspeed-hace-hash.c:188:9: warning: format '%x' expects argument of type
'unsigned int', but argument 7 has type 'size_t' {aka 'long unsigned int'}
[-Wformat=]

Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Signed-off-by: Neal Liu &lt;neal_liu@aspeedtech.com&gt;
Acked-by: Randy Dunlap &lt;rdunlap@infradead.org&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: aspeed - fix build module error</title>
<updated>2022-09-06T04:49:14Z</updated>
<author>
<name>Neal Liu</name>
<email>neal_liu@aspeedtech.com</email>
</author>
<published>2022-09-05T02:54:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=2be570849efc4e1ceda6a8384184f493f558f188'/>
<id>urn:sha1:2be570849efc4e1ceda6a8384184f493f558f188</id>
<content type='text'>
If CONFIG_MODULES=y and CONFIG_CRYPTO_DEV_ASPEED=m,
build modpost would be failed.

Error messages:
  ERROR: modpost: "aspeed_register_hace_hash_algs"
  [drivers/crypto/aspeed/aspeed_crypto.ko] undefined!
  ERROR: modpost: "aspeed_unregister_hace_hash_algs"
  [drivers/crypto/aspeed/aspeed_crypto.ko] undefined!

Change build sequence to fix this.

Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Signed-off-by: Neal Liu &lt;neal_liu@aspeedtech.com&gt;
Tested-by: Sudip Mukherjee &lt;sudipm.mukherjee@gmail.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: aspeed - Enable compile testing</title>
<updated>2022-09-02T10:38:06Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2022-08-26T11:05:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=31b39755e32568b43c80814c5e13d7b1ab796d73'/>
<id>urn:sha1:31b39755e32568b43c80814c5e13d7b1ab796d73</id>
<content type='text'>
This driver compile tests just fine.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Reviewed-by: Neal Liu &lt;neal_liu@aspeedtech.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: aspeed - add HACE crypto driver</title>
<updated>2022-08-26T10:50:38Z</updated>
<author>
<name>Neal Liu</name>
<email>neal_liu@aspeedtech.com</email>
</author>
<published>2022-08-18T03:59:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=62f58b1637b7c8df34afaa548cb4b03d31c0764b'/>
<id>urn:sha1:62f58b1637b7c8df34afaa548cb4b03d31c0764b</id>
<content type='text'>
Add HACE crypto driver to support symmetric-key
encryption and decryption with multiple modes of
operation.

Signed-off-by: Neal Liu &lt;neal_liu@aspeedtech.com&gt;
Signed-off-by: Johnny Huang &lt;johnny_huang@aspeedtech.com&gt;
Reviewed-by: Dhananjay Phadke &lt;dphadke@linux.microsoft.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: aspeed - Add HACE hash driver</title>
<updated>2022-08-26T10:50:37Z</updated>
<author>
<name>Neal Liu</name>
<email>neal_liu@aspeedtech.com</email>
</author>
<published>2022-08-18T03:59:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=108713a713c7e4b7d07e6cd9b808503d5bb7089b'/>
<id>urn:sha1:108713a713c7e4b7d07e6cd9b808503d5bb7089b</id>
<content type='text'>
Hash and Crypto Engine (HACE) is designed to accelerate the
throughput of hash data digest, encryption, and decryption.

Basically, HACE can be divided into two independently engines
- Hash Engine and Crypto Engine. This patch aims to add HACE
hash engine driver for hash accelerator.

Signed-off-by: Neal Liu &lt;neal_liu@aspeedtech.com&gt;
Signed-off-by: Johnny Huang &lt;johnny_huang@aspeedtech.com&gt;
Reviewed-by: Dhananjay Phadke &lt;dphadke@linux.microsoft.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
</feed>
