Re: [U-Boot] [PATCH v2 2/8] spi: cadence_qspi: Fix baud rate calculation

2016-11-25 Thread Jagan Teki
On Fri, Nov 25, 2016 at 9:23 PM, Marek Vasut wrote: > On 11/25/2016 04:19 PM, Phil Edworthy wrote: >> Hi Marek, >> >> On 25 November 2016 14:58 Marek Vasut wrote: >>> On 11/25/2016 03:38 PM, Phil Edworthy wrote: With the existing code, when the requested SPI clock rate is near to the low

Re: [U-Boot] [PATCH v2 2/8] spi: cadence_qspi: Fix baud rate calculation

2016-11-25 Thread Phil Edworthy
Hi Jagan, On 25 November 2016 15:42 Jagan Teki wrote: > On Fri, Nov 25, 2016 at 8:08 PM, Phil Edworthy > wrote: > > With the existing code, when the requested SPI clock rate is near > > to the lowest that can be achieved by the hardware (max divider > > of the ref clock is 32), the generated cloc

Re: [U-Boot] [PATCH v2 2/8] spi: cadence_qspi: Fix baud rate calculation

2016-11-25 Thread Marek Vasut
On 11/25/2016 04:19 PM, Phil Edworthy wrote: > Hi Marek, > > On 25 November 2016 14:58 Marek Vasut wrote: >> On 11/25/2016 03:38 PM, Phil Edworthy wrote: >>> With the existing code, when the requested SPI clock rate is near >>> to the lowest that can be achieved by the hardware (max divider >>> of

Re: [U-Boot] [PATCH v2 2/8] spi: cadence_qspi: Fix baud rate calculation

2016-11-25 Thread Jagan Teki
On Fri, Nov 25, 2016 at 8:08 PM, Phil Edworthy wrote: > With the existing code, when the requested SPI clock rate is near > to the lowest that can be achieved by the hardware (max divider > of the ref clock is 32), the generated clock rate is wrong. > For example, with a 50MHz ref clock, when aske

Re: [U-Boot] [PATCH v2 2/8] spi: cadence_qspi: Fix baud rate calculation

2016-11-25 Thread Phil Edworthy
Hi Marek, On 25 November 2016 14:58 Marek Vasut wrote: > On 11/25/2016 03:38 PM, Phil Edworthy wrote: > > With the existing code, when the requested SPI clock rate is near > > to the lowest that can be achieved by the hardware (max divider > > of the ref clock is 32), the generated clock rate is w

Re: [U-Boot] [PATCH v2 2/8] spi: cadence_qspi: Fix baud rate calculation

2016-11-25 Thread Marek Vasut
On 11/25/2016 03:38 PM, Phil Edworthy wrote: > With the existing code, when the requested SPI clock rate is near > to the lowest that can be achieved by the hardware (max divider > of the ref clock is 32), the generated clock rate is wrong. > For example, with a 50MHz ref clock, when asked for anyt

[U-Boot] [PATCH v2 2/8] spi: cadence_qspi: Fix baud rate calculation

2016-11-25 Thread Phil Edworthy
With the existing code, when the requested SPI clock rate is near to the lowest that can be achieved by the hardware (max divider of the ref clock is 32), the generated clock rate is wrong. For example, with a 50MHz ref clock, when asked for anything less than a 1.5MHz SPI clock, the code sets up t