crypto: qcom-rng - Add ACPI support
authorTimur Tabi <timur@codeaurora.org>
Mon, 16 Jul 2018 05:50:27 +0000 (11:20 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Jul 2018 11:04:32 +0000 (19:04 +0800)
commitd96542ac1020ecd47d2a1668384694789b65cb91
tree7184ae3765e30c408dfe82280659cba060e0d911
parentba3ab6371cdda214bf3d416edae62809a68d0b73
crypto: qcom-rng - Add ACPI support

Add support for probing on ACPI systems, with ACPI HID QCOM8160.

On ACPI systems, clocks are always enabled, the PRNG should
already be enabled, and the register region is read-only.
The driver only verifies that the hardware is already
enabled never tries to disable or configure it.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Tested-by: Jeffrey Hugo <jhugo@codeaurora.org>
[port to crypto API]
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qcom-rng.c