Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1227812

spi-imx: wait_for_completion should timeout even in non-DMA transfer cases

From Jean-Michel Hautbois <jean-michel.hautbois@veo-labs.com>
Newsgroups linux.kernel
Subject spi-imx: wait_for_completion should timeout even in non-DMA transfer cases
Date 2015-09-18 14:40 +0200
Message-ID <qa37j-2Hb-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

I am wondering why in spi-imx the spi_imx_pio_transfer() function is
calling wait_for_completion() and not wait_for_completion_timeout() as
in the spi_imx_dma_transfer() one.
I can't see a good reason for this, maybe should it be calculated
based on the spi clock and transfer->len, or at least be the same as
IMX_DMA_TIMEOUT which is 3 seconds ?
If you want it, I have a patch, just tell me if you are interested and
if you prefer a calculated timeout or even something else ?

Thanks,
JM
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

spi-imx: wait_for_completion should timeout even in non-DMA transfer cases Jean-Michel Hautbois <jean-michel.hautbois@veo-labs.com> - 2015-09-18 14:40 +0200
  Re: spi-imx: wait_for_completion should timeout even in non-DMA  transfer cases Mark Brown <broonie@kernel.org> - 2015-09-20 02:40 +0200
    Re: spi-imx: wait_for_completion should timeout even in non-DMA  transfer cases Jean-Michel Hautbois <jean-michel.hautbois@veo-labs.com> - 2015-09-21 11:10 +0200

csiph-web