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.