Re: [PATCH v2] spi: dw: support 4-16 bits per word

2018-08-18 Thread Simon Goldschmidt
On Fri, Aug 17, 2018 at 6:32 PM Trent Piepho wrote: > > On Fri, 2018-08-17 at 09:01 +0200, Simon Goldschmidt wrote: > > The spi-dw driver currently only supports 8 or 16 bits per word. > > > > Since the hardware supports 4-16 bits per word, adapt the driver > > to also support this. > > > > > > >

Re: [PATCH v2] spi: dw: support 4-16 bits per word

2018-08-17 Thread Trent Piepho
On Fri, 2018-08-17 at 09:01 +0200, Simon Goldschmidt wrote: > The spi-dw driver currently only supports 8 or 16 bits per word. > > Since the hardware supports 4-16 bits per word, adapt the driver > to also support this. > > > @@ -307,15 +307,13 @@ static int dw_spi_transfer_one(struct spi_contr

Re: [PATCH v2] spi: dw: support 4-16 bits per word

2018-08-17 Thread Andy Shevchenko
On Fri, Aug 17, 2018 at 10:01 AM, Simon Goldschmidt wrote: > The spi-dw driver currently only supports 8 or 16 bits per word. > > Since the hardware supports 4-16 bits per word, adapt the driver > to also support this. > > Tested on socfpga cyclone5 with a 9-bit SPI display. > LGTM, Reviewed-by:

[PATCH v2] spi: dw: support 4-16 bits per word

2018-08-17 Thread Simon Goldschmidt
The spi-dw driver currently only supports 8 or 16 bits per word. Since the hardware supports 4-16 bits per word, adapt the driver to also support this. Tested on socfpga cyclone5 with a 9-bit SPI display. Signed-off-by: Simon Goldschmidt --- Changes in v2: - use DIV_ROUND_UP to calculate numbe