<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/char/hw_random, branch linux-4.7.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.7.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.7.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-10-07T13:21:22Z</updated>
<entry>
<title>hwrng: omap - Fix assumption that runtime_get_sync will always succeed</title>
<updated>2016-10-07T13:21:22Z</updated>
<author>
<name>Nishanth Menon</name>
</author>
<published>2016-06-24T16:50:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aaad4422e7477908549a445c1edae9d45c9c1124'/>
<id>urn:sha1:aaad4422e7477908549a445c1edae9d45c9c1124</id>
<content type='text'>
commit 61dc0a446e5d08f2de8a24b45f69a1e302bb1b1b upstream.

pm_runtime_get_sync does return a error value that must be checked for
error conditions, else, due to various reasons, the device maynot be
enabled and the system will crash due to lack of clock to the hardware
module.

Before:
12.562784] [00000000] *pgd=fe193835
12.562792] Internal error: : 1406 [#1] SMP ARM
[...]
12.562864] CPU: 1 PID: 241 Comm: modprobe Not tainted 4.7.0-rc4-next-20160624 #2
12.562867] Hardware name: Generic DRA74X (Flattened Device Tree)
12.562872] task: ed51f140 ti: ed44c000 task.ti: ed44c000
12.562886] PC is at omap4_rng_init+0x20/0x84 [omap_rng]
12.562899] LR is at set_current_rng+0xc0/0x154 [rng_core]
[...]

After the proper checks:
[   94.366705] omap_rng 48090000.rng: _od_fail_runtime_resume: FIXME:
missing hwmod/omap_dev info
[   94.375767] omap_rng 48090000.rng: Failed to runtime_get device -19
[   94.382351] omap_rng 48090000.rng: initialization failed.

Fixes: 665d92fa85b5 ("hwrng: OMAP: convert to use runtime PM")
Cc: Paul Walmsley &lt;paul@pwsan.com&gt;
Signed-off-by: Nishanth Menon &lt;nm@ti.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>crypto4xx: integrate ppc4xx-rng into crypto4xx</title>
<updated>2016-04-20T09:50:02Z</updated>
<author>
<name>Christian Lamparter</name>
</author>
<published>2016-04-18T10:57:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5343e674f32fb82b7a80a24b5a84eee62d3fe624'/>
<id>urn:sha1:5343e674f32fb82b7a80a24b5a84eee62d3fe624</id>
<content type='text'>
This patch integrates the ppc4xx-rng driver into the existing
crypto4xx. This is because the true random number generator
is controlled and part of the security core.

Signed-off-by: Christian Lamparter &lt;chunkeey@googlemail.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>hwrng: hisi - Add support for Hisilicon SoC RNG</title>
<updated>2016-04-15T14:36:36Z</updated>
<author>
<name>Kefeng Wang</name>
</author>
<published>2016-04-13T10:11:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=afc39d6e89b4f410f511f03dc6de8dc1d4952d42'/>
<id>urn:sha1:afc39d6e89b4f410f511f03dc6de8dc1d4952d42</id>
<content type='text'>
This adds the Hisilicon Random Number Generator(RNG) support,
which is found in Hip04 and Hip05 soc.

Reviewed-by: Mathieu Poirier &lt;mathieu.poirier@linaro.org&gt;
Signed-off-by: Kefeng Wang &lt;wangkefeng.wang@huawei.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>hwrng: exynos - Fix misspelled Samsung address</title>
<updated>2016-04-05T12:35:54Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
</author>
<published>2016-04-05T02:04:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=043809d8d25eac8307c8c7b74bca7266070cb007'/>
<id>urn:sha1:043809d8d25eac8307c8c7b74bca7266070cb007</id>
<content type='text'>
Correct smasung.com into samsung.com.

Signed-off-by: Krzysztof Kozlowski &lt;k.kozlowski@samsung.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>hwrng: exynos - Enable COMPILE_TEST</title>
<updated>2016-04-05T12:35:44Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
</author>
<published>2016-03-14T04:19:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4dd6e9ea7ae824ebfd054b92e4f97ad75454b4c2'/>
<id>urn:sha1:4dd6e9ea7ae824ebfd054b92e4f97ad75454b4c2</id>
<content type='text'>
Get some build coverage of Exynos H/W random number generator
driver. Driver uses devm_ioremap_resource() so add IOMEM dependency for
the compile testing.

Signed-off-by: Krzysztof Kozlowski &lt;k.kozlowski@samsung.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>hwrng: exynos - Disable runtime PM on driver unbind</title>
<updated>2016-04-05T12:35:43Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
</author>
<published>2016-03-14T00:07:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=27d80fa8bccf8d28bef4f89709638efc624fef9a'/>
<id>urn:sha1:27d80fa8bccf8d28bef4f89709638efc624fef9a</id>
<content type='text'>
Driver enabled runtime PM but did not revert this on removal. Re-binding
of a device triggered warning:
	exynos-rng 10830400.rng: Unbalanced pm_runtime_enable!

Fixes: b329669ea0b5 ("hwrng: exynos - Add support for Exynos random number generator")
Signed-off-by: Krzysztof Kozlowski &lt;k.kozlowski@samsung.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>hwrng: exynos - Disable runtime PM on probe failure</title>
<updated>2016-04-05T12:35:43Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
</author>
<published>2016-03-14T00:07:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=48a61e1e2af8020f11a2b8f8dc878144477623c6'/>
<id>urn:sha1:48a61e1e2af8020f11a2b8f8dc878144477623c6</id>
<content type='text'>
Add proper error path (for disabling runtime PM) when registering of
hwrng fails.

Fixes: b329669ea0b5 ("hwrng: exynos - Add support for Exynos random number generator")
Signed-off-by: Krzysztof Kozlowski &lt;k.kozlowski@samsung.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>hwrng: exynos - Fix unbalanced PM runtime put on timeout error path</title>
<updated>2016-04-05T12:35:43Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
</author>
<published>2016-03-14T00:07:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f1925d78d7b710a1179828d53e918295f5f5d222'/>
<id>urn:sha1:f1925d78d7b710a1179828d53e918295f5f5d222</id>
<content type='text'>
In case of timeout during read operation, the exit path lacked PM
runtime put. This could lead to unbalanced runtime PM usage counter thus
leaving the device in an active state.

Fixes: d7fd6075a205 ("hwrng: exynos - Add timeout for waiting on init done")
Cc: &lt;stable@vger.kernel.org&gt; # v4.4+
Signed-off-by: Krzysztof Kozlowski &lt;k.kozlowski@samsung.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>hwrng: exynos - Runtime suspend device after init</title>
<updated>2016-04-05T12:35:42Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
</author>
<published>2016-03-14T00:07:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f0d947ac01632fa6c75cb07262922a93736385c1'/>
<id>urn:sha1:f0d947ac01632fa6c75cb07262922a93736385c1</id>
<content type='text'>
The driver uses pm_runtime_put_noidle() after initialization so the
device might remain in active state if the core does not read from it
(the read callback contains regular runtime put). The put_noidle() was
chosen probably to avoid unneeded suspend and resume cycle after the
initialization.

However for this purpose autosuspend is enabled so it is safe to runtime
put just after the initialization.

Signed-off-by: Krzysztof Kozlowski &lt;k.kozlowski@samsung.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>hwrng: bcm63xx - fix device tree compilation</title>
<updated>2016-04-05T12:23:11Z</updated>
<author>
<name>Álvaro Fernández Rojas</name>
</author>
<published>2016-04-03T12:18:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=47cd30608f3fc3dbb4fdf37300baca911e2dde34'/>
<id>urn:sha1:47cd30608f3fc3dbb4fdf37300baca911e2dde34</id>
<content type='text'>
Adds missing include that resulted in implicit device tree functions errors.

Fixes: 7b651706712b ("hwrng: bcm63xx - add device tree support")
Signed-off-by: Álvaro Fernández Rojas &lt;noltari@gmail.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
</feed>
