Alok Tiwari
0cbbf2741f
clk: nxp: Fix pll0 rate check condition in LPC18xx CGU driver
...
[ Upstream commit 1624dead9a ]
The conditional check for the PLL0 multiplier 'm' used a logical AND
instead of OR, making the range check ineffective. This patch replaces
&& with || to correctly reject invalid values of 'm' that are either
less than or equal to 0 or greater than LPC18XX_PLL0_MSEL_MAX.
This ensures proper bounds checking during clk rate setting and rounding.
Fixes: b04e0b8fd5 ("clk: add lpc18xx cgu clk driver")
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com >
[sboyd@kernel.org: 'm' is unsigned so remove < condition]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-10-29 13:59:51 +01:00
..
2022-04-15 14:18:19 +02:00
2025-03-13 12:42:55 +01:00
2022-05-25 09:14:36 +02:00
2019-06-19 17:09:55 +02:00
2019-05-21 10:50:46 +02:00
2024-11-08 16:20:44 +01:00
2022-10-26 13:22:35 +02:00
2025-08-28 16:21:20 +02:00
2019-05-21 10:50:46 +02:00
2024-09-12 11:03:51 +02:00
2019-05-30 11:26:32 -07:00
2023-11-20 10:30:10 +01:00
2022-10-05 10:37:42 +02:00
2023-11-20 10:30:10 +01:00
2022-04-15 14:18:19 +02:00
2023-11-20 10:30:11 +01:00
2025-04-10 14:29:41 +02:00
2019-06-05 17:37:18 +02:00
2024-02-23 08:25:01 +01:00
2021-11-17 09:48:41 +01:00
2019-05-30 11:26:37 -07:00
2025-10-29 13:59:51 +01:00
2019-06-05 17:37:15 +02:00
2020-01-04 19:18:11 +01:00
2025-03-13 12:43:07 +01:00
2023-03-11 16:43:51 +01:00
2025-06-27 11:02:55 +01:00
2023-01-18 11:41:12 +01:00
2020-06-30 15:37:01 -04:00
2020-08-21 13:05:34 +02:00
2023-01-18 11:41:13 +01:00
2019-09-06 10:27:40 -07:00
2020-06-24 17:50:35 +02:00
2023-01-18 11:41:38 +01:00
2022-05-09 09:03:25 +02:00
2025-08-28 16:21:20 +02:00
2023-10-10 21:46:39 +02:00
2024-11-08 16:20:31 +01:00
2022-04-15 14:17:58 +02:00
2019-05-30 11:29:22 -07:00
2019-08-07 15:25:25 -07:00
2019-06-19 17:09:55 +02:00
2019-08-16 10:20:15 -07:00
2019-06-05 17:37:13 +02:00
2024-01-25 14:34:28 -08:00
2019-05-30 11:29:52 -07:00
2019-09-06 15:17:02 -07:00
2019-09-06 15:17:02 -07:00
2022-10-26 13:22:43 +02:00
2024-12-14 19:44:31 +01:00
2019-06-19 17:09:55 +02:00
2019-06-27 10:57:24 +01:00
2019-09-17 13:26:31 -07:00
2019-07-17 10:07:48 -07:00
2023-07-27 08:37:15 +02:00
2022-04-15 14:18:19 +02:00
2019-08-16 10:37:01 -07:00
2023-05-17 11:35:51 +02:00
2018-08-02 13:55:00 -07:00
2023-08-30 16:27:25 +02:00
2019-05-07 11:46:02 -07:00
2019-06-19 17:09:55 +02:00
2019-05-07 11:46:13 -07:00
2019-05-15 13:21:37 -07:00
2019-04-26 10:40:49 -07:00
2019-05-15 13:21:37 -07:00
2023-06-09 10:29:01 +02:00
2018-06-06 11:15:43 -07:00
2020-01-04 19:17:21 +01:00
2019-06-05 17:36:37 +02:00
2019-05-30 11:29:52 -07:00
2019-05-15 13:21:37 -07:00
2019-08-16 10:20:07 -07:00
2018-07-06 13:44:06 -07:00
2019-02-06 10:35:03 -08:00
2019-08-16 10:20:15 -07:00
2019-05-15 13:21:37 -07:00
2019-05-07 11:46:02 -07:00
2019-05-30 11:29:22 -07:00
2023-11-20 10:30:10 +01:00
2019-06-19 17:09:55 +02:00
2022-10-26 13:22:34 +02:00
2018-11-06 09:41:44 -08:00
2019-07-17 10:07:48 -07:00
2019-08-07 14:17:49 -07:00
2019-07-15 20:18:40 -07:00
2020-12-30 11:51:29 +01:00
2023-11-20 10:30:12 +01:00
2019-05-30 11:29:52 -07:00
2019-05-30 11:26:37 -07:00
2019-06-27 13:45:38 -07:00
2019-05-30 11:26:37 -07:00
2024-01-25 14:34:28 -08:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2022-01-27 09:19:39 +01:00
2018-08-30 09:50:20 -07:00
2019-04-29 11:13:23 -07:00
2018-08-30 09:50:20 -07:00
2019-06-05 17:37:07 +02:00
2019-05-30 11:29:22 -07:00
2019-05-30 11:26:37 -07:00
2019-06-05 17:36:37 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:35 -07:00
2025-05-02 07:39:28 +02:00
2019-07-12 11:00:14 -07:00
2019-06-19 17:09:55 +02:00
2023-09-23 10:59:39 +02:00
2019-09-06 15:22:29 -07:00