• Maxime Ripard's avatar
    clk: sunxi-ng: mux: Re-adjust parent rate · abea2421
    Maxime Ripard authored
    Currently, the parent rate given back to the clock framework in our
    request is the original parent rate we calculated before trying to round
    the rate of our clock.
    
    This works fine unless our clock also changes its parent rate, in which
    case we will simply ignore that change and still use the previous parent
    rate.
    
    Create a new function to re-adjust the parent rate to take the pre-dividers
    into account, and give that back to the clock framework.
    Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
    Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
    abea2421
ccu_mux.c 7.04 KB