2011/5/19 Vitaly Wool <[email protected]>: >> + >> + timeout = jiffies + msecs_to_jiffies(SPI_POLLING_TIMEOUT); >> + while (pl022->tx < pl022->tx_end || pl022->rx < >> pl022->rx_end) { >> + time = jiffies; >> readwriter(pl022); >> + if (time_after(time, timeout)) { >> + dev_warn(&pl022->adev->dev, >> + "%s: timeout!\n", __func__); >> + message->state = STATE_ERROR; >> + goto out; >> + } >> + } > > just out of curiosity: is it a busy wait? Looks like it is...
Yep that's the polling mode part. IRQ and DMA mode should be the norm I guess. Magnus: do you have a specific use case for this thing? Yours, Linus Walleij ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ spi-devel-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spi-devel-general
