Re: [PATCH v5 3/8] clk: tegra: Implement Tegra210 EMC clock

From
Dmitry Osipenko <digetx@gmail.com>
Date
2020-03-23 13:21:17
Also in
linux-arm-kernel, linux-clk, linux-tegra
Reply to
Thierry Reding, 2020-03-23
23.03.2020 14:00, Thierry Reding пишет:
...
quoted
quoted
+	if (!provider || !provider->configs || provider->num_configs == 0)
+		return -EINVAL;
Why all these checks are needed? I don't think it ever could fail,
couldn't it?
This could fail if no EMC provider is attached, which happens, for
example, when the EMC driver is not loaded.
Requesting EMC clock should return EPROBE_DEFER until provider is
available. Please see tegra20_clk_src_onecell_get for the example.
Tegra124 should do the same, BTW.
Thread (35 messages) 35 messages, 3 authors, last reply 2020-03-23
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help