]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
clk: qcom: rcg: Return failure for RCG update
authorTaniya Das <tdas@codeaurora.org>
Wed, 8 May 2019 18:24:53 +0000 (23:54 +0530)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 29 Apr 2020 12:55:51 +0000 (14:55 +0200)
BugLink: https://bugs.launchpad.net/bugs/1873043
commit 21ea4b62e1f3dc258001a68da98c9663a9dbd6c7 upstream.

In case of update config failure, return -EBUSY, so that consumers could
handle the failure gracefully.

Signed-off-by: Taniya Das <tdas@codeaurora.org>
Link: https://lkml.kernel.org/r/1557339895-21952-2-git-send-email-tdas@codeaurora.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/clk/qcom/clk-rcg2.c

index 804db1065864fd734c9e10e975da1d35cac7c1fb..12559fb504332967f99873fe4349794249574953 100644 (file)
@@ -112,7 +112,7 @@ static int update_config(struct clk_rcg2 *rcg)
        }
 
        WARN(1, "%s: rcg didn't update its configuration.", name);
-       return 0;
+       return -EBUSY;
 }
 
 static int clk_rcg2_set_parent(struct clk_hw *hw, u8 index)