27 Feb
2018
27 Feb
'18
6:19 p.m.
On 30/01/2018 at 12:08:45 +0100, Ladislav Michl wrote:
Signed-off-by: Ladislav Michl ladis@linux-mips.org
sound/soc/generic/simple-card-utils.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/sound/soc/generic/simple-card-utils.c b/sound/soc/generic/simple-card-utils.c index 3751a07de6aa..6b0cadc56933 100644 --- a/sound/soc/generic/simple-card-utils.c +++ b/sound/soc/generic/simple-card-utils.c @@ -185,6 +185,10 @@ int asoc_simple_card_parse_clk(struct device *dev, */ clk = devm_get_clk_from_child(dev, node, NULL); if (!IS_ERR(clk)) {
if (!of_property_read_u32(node, "clock-frequency", &val)) {
if (clk_set_rate(clk, val))
dev_err(dev, "failed to set frequency %d\n", val);
}
This would need to be documented in the simple card bindings but I think you may instead use: assigned-clocks and assigned-clock-rates.
--
Alexandre Belloni, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com