Skip to content

Commit b26ab06

Browse files
shawnguo2andersson
authored andcommitted
clk: qcom: smd-rpm: Drop binary value handling for buffered clock
The buffered clock binary value handling added by commit 36354c3 ("clk: qcom: smd-rpm: Add .recalc_rate hook for clk_smd_rpm_branch_ops") is redundant, because buffered clock is branch type, and the binary value handling for branch clock has been handled by clk_smd_rpm_prepare/unprepare functions. Signed-off-by: Shawn Guo <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b406f5e commit b26ab06

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/clk/qcom/clk-smd-rpm.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,6 @@ static int clk_smd_rpm_set_rate_active(struct clk_smd_rpm *r,
189189
.value = cpu_to_le32(DIV_ROUND_UP(rate, 1000)), /* to kHz */
190190
};
191191

192-
/* Buffered clock needs a binary value */
193-
if (r->rpm_res_type == QCOM_SMD_RPM_CLK_BUF_A)
194-
req.value = cpu_to_le32(!!req.value);
195-
196192
return qcom_rpm_smd_write(r->rpm, QCOM_SMD_RPM_ACTIVE_STATE,
197193
r->rpm_res_type, r->rpm_clk_id, &req,
198194
sizeof(req));
@@ -207,10 +203,6 @@ static int clk_smd_rpm_set_rate_sleep(struct clk_smd_rpm *r,
207203
.value = cpu_to_le32(DIV_ROUND_UP(rate, 1000)), /* to kHz */
208204
};
209205

210-
/* Buffered clock needs a binary value */
211-
if (r->rpm_res_type == QCOM_SMD_RPM_CLK_BUF_A)
212-
req.value = cpu_to_le32(!!req.value);
213-
214206
return qcom_rpm_smd_write(r->rpm, QCOM_SMD_RPM_SLEEP_STATE,
215207
r->rpm_res_type, r->rpm_clk_id, &req,
216208
sizeof(req));

0 commit comments

Comments
 (0)