lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 8 Aug 2018 15:26:02 +0300 From: Andy Shevchenko <andy.shevchenko@...il.com> To: Simon Goldschmidt <simon.k.r.goldschmidt@...il.com> Cc: Mark Brown <broonie@...nel.org>, linux-spi <linux-spi@...r.kernel.org>, Linux Kernel Mailing List <linux-kernel@...r.kernel.org> Subject: Re: [PATCH] spi: dw: support 4-16 bits per word On Wed, Aug 8, 2018 at 2:58 PM, Simon Goldschmidt <simon.k.r.goldschmidt@...il.com> wrote: > On Wed, Aug 8, 2018 at 11:45 AM Andy Shevchenko > <andy.shevchenko@...il.com> wrote: >> On Wed, Aug 8, 2018 at 10:14 AM, Simon Goldschmidt >> <simon.k.r.goldschmidt@...il.com> wrote: >> n_bytes = round_up(8); >> dma_width = round_up(8); > > I guess you mean: > > n_bytes = round_up(transfer->bits_per_word, 8); > > But that would yield 8 or 16 where we need 1 or 2. Indeed. > Reading spi-imx.c, this might work: > > n_bytes = DIV_ROUND_UP(transfer->bits_per_word, BITS_PER_BYTE); Yes. -- With Best Regards, Andy Shevchenko
Powered by blists - more mailing lists