Rajan Vaja
4ebd92d2e2
clk: zynqmp: Fix divider calculation
...
zynqmp_clk_divider_round_rate() returns actual divider value
after calculating from parent rate and desired rate, even though
that rate is not supported by single divider of hardware. It is
also possible that such divisor value can be achieved through 2
different dividers. As, Linux tries to set such divisor value(out
of range) in single divider set divider is getting failed.
Fix the same by computing best possible combination of two
divisors which provides more accurate clock rate.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Tejas Patel <tejas.patel@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Link: https://lkml.kernel.org/r/1575527759-26452-6-git-send-email-rajan.vaja@xilinx.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2020-01-23 13:25:37 -08:00
..
2019-09-19 15:31:46 -07:00
2019-05-21 10:50:46 +02:00
2019-12-01 16:06:02 -08:00
2019-06-19 17:09:55 +02:00
2019-10-16 16:17:50 -07:00
2019-10-16 16:16:50 -07:00
2019-05-21 10:50:46 +02:00
2019-10-16 16:17:14 -07:00
2019-05-21 10:50:46 +02:00
2019-11-27 08:14:17 -08:00
2019-11-08 08:36:12 -08:00
2019-12-01 16:06:02 -08:00
2019-11-27 08:15:13 -08:00
2019-07-17 10:07:48 -07:00
2019-05-30 11:26:32 -07:00
2019-10-16 16:17:46 -07:00
2019-10-14 17:06:27 +02:00
2019-06-05 17:37:18 +02:00
2019-10-17 16:36:11 +02:00
2019-11-27 08:14:38 -08:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-06-05 17:37:15 +02:00
2019-11-13 15:01:17 -08:00
2019-12-05 11:21:24 -08:00
2019-11-01 13:36:39 +01:00
2019-11-05 20:53:42 +01:00
2019-11-27 08:14:38 -08:00
2019-05-30 16:33:37 -07:00
2019-08-16 10:20:07 -07:00
2019-09-20 15:45:07 -07:00
2019-09-06 10:27:40 -07:00
2019-11-27 08:15:00 -08:00
2019-09-19 15:30:40 -07:00
2019-10-29 08:42:31 +01:00
2019-12-01 16:06:02 -08:00
2019-11-13 15:03:27 -08:00
2019-12-01 16:06:02 -08:00
2019-11-08 08:36:12 -08: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
2020-01-23 13:25:37 -08:00
2019-05-30 11:29:52 -07:00
2019-11-26 10:02:48 -08:00
2019-09-06 15:17:02 -07:00
2019-12-01 16:06:02 -08:00
2019-05-30 11:29:19 -07:00
2019-06-19 17:09:55 +02:00
2019-10-03 10:51:11 -07:00
2019-11-22 15:58:27 -08:00
2019-09-17 13:26:31 -07:00
2019-07-17 10:07:48 -07:00
2019-09-06 10:31:16 -07:00
2019-05-30 11:26:32 -07:00
2019-11-22 15:58:04 -08:00
2018-12-11 09:57:47 -08:00
2018-08-02 13:55:00 -07:00
2019-06-25 14:28:01 -07:00
2019-11-22 15:58:04 -08: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-11-22 15:58:04 -08:00
2019-05-15 13:21:37 -07:00
2019-11-22 15:58:04 -08:00
2018-06-06 11:15:43 -07:00
2019-11-08 13:07:59 -08: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
2017-07-21 15:49:54 -07:00
2019-05-15 13:21:37 -07:00
2019-11-22 15:58:04 -08:00
2019-05-30 11:29:22 -07:00
2018-10-31 11:08:30 -07:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:29:52 -07: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
2018-11-06 09:42:12 -08:00
2019-08-12 12:23:01 +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
2019-08-07 14:23:24 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:29:52 -07: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
2019-11-27 08:15:13 -08:00
2019-07-12 11:00:14 -07:00
2019-06-19 17:09:55 +02:00
2019-12-05 11:38:40 -08:00
2019-11-22 15:58:27 -08:00