Re: [PATCH v2 1/2] spi: fsl-dspi: Fix clock rate scale values

2015-03-31 Thread Mark Brown
On Mon, Mar 30, 2015 at 10:49:15AM -0700, Aaron Brice wrote: > Previous algorithm had an outer loop with the values {2,3,5,7} and an > inner loop with {2,4,6,8,16,32,...,32768}, and would pick the first > value over the required scaling value (where the total scale was the two > numbers

Re: [PATCH v2 1/2] spi: fsl-dspi: Fix clock rate scale values

2015-03-31 Thread Mark Brown
On Mon, Mar 30, 2015 at 10:49:15AM -0700, Aaron Brice wrote: Previous algorithm had an outer loop with the values {2,3,5,7} and an inner loop with {2,4,6,8,16,32,...,32768}, and would pick the first value over the required scaling value (where the total scale was the two numbers multiplied).

[PATCH v2 1/2] spi: fsl-dspi: Fix clock rate scale values

2015-03-30 Thread Aaron Brice
Previous algorithm had an outer loop with the values {2,3,5,7} and an inner loop with {2,4,6,8,16,32,...,32768}, and would pick the first value over the required scaling value (where the total scale was the two numbers multiplied). Since the inner loop went up to 32768 it would always pick a

[PATCH v2 1/2] spi: fsl-dspi: Fix clock rate scale values

2015-03-30 Thread Aaron Brice
Previous algorithm had an outer loop with the values {2,3,5,7} and an inner loop with {2,4,6,8,16,32,...,32768}, and would pick the first value over the required scaling value (where the total scale was the two numbers multiplied). Since the inner loop went up to 32768 it would always pick a