Thread (24 messages) 24 messages, 3 authors, 2018-05-24

[PATCH 3/3] arm64: dts: renesas: r8a7795: add ccree binding

From: gilad@benyossef.com (Gilad Ben-Yossef)
Date: 2018-05-21 13:43:47
Also in: linux-clk, linux-crypto, linux-devicetree, linux-renesas-soc, lkml

On Thu, May 17, 2018 at 1:16 PM, Geert Uytterhoeven
[off-list ref] wrote:
Indeed. From a quick glance, it looks like drivers/crypto/ccree/cc_driver.c
does not distinguish between the absence of the clock property, and an
actual error in getting the clock, and never considers any error a failure
(incl. -PROBE_DEFER).

As of_clk_get() returns -ENOENT for both a missing clock property and a
missing clock, you should use (devm_)clk_get() instead, and distinguish
between NULL (no clock property) and IS_ERR() (actual failure -> abort).
I was trying to do as you suggested but I didn't quite get what is the
dev_id (2nd) parameter to devm_clk_get parameter is supposed to be.

I see what of_clk_get() is doing, so can replicate that but it seems
an over kill.

Any ideas?

Thanks,
Gilad


-- 
Gilad Ben-Yossef
Chief Coffee Drinker

"If you take a class in large-scale robotics, can you end up in a
situation where the homework eats your dog?"
 -- Jean-Baptiste Queru
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help