From: Sam Protsenko <semen.protsenko@linaro.org>
To: "Łukasz Stelmach" <l.stelmach@samsung.com>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>
Cc: Anand Moon <linux.amoon@gmail.com>,
Olivia Mackall <olivia@selenic.com>,
Herbert Xu <herbert@gondor.apana.org.au>,
Alim Akhtar <alim.akhtar@samsung.com>,
linux-samsung-soc@vger.kernel.org, linux-crypto@vger.kernel.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v3 6/6] hwrng: exynos: Enable Exynos850 support
Date: Thu, 20 Jun 2024 18:13:39 -0500 [thread overview]
Message-ID: <20240620231339.1574-7-semen.protsenko@linaro.org> (raw)
In-Reply-To: <20240620231339.1574-1-semen.protsenko@linaro.org>
Add Exynos850 compatible and its driver data. It's only possible to
access TRNG block via SMC calls in Exynos850, so specify that fact using
EXYNOS_SMC flag in the driver data.
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Łukasz Stelmach <l.stelmach@samsung.com>
---
Changes in v3:
- Added R-b tag from Krzysztof
- Added A-b tag from Łukasz
Changes in v2:
- Changed QUIRK_SMC to EXYNOS_SMC to reflect the name change in the
previous patch
drivers/char/hw_random/exynos-trng.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/char/hw_random/exynos-trng.c b/drivers/char/hw_random/exynos-trng.c
index 9fa30583cc86..9f039fddaee3 100644
--- a/drivers/char/hw_random/exynos-trng.c
+++ b/drivers/char/hw_random/exynos-trng.c
@@ -320,6 +320,9 @@ static DEFINE_SIMPLE_DEV_PM_OPS(exynos_trng_pm_ops, exynos_trng_suspend,
static const struct of_device_id exynos_trng_dt_match[] = {
{
.compatible = "samsung,exynos5250-trng",
+ }, {
+ .compatible = "samsung,exynos850-trng",
+ .data = (void *)EXYNOS_SMC,
},
{ },
};
--
2.39.2
next prev parent reply other threads:[~2024-06-20 23:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-20 23:13 [PATCH v3 0/6] hwrng: exynos: Add support for Exynos850 Sam Protsenko
2024-06-20 23:13 ` [PATCH v3 1/6] dt-bindings: rng: Add Exynos850 support to exynos-trng Sam Protsenko
2024-06-20 23:13 ` [PATCH v3 2/6] hwrng: exynos: Improve coding style Sam Protsenko
2024-06-20 23:13 ` [PATCH v3 3/6] hwrng: exynos: Use devm_clk_get_enabled() to get the clock Sam Protsenko
2024-06-20 23:13 ` [PATCH v3 4/6] hwrng: exynos: Implement bus clock control Sam Protsenko
2024-06-20 23:13 ` [PATCH v3 5/6] hwrng: exynos: Add SMC based TRNG operation Sam Protsenko
[not found] ` <CGME20240621190049eucas1p28ba502d86e2f9380315c06add645517c@eucas1p2.samsung.com>
2024-06-21 19:00 ` Lukasz Stelmach
2024-06-21 19:40 ` Sam Protsenko
[not found] ` <CGME20240621221113eucas1p25c2fbadceef48913c4a7b164e6d14890@eucas1p2.samsung.com>
2024-06-21 22:10 ` Lukasz Stelmach
2024-06-21 22:55 ` Sam Protsenko
2024-06-20 23:13 ` Sam Protsenko [this message]
2024-06-28 1:52 ` [PATCH v3 0/6] hwrng: exynos: Add support for Exynos850 Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240620231339.1574-7-semen.protsenko@linaro.org \
--to=semen.protsenko@linaro.org \
--cc=alim.akhtar@samsung.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=herbert@gondor.apana.org.au \
--cc=krzk+dt@kernel.org \
--cc=l.stelmach@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux.amoon@gmail.com \
--cc=olivia@selenic.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).