interconnect: qcom: Limit the maximum frequency to INT_MAX
Higher bandwidth vote from client is resulting in overflow in 32-bit mode, so limit the max frequency to INT_MAX. Change-Id: Ic36da4a1797a91db5f840ba444b8d6ea63b96a49 Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
This commit is contained in:
parent
e3df959e01
commit
9c99c0fcda
1 changed files with 4 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
@ -133,6 +133,9 @@ int qcom_icc_rpm_set(struct icc_node *src, struct icc_node *dst)
|
|||
do_div(clk_rate, qn->buswidth);
|
||||
|
||||
bus_clk_rate[i] = max(bus_clk_rate[i], clk_rate);
|
||||
|
||||
if (bus_clk_rate[i] > RPM_CLK_MAX_LEVEL)
|
||||
bus_clk_rate[i] = RPM_CLK_MAX_LEVEL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue