Andy Shevchenko
684309e504
pwm: lpss: Avoid potential overflow of base_unit
...
The resolution of base_unit is derived from base_unit_bits and thus must be
equal to (2^base_unit_bits - 1). Otherwise frequency and therefore base_unit
might potentially overflow.
Prevent the above by substracting 1 in all cases where base_unit_bits or
derivative is used.
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
2017-01-30 08:13:19 +01:00
..
2016-09-05 16:45:39 +02:00
2017-01-19 00:38:17 +01:00
2016-11-29 16:50:12 +01:00
2014-10-20 16:21:28 +02:00
2016-06-14 10:51:45 +02:00
2015-10-06 12:33:14 +02:00
2016-07-11 12:49:36 +02:00
2015-12-16 16:45:32 +01:00
2016-07-11 12:49:25 +02:00
2015-08-17 16:19:41 +02:00
2016-09-06 10:48:52 +02:00
2017-01-19 00:38:17 +01:00
2016-03-23 17:11:45 +01:00
2016-07-06 17:38:17 +02:00
2016-05-17 14:44:59 +02:00
2016-09-06 10:48:54 +02:00
2015-07-20 09:46:06 +02:00
2016-04-14 16:54:00 +02:00
2016-11-29 16:50:12 +01:00
2016-03-23 17:11:02 +01:00
2017-01-19 00:38:17 +01:00
2014-10-20 16:21:28 +02:00
2014-10-20 16:21:28 +02:00
2016-09-08 10:55:05 +02:00
2016-07-11 12:49:29 +02:00
2016-07-11 12:07:25 +02:00
2015-11-06 14:34:13 +01:00
2017-01-30 08:13:19 +01:00
2015-12-16 16:45:38 +01:00
2016-12-15 11:45:13 -08:00
2016-09-06 10:48:53 +02:00
2015-07-20 09:46:06 +02:00
2016-06-29 21:54:00 -07:00
2017-01-20 07:43:22 +01:00
2014-10-20 16:21:28 +02:00
2017-01-19 00:38:17 +01:00
2016-05-17 14:44:57 +02:00
2015-07-20 09:46:06 +02:00
2016-07-11 12:49:28 +02:00
2016-09-06 10:48:55 +02:00
2014-10-20 16:21:28 +02:00
2016-09-08 10:55:12 +02:00
2016-07-11 12:49:29 +02:00
2016-09-08 10:55:05 +02:00
2016-07-11 12:49:34 +02:00
2016-07-11 12:07:18 +02:00
2016-07-11 12:07:18 +02:00
2016-09-06 10:48:54 +02:00
2013-10-08 15:45:44 +02:00
2016-09-05 07:13:47 +02:00
2017-01-19 00:38:17 +01:00
2016-11-29 16:43:24 +01:00