Re: [U-Boot] [PATCH] spi: designware_spi: Fix detecting FIFO depth

2015-01-06 Thread Jagan Teki
On 6 January 2015 at 15:28, Stefan Roese wrote: > On 06.01.2015 01:08, Axel Lin wrote: >> >> Current code tries to find the highest valid fifo depth by checking the >> value >> it wrote to DW_SPI_TXFLTR. There are a few problems in current code: >> 1) There is an off-by-one in dws->fifo_len settin

Re: [U-Boot] [PATCH] spi: designware_spi: Fix detecting FIFO depth

2015-01-06 Thread Stefan Roese
On 06.01.2015 01:08, Axel Lin wrote: Current code tries to find the highest valid fifo depth by checking the value it wrote to DW_SPI_TXFLTR. There are a few problems in current code: 1) There is an off-by-one in dws->fifo_len setting because it assumes the latest register write fails so the