Re: [U-Boot] [PATCH 2/2] spi: ti_qspi: Fix baudrate divider calculation

2016-10-26 Thread Jagan Teki
On Fri, Oct 14, 2016 at 4:18 PM, R, Vignesh wrote: > > > On 10/14/2016 12:27 PM, Jagan Teki wrote: >> On Fri, Oct 14, 2016 at 10:54 AM, Vignesh R wrote: > ... > DECLARE_GLOBAL_DATA_PTR; > > @@ -118,7 +119,7 @@ static void ti_spi_set_speed(struct ti_qspi_priv > *priv, uint hz) >>

Re: [U-Boot] [PATCH 2/2] spi: ti_qspi: Fix baudrate divider calculation

2016-10-14 Thread Jagan Teki
On Fri, Oct 14, 2016 at 10:54 AM, Vignesh R wrote: > Hi, > > On Thursday 13 October 2016 05:41 PM, Jagan Teki wrote: >> On Wed, Oct 12, 2016 at 9:46 AM, Vignesh R wrote: >>> Fix the divider calculation logic to choose a value so that the >>> resulting baudrate is either equal to or closest possib

Re: [U-Boot] [PATCH 2/2] spi: ti_qspi: Fix baudrate divider calculation

2016-10-14 Thread R, Vignesh
On 10/14/2016 12:27 PM, Jagan Teki wrote: > On Fri, Oct 14, 2016 at 10:54 AM, Vignesh R wrote: ... DECLARE_GLOBAL_DATA_PTR; @@ -118,7 +119,7 @@ static void ti_spi_set_speed(struct ti_qspi_priv *priv, uint hz) if (!hz) clk_div = 0;

Re: [U-Boot] [PATCH 2/2] spi: ti_qspi: Fix baudrate divider calculation

2016-10-13 Thread Vignesh R
Hi, On Thursday 13 October 2016 05:41 PM, Jagan Teki wrote: > On Wed, Oct 12, 2016 at 9:46 AM, Vignesh R wrote: >> Fix the divider calculation logic to choose a value so that the >> resulting baudrate is either equal to or closest possible baudrate less >> than the requested value. >> >> Signed-o

Re: [U-Boot] [PATCH 2/2] spi: ti_qspi: Fix baudrate divider calculation

2016-10-13 Thread Jagan Teki
On Wed, Oct 12, 2016 at 9:46 AM, Vignesh R wrote: > Fix the divider calculation logic to choose a value so that the > resulting baudrate is either equal to or closest possible baudrate less > than the requested value. > > Signed-off-by: Vignesh R > --- > drivers/spi/ti_qspi.c | 3 ++- > 1 file c

[U-Boot] [PATCH 2/2] spi: ti_qspi: Fix baudrate divider calculation

2016-10-11 Thread Vignesh R
Fix the divider calculation logic to choose a value so that the resulting baudrate is either equal to or closest possible baudrate less than the requested value. Signed-off-by: Vignesh R --- drivers/spi/ti_qspi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/spi/t