[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1j5znl9kol.fsf@starbuckisacylon.baylibre.com>
Date: Mon, 29 Jul 2019 12:52:58 +0200
From: Jerome Brunet <jbrunet@...libre.com>
To: Alexandre Mergnat <amergnat@...libre.com>
Cc: khilman@...libre.com, sboyd@...nel.org, narmstrong@...libre.com,
linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-amlogic@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org,
baylibre-upstreaming@...ups.io,
Alexandre Mergnat <amergnat@...libre.com>
Subject: Re: [PATCH v2] clk: meson: axg-audio: migrate to the new parent description method
On Thu 25 Jul 2019 at 18:40, Alexandre Mergnat <amergnat@...libre.com> wrote:
> /* Audio Master Clocks */
> -static const char * const mst_mux_parent_names[] = {
> - "aud_mst_in0", "aud_mst_in1", "aud_mst_in2", "aud_mst_in3",
> - "aud_mst_in4", "aud_mst_in5", "aud_mst_in6", "aud_mst_in7",
> +static const struct clk_parent_data mst_mux_parent_data[] = {
> + { .fw_name = "mst_in0", },
> + { .fw_name = "mst_in1", },
> + { .fw_name = "mst_in2", },
> + { .fw_name = "mst_in3", },
> + { .fw_name = "mst_in4", },
> + { .fw_name = "mst_in5", },
> + { .fw_name = "mst_in6", },
> + { .fw_name = "mst_in7", },
> };
>
> #define AUD_MST_MUX(_name, _reg, _flag) \
> AUD_MUX(_name##_sel, _reg, 0x7, 24, _flag, \
> - mst_mux_parent_names, CLK_SET_RATE_PARENT)
> + mst_mux_parent_data, CLK_SET_RATE_PARENT)
Actually, you should have dropped the CLK_SET_RATE_PARENT above.
Before, the rate propagation was stopped by the input clock but now,
there no such thing so the rate propagation must be stopped here.
It was almost impossible to know without testing audio, so fixed it
when applying the change.
Thanks for this rework !
Powered by blists - more mailing lists