<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/crypto/ccree/cc_driver.c, branch linux-5.4.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.4.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.4.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2023-01-18T10:41:18Z</updated>
<entry>
<title>crypto: ccree - Remove debugfs when platform_driver_register failed</title>
<updated>2023-01-18T10:41:18Z</updated>
<author>
<name>Gaosheng Cui</name>
</author>
<published>2022-11-08T08:29:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a234815cee9edb37f9fba2e53b34d0a4926e7007'/>
<id>urn:sha1:a234815cee9edb37f9fba2e53b34d0a4926e7007</id>
<content type='text'>
[ Upstream commit 4f1c596df706c9aca662b6c214fad84047ae2a97 ]

When platform_driver_register failed, we need to remove debugfs,
which will caused a resource leak, fix it.

Failed logs as follows:
[   32.606488] debugfs: Directory 'ccree' with parent '/' already present!

Fixes: 4c3f97276e15 ("crypto: ccree - introduce CryptoCell driver")
Signed-off-by: Gaosheng Cui &lt;cuigaosheng1@huawei.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - swap SHA384 and SHA512 larval hashes at build time</title>
<updated>2023-01-18T10:41:18Z</updated>
<author>
<name>Geert Uytterhoeven</name>
</author>
<published>2020-02-11T18:18:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ca438aa466b8e5010219d3300f65bc8a984c4b0a'/>
<id>urn:sha1:ca438aa466b8e5010219d3300f65bc8a984c4b0a</id>
<content type='text'>
[ Upstream commit f08b58501c74d6ec0828b55a0d4e0b2e840c2b9e ]

Due to the way the hardware works, every double word in the SHA384 and
SHA512 larval hashes must be swapped.  Currently this is done at run
time, during driver initialization.

However, this swapping can easily be done at build time.  Treating each
double word as two words has the benefit of changing the larval hashes'
types from u64[] to u32[], like for all other hashes, and allows
dropping the casts and size doublings when calling cc_set_sram_desc().

Signed-off-by: Geert Uytterhoeven &lt;geert+renesas@glider.be&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Stable-dep-of: 4f1c596df706 ("crypto: ccree - Remove debugfs when platform_driver_register failed")
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>crypto: drivers - Remove dev_err() usage after platform_get_irq()</title>
<updated>2019-08-09T05:11:38Z</updated>
<author>
<name>Stephen Boyd</name>
</author>
<published>2019-07-30T18:15:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=514838e920d06f5c2ba56e9656107dfcbbb90219'/>
<id>urn:sha1:514838e920d06f5c2ba56e9656107dfcbbb90219</id>
<content type='text'>
We don't need dev_err() messages when platform_get_irq() fails now that
platform_get_irq() prints an error message itself when something goes
wrong. Let's remove these prints with a simple semantic patch.

// &lt;smpl&gt;
@@
expression ret;
struct platform_device *E;
@@

ret =
(
platform_get_irq(E, ...)
|
platform_get_irq_byname(E, ...)
);

if ( \( ret &lt; 0 \| ret &lt;= 0 \) )
{
(
-if (ret != -EPROBE_DEFER)
-{ ...
-dev_err(...);
-... }
|
...
-dev_err(...);
)
...
}
// &lt;/smpl&gt;

While we're here, remove braces on if statements that only have one
statement (manually).

Cc: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Cc: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Cc: "David S. Miller" &lt;davem@davemloft.net&gt;
Cc: &lt;linux-crypto@vger.kernel.org&gt;
Signed-off-by: Stephen Boyd &lt;swboyd@chromium.org&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - drop legacy ivgen support</title>
<updated>2019-07-26T04:51:55Z</updated>
<author>
<name>Gilad Ben-Yossef</name>
</author>
<published>2019-07-02T11:39:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e6e6600c001c3aa3760aeb83dbd4630063e926ee'/>
<id>urn:sha1:e6e6600c001c3aa3760aeb83dbd4630063e926ee</id>
<content type='text'>
ccree had a mechanism for IV generation which was not compatible
with the Linux seqiv or echainiv iv generator and was never used
in any of the upstream versions so drop all the code implementing it.

Signed-off-by: Gilad Ben-Yossef &lt;gilad@benyossef.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - fix spelling mistake "configration" -&gt; "configuration"</title>
<updated>2019-07-26T04:51:54Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2019-07-01T13:08:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aca24d48cee232a88839c8895ac6fcd2fcad6588'/>
<id>urn:sha1:aca24d48cee232a88839c8895ac6fcd2fcad6588</id>
<content type='text'>
There is a spelling mistake in a dev_err message. Fix it.

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - add HW engine config check</title>
<updated>2019-06-27T06:28:00Z</updated>
<author>
<name>Gilad Ben-Yossef</name>
</author>
<published>2019-06-17T08:46:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=303f99ac9470a92c06fec1dfb5f263fbc26eb8f4'/>
<id>urn:sha1:303f99ac9470a92c06fec1dfb5f263fbc26eb8f4</id>
<content type='text'>
Add check to verify the stated device tree HW configuration
matches the HW.

Signed-off-by: Gilad Ben-Yossef &lt;gilad@benyossef.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - prevent isr handling in case driver is suspended</title>
<updated>2019-06-27T06:28:00Z</updated>
<author>
<name>Ofir Drang</name>
</author>
<published>2019-06-17T08:46:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3db617e77ae2f8051fd6f5d3fff0e15f086d5b4c'/>
<id>urn:sha1:3db617e77ae2f8051fd6f5d3fff0e15f086d5b4c</id>
<content type='text'>
ccree irq may be shared with other devices, in order to prevent ccree isr
handling while device maybe suspended we added a check to verify that the
device is not suspended.

Signed-off-by: Ofir Drang &lt;ofir.drang@arm.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - check that cryptocell reset completed</title>
<updated>2019-06-27T06:28:00Z</updated>
<author>
<name>Ofir Drang</name>
</author>
<published>2019-06-17T08:46:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d84f6269ce24eb4c468e246b24fc0fdce34ab6f6'/>
<id>urn:sha1:d84f6269ce24eb4c468e246b24fc0fdce34ab6f6</id>
<content type='text'>
In case of driver probe and pm resume we need to check that the cryptocell
hardware reset cycle is completed. during the reset cycle that Cryptocell
provide read only access to the APB interface which allows to verify
through the CC registers that the reset is completed. Until reset
completion we assume that any write/crypto operation is blocked.

Signed-off-by: Ofir Drang &lt;ofir.drang@arm.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - Relocate driver irq registration after clk init</title>
<updated>2019-06-27T06:28:00Z</updated>
<author>
<name>ofir.drang@arm.com</name>
</author>
<published>2019-06-17T08:46:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0b970d54772f08f56326b89db74cba2ca3c7c278'/>
<id>urn:sha1:0b970d54772f08f56326b89db74cba2ca3c7c278</id>
<content type='text'>
Signed-off-by: Ofir Drang &lt;ofir.drang@arm.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - use a proper le32 type for le32 val</title>
<updated>2019-05-03T06:03:30Z</updated>
<author>
<name>Gilad Ben-Yossef</name>
</author>
<published>2019-04-28T08:33:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e59f755ceb6d6f39f90899d2a4e39c3e05837e12'/>
<id>urn:sha1:e59f755ceb6d6f39f90899d2a4e39c3e05837e12</id>
<content type='text'>
We build an explicit little endian value from the IDR register
values. Use a proper le32 type to mark the var as such to
satisfy Sparse.

Signed-off-by: Gilad Ben-Yossef &lt;gilad@benyossef.com&gt;
Reported-by: kbuild test robot &lt;lkp@intel.com&gt;
Fixes: dcf6285d18ea1 ("crypto: ccree - add CID and PID support")
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
</feed>
