<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/crypto/ccree/cc_driver.c, branch linux-5.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2023-01-14T09:15:49Z</updated>
<entry>
<title>crypto: ccree - Remove debugfs when platform_driver_register failed</title>
<updated>2023-01-14T09:15:49Z</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=1ab9e15b14414670c9dcad5f466de16ea953bfb6'/>
<id>urn:sha1:1ab9e15b14414670c9dcad5f466de16ea953bfb6</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 - Simplify with dev_err_probe()</title>
<updated>2020-09-04T07:57:16Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
</author>
<published>2020-08-26T16:29:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d83d631b18e56aee51e4b8c89968952703e4de98'/>
<id>urn:sha1:d83d631b18e56aee51e4b8c89968952703e4de98</id>
<content type='text'>
Common pattern of handling deferred probe can be simplified with
dev_err_probe().  Less code and also it prints the error value.

Signed-off-by: Krzysztof Kozlowski &lt;krzk@kernel.org&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - use existing dev helper in init_cc_resources()</title>
<updated>2020-02-22T01:25:46Z</updated>
<author>
<name>Geert Uytterhoeven</name>
</author>
<published>2020-02-11T18:19:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=343ee6c4405c2d053f093f68835ecff0cc906a04'/>
<id>urn:sha1:343ee6c4405c2d053f093f68835ecff0cc906a04</id>
<content type='text'>
Use the existing dev helper variable instead of plat_dev-&gt;dev.

Signed-off-by: Geert Uytterhoeven &lt;geert+renesas@glider.be&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - spelling s/Crytpcell/Cryptocell/</title>
<updated>2020-02-22T01:25:46Z</updated>
<author>
<name>Geert Uytterhoeven</name>
</author>
<published>2020-02-11T18:19:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3b1cbdac327c6377edee1e2c956e1623e27dd133'/>
<id>urn:sha1:3b1cbdac327c6377edee1e2c956e1623e27dd133</id>
<content type='text'>
Fix a typo in a comment.

Signed-off-by: Geert Uytterhoeven &lt;geert+renesas@glider.be&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - remove cc_pm_is_dev_suspended() wrapper</title>
<updated>2020-02-22T01:25:44Z</updated>
<author>
<name>Geert Uytterhoeven</name>
</author>
<published>2020-02-11T18:19:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8f76b35211bd78437d37de897d29a0b83e370c08'/>
<id>urn:sha1:8f76b35211bd78437d37de897d29a0b83e370c08</id>
<content type='text'>
If CONFIG_PM=y, cc_pm_is_dev_suspended() is just a wrapper around
pm_runtime_suspended().
If CONFIG_PM=n, cc_pm_is_dev_suspended() a dummy that behaves exactly
the same as the dummy for pm_runtime_suspended().

Hence remove cc_pm_is_dev_suspended(), and call pm_runtime_suspended()
directly.

Signed-off-by: Geert Uytterhoeven &lt;geert+renesas@glider.be&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - use of_device_get_match_data()</title>
<updated>2020-02-22T01:25:44Z</updated>
<author>
<name>Geert Uytterhoeven</name>
</author>
<published>2020-02-11T18:19:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1b940e35a5176fd22de6000af723475c07660759'/>
<id>urn:sha1:1b940e35a5176fd22de6000af723475c07660759</id>
<content type='text'>
If the driver is probed, it means a match was found in
arm_ccree_dev_of_match[].  Hence we can just use the
of_device_get_match_data() helper.

Signed-off-by: Geert Uytterhoeven &lt;geert+renesas@glider.be&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - simplify Runtime PM handling</title>
<updated>2020-02-22T01:25:44Z</updated>
<author>
<name>Geert Uytterhoeven</name>
</author>
<published>2020-02-11T18:19:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8c7849a30255cfd9a9ba412b1517e20a8572448b'/>
<id>urn:sha1:8c7849a30255cfd9a9ba412b1517e20a8572448b</id>
<content type='text'>
Currently, a large part of the probe function runs before Runtime PM is
enabled.  As the driver manages the device's clock manually, this may
work fine on some systems, but may break on platforms with a more
complex power hierarchy.

Fix this by moving the initialization of Runtime PM before the first
register access (in cc_wait_for_reset_completion()), and putting the
device to sleep only after the last access (in cc_set_ree_fips_status()).

This allows to remove the pm_on flag, which was used to track manually
if Runtime PM had been enabled or not.
Remove the cc_pm_{init,go,fini}() wrappers, as they are called only
once, and obscure operation.

Signed-off-by: Geert Uytterhoeven &lt;geert+renesas@glider.be&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - clean up clock handling</title>
<updated>2020-02-22T01:25:43Z</updated>
<author>
<name>Geert Uytterhoeven</name>
</author>
<published>2020-02-11T18:19:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2f272ef37c29425a6526fec976cf200dda950ee1'/>
<id>urn:sha1:2f272ef37c29425a6526fec976cf200dda950ee1</id>
<content type='text'>
Use devm_clk_get_optional() instead of devm_clk_get() and explicit
optional clock handling.
As clk_prepare_enable() and clk_disable_unprepare() handle optional
clocks fine, the cc_clk_on() and cc_clk_off() wrappers can be removed.

While at it, use the new "%pe" format specifier to print error codes.

Signed-off-by: Geert Uytterhoeven &lt;geert+renesas@glider.be&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - remove empty cc_sram_mgr_fini()</title>
<updated>2020-02-22T01:25:43Z</updated>
<author>
<name>Geert Uytterhoeven</name>
</author>
<published>2020-02-11T18:19:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fc3b8c11aab728a536b6bb89d6760df9c8694d23'/>
<id>urn:sha1:fc3b8c11aab728a536b6bb89d6760df9c8694d23</id>
<content type='text'>
cc_sram_mgr_fini() doesn't do anything, so it can just be removed.

Signed-off-by: Geert Uytterhoeven &lt;geert+renesas@glider.be&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - drop duplicated error message on SRAM exhaustion</title>
<updated>2020-02-22T01:25:43Z</updated>
<author>
<name>Geert Uytterhoeven</name>
</author>
<published>2020-02-11T18:19:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=08e8cb119f5ab434c398d865b16f9d7bdb76b0b0'/>
<id>urn:sha1:08e8cb119f5ab434c398d865b16f9d7bdb76b0b0</id>
<content type='text'>
When no SRAM can be allocated, cc_sram_alloc() already prints an error
message.  Hence there is no need to duplicate this in all callers.

Signed-off-by: Geert Uytterhoeven &lt;geert+renesas@glider.be&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
</feed>
