Re: [PATCH] regulator: pwm: Try to avoid voltage error in duty cycle calculation

2016-04-04 Thread Mark Brown
On Sun, Apr 03, 2016 at 04:37:18PM +0530, Laxman Dewangan wrote: > On Saturday 02 April 2016 10:23 PM, Mark Brown wrote: > >Yes, you're doing a 64 bit divide so that's kind of expected... > Is there any way to resolve this issue? You need to reorganize the maths so you're not doing a 64 bit divi

Re: [PATCH] regulator: pwm: Try to avoid voltage error in duty cycle calculation

2016-04-03 Thread Laxman Dewangan
On Saturday 02 April 2016 10:23 PM, Mark Brown wrote: * PGP Signed by an unknown key On Fri, Apr 01, 2016 at 12:02:19PM +0530, Laxman Dewangan wrote: On Friday 01 April 2016 11:55 AM, kbuild test robot wrote: pwm-regulator.c:(.text+0x1728d4): undefined reference to `__umoddi3' pwm-regulator.c

Re: [PATCH] regulator: pwm: Try to avoid voltage error in duty cycle calculation

2016-04-02 Thread Mark Brown
On Fri, Apr 01, 2016 at 12:02:19PM +0530, Laxman Dewangan wrote: > On Friday 01 April 2016 11:55 AM, kbuild test robot wrote: > >>>pwm-regulator.c:(.text+0x1728d4): undefined reference to `__umoddi3' > >>>pwm-regulator.c:(.text+0x1728fd): undefined reference to `__udivdi3' > Seems build error is

Re: [PATCH] regulator: pwm: Try to avoid voltage error in duty cycle calculation

2016-03-31 Thread Laxman Dewangan
On Friday 01 April 2016 11:55 AM, kbuild test robot wrote: Hi Laxman, [auto build test ERROR on regulator/for-next] [also build test ERROR on v4.6-rc1 next-20160401] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.co

Re: [PATCH] regulator: pwm: Try to avoid voltage error in duty cycle calculation

2016-03-31 Thread kbuild test robot
Hi Laxman, [auto build test ERROR on regulator/for-next] [also build test ERROR on v4.6-rc1 next-20160401] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Laxman-Dewangan/regulator-pwm-Try-to-a

Re: [PATCH] regulator: pwm: Try to avoid voltage error in duty cycle calculation

2016-03-31 Thread kbuild test robot
Hi Laxman, [auto build test ERROR on regulator/for-next] [also build test ERROR on v4.6-rc1 next-20160401] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Laxman-Dewangan/regulator-pwm-Try-to-a

[PATCH] regulator: pwm: Try to avoid voltage error in duty cycle calculation

2016-03-31 Thread Laxman Dewangan
In continuous mode of the PWM regulators, the requested voltage PWM duty cycle is calculated in terms of 100% scale where entire range denotes 100%. The calculation for PWM pulse ON time(duty_pulse) is done as: duty_cycle = ((requested - minimum) * 100) / voltage_range. duty pulse is cal