Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clk: qcom: smd-rpm: Drop binary value handling for buffered clock

The buffered clock binary value handling added by commit 36354c32bd76
("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 <shawn.guo@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211031020715.21636-4-shawn.guo@linaro.org

authored by

Shawn Guo and committed by
Bjorn Andersson
b26ab06d b406f5e9

-8
-8
drivers/clk/qcom/clk-smd-rpm.c
··· 189 189 .value = cpu_to_le32(DIV_ROUND_UP(rate, 1000)), /* to kHz */ 190 190 }; 191 191 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 - 196 192 return qcom_rpm_smd_write(r->rpm, QCOM_SMD_RPM_ACTIVE_STATE, 197 193 r->rpm_res_type, r->rpm_clk_id, &req, 198 194 sizeof(req)); ··· 202 206 .nbytes = cpu_to_le32(sizeof(u32)), 203 207 .value = cpu_to_le32(DIV_ROUND_UP(rate, 1000)), /* to kHz */ 204 208 }; 205 - 206 - /* Buffered clock needs a binary value */ 207 - if (r->rpm_res_type == QCOM_SMD_RPM_CLK_BUF_A) 208 - req.value = cpu_to_le32(!!req.value); 209 209 210 210 return qcom_rpm_smd_write(r->rpm, QCOM_SMD_RPM_SLEEP_STATE, 211 211 r->rpm_res_type, r->rpm_clk_id, &req,