• Ulf Hansson's avatar
    clk: Fixup errorhandling for clk_set_parent · 031dcc9b
    Ulf Hansson authored
    Fixup the broken feature of allowing reparent of a clk to the
    orhpan list and vice verse. When operating on a single-parent
    clk, the .set_parent callback for the clk hw is optional to
    implement, but for a multi-parent clk it is mandatory.
    
    Moreover improve the errorhandling by verifying the prerequisites
    before triggering clk notifiers. This will prevent unnecessary
    rollback with ABORT_RATE_CHANGE.
    Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
    Cc: Rajagopal Venkat <rajagopal.venkat@linaro.org>
    Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
    031dcc9b
clk.c 49.3 KB