Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fcd93da7 authored by Taniya Das's avatar Taniya Das Committed by Greg Kroah-Hartman
Browse files

clk: qcom: rcg: Return failure for RCG update



commit 21ea4b62e1f3dc258001a68da98c9663a9dbd6c7 upstream.

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

Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
Link: https://lkml.kernel.org/r/1557339895-21952-2-git-send-email-tdas@codeaurora.org


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1076d21f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -107,7 +107,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)