Skip to content
Commit efe0d364 authored by Jay Buddhabhatti's avatar Jay Buddhabhatti Committed by Quanyang Wang
Browse files

drivers: clk: zynqmp: update divider round rate logic

commit bcd668f965ee8c36247b9e0c5f1cfb3e6534f3ab from
https://github.com/Xilinx/linux-xlnx.git

 xlnx_rebase_v6.1

Currently zynqmp divider round rate is considering single parent and
calculating rate and parent rate accordingly. But if divider clock flag
is set to SET_RATE_PARENT then its not trying to traverse through all
parent rate and not selecting best parent rate from that. So use common
divider_round_rate() which is traversing through all clock parents and
its rate and calculating proper parent rate.

Signed-off-by: default avatarJay Buddhabhatti <jay.buddhabhatti@amd.com>
Reviewed-by: default avatarShubhrajyoti Datta <shubhrajyoti.datta@amd.com>
Acked-by: default avatarMichal Simek <michal.simek@amd.com>
Signed-off-by: default avatarRadhey Shyam Pandey <radhey.shyam.pandey@amd.com>
State: pending
Signed-off-by: default avatarQuanyang Wang <quanyang.wang@windriver.com>
parent 0310febd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment