Skip to content

Commit becfce5

Browse files
committed
soundwire: amd: drop bus freq calculation and set 'max_clk_freq'
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. Signed-off-by: Vinod Koul <[email protected]> Tested-by: Vijendar Mukunda <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 55d50ac commit becfce5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/soundwire/amd_manager.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -950,13 +950,13 @@ static int amd_sdw_manager_probe(struct platform_device *pdev)
950950

951951
amd_manager->reg_mask = &sdw_manager_reg_mask_array[amd_manager->instance];
952952
params = &amd_manager->bus.params;
953-
params->max_dr_freq = AMD_SDW_DEFAULT_CLK_FREQ * 2;
954-
params->curr_dr_freq = AMD_SDW_DEFAULT_CLK_FREQ * 2;
953+
955954
params->col = AMD_SDW_DEFAULT_COLUMNS;
956955
params->row = AMD_SDW_DEFAULT_ROWS;
957956
prop = &amd_manager->bus.prop;
958957
prop->clk_freq = &amd_sdw_freq_tbl[0];
959958
prop->mclk_freq = AMD_SDW_BUS_BASE_FREQ;
959+
prop->max_clk_freq = AMD_SDW_DEFAULT_CLK_FREQ;
960960

961961
ret = sdw_bus_master_add(&amd_manager->bus, dev, dev->fwnode);
962962
if (ret) {

0 commit comments

Comments
 (0)