Re: [PATCH v2] spi: pxa2xx: fix SCR (divisor) calculation

2019-04-12 Thread Jarkko Nikula
On 4/12/19 10:32 AM, Flavio Suligoi wrote: Calculate the divisor for the SCR (Serial Clock Rate), avoiding that the SSP transmission rate can be greater than the device rate. When the division between the SSP clock and the device rate generates a reminder, we have to increment by one the

[PATCH v2] spi: pxa2xx: fix SCR (divisor) calculation

2019-04-12 Thread Flavio Suligoi
Calculate the divisor for the SCR (Serial Clock Rate), avoiding that the SSP transmission rate can be greater than the device rate. When the division between the SSP clock and the device rate generates a reminder, we have to increment by one the divisor. In this way the resulting SSP clock will