Re: [PATCH 1/2] pwm: tegra: Read PWM clock source rate in driver init

2017-04-13 Thread Thierry Reding
On Thu, Apr 13, 2017 at 07:40:27PM +0530, Laxman Dewangan wrote: > It is required to know the PWM clock source frequency to > calculate the PWM period. > > In driver, the clock source frequency of the PWM does not > get change and, hence, get the clock source frequency in > driver initi. Get this

[PATCH 1/2] pwm: tegra: Read PWM clock source rate in driver init

2017-04-13 Thread Laxman Dewangan
It is required to know the PWM clock source frequency to calculate the PWM period. In driver, the clock source frequency of the PWM does not get change and, hence, get the clock source frequency in driver initi. Get this values later for period calculation from pwm_config(). This will help in avo