aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorBarnabás Czémán <[email protected]>2024-10-06 20:51:58 +0000
committerBjorn Andersson <[email protected]>2024-10-14 23:51:29 +0000
commite02bfea4d7ef587bb285ad5825da4e1973ac8263 (patch)
tree575f706076d8cae89d2b1c45e317bb31d43a4617 /rust/helpers/helpers.c
parentclk: qcom: videocc-sm8350: use HW_CTRL_TRIGGER for vcodec GDSCs (diff)
downloadkernel-e02bfea4d7ef587bb285ad5825da4e1973ac8263.tar.gz
kernel-e02bfea4d7ef587bb285ad5825da4e1973ac8263.zip
clk: qcom: clk-alpha-pll: Fix pll post div mask when width is not set
Many qcom clock drivers do not have .width set. In that case value of (p)->width - 1 will be negative which breaks clock tree. Fix this by checking if width is zero, and pass 3 to GENMASK if that's the case. Fixes: 1c3541145cbf ("clk: qcom: support for 2 bit PLL post divider") Signed-off-by: Barnabás Czémán <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Reviewed-by: Christopher Obbard <[email protected]> Tested-by: Christopher Obbard <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions