From: "Mukunda,Vijendar" <vijendar.mukunda@amd.com>
To: Vinod Koul <vkoul@kernel.org>
Cc: Bard Liao <yung-chuan.liao@linux.intel.com>,
Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>,
Sanyog Kale <sanyog.r.kale@intel.com>,
alsa-devel@alsa-project.org
Subject: Re: [PATCH] soundwire: amd: drop bus freq calculation and set 'max_clk_freq'
Date: Fri, 1 Dec 2023 11:16:24 +0530 [thread overview]
Message-ID: <30e6b8d3-6369-4c23-a4fa-f70cc01acd7e@amd.com> (raw)
In-Reply-To: <20231129130449.9892-1-vkoul@kernel.org>
On 29/11/23 18:34, Vinod Koul wrote:
> max_dr_freq and curr_dr_freq is calculated and set in
> sdw_bus_master_add(). Setting in the driver is reduanant, so drop that.
> Set max_clk_freq instead.
LGTM
>
> Signed-off-by: Vinod Koul <vkoul@kernel.org>
> ---
> drivers/soundwire/amd_manager.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/soundwire/amd_manager.c b/drivers/soundwire/amd_manager.c
> index a3b1f4e6f0f9..f54bb4dd2d10 100644
> --- a/drivers/soundwire/amd_manager.c
> +++ b/drivers/soundwire/amd_manager.c
> @@ -950,13 +950,13 @@ static int amd_sdw_manager_probe(struct platform_device *pdev)
>
> amd_manager->reg_mask = &sdw_manager_reg_mask_array[amd_manager->instance];
> params = &amd_manager->bus.params;
> - params->max_dr_freq = AMD_SDW_DEFAULT_CLK_FREQ * 2;
> - params->curr_dr_freq = AMD_SDW_DEFAULT_CLK_FREQ * 2;
> +
> params->col = AMD_SDW_DEFAULT_COLUMNS;
> params->row = AMD_SDW_DEFAULT_ROWS;
> prop = &amd_manager->bus.prop;
> prop->clk_freq = &amd_sdw_freq_tbl[0];
> prop->mclk_freq = AMD_SDW_BUS_BASE_FREQ;
> + prop->max_clk_freq = AMD_SDW_DEFAULT_CLK_FREQ;
>
> ret = sdw_bus_master_add(&amd_manager->bus, dev, dev->fwnode);
> if (ret) {
next prev parent reply other threads:[~2023-12-01 5:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-29 13:04 [PATCH] soundwire: amd: drop bus freq calculation and set 'max_clk_freq' Vinod Koul
2023-12-01 5:46 ` Mukunda,Vijendar [this message]
2023-12-02 6:12 ` Vinod Koul
2023-12-02 6:16 ` Mukunda,Vijendar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=30e6b8d3-6369-4c23-a4fa-f70cc01acd7e@amd.com \
--to=vijendar.mukunda@amd.com \
--cc=alsa-devel@alsa-project.org \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=sanyog.r.kale@intel.com \
--cc=vkoul@kernel.org \
--cc=yung-chuan.liao@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox