lkml.org 
[lkml]   [2020]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] spi: spi-bcm-qspi: Use new structure for SPI transfer delays
On Thu, Feb 27, 2020 at 04:10:50PM +0200, Sergiu Cuciurean wrote:

> if (qt->byte >= qt->trans->len) {
> /* we're at the end of the spi_transfer */
> /* in TX mode, need to pause for a delay or CS change */
> - if (qt->trans->delay_usecs &&
> + if (qt->trans->delay.value &&
> + (qt->trans->delay.unit == SPI_DELAY_UNIT_USECS) &&

It doesn't seem ideal that if the delay ends up specified in a unit over
microseconds that we end up just ignoring the delay entirely. This
probably needs fixing in the core though, for example allowing the
driver to say what range of delays it can actually implement.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2020-02-27 16:30    [W:0.031 / U:5.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site