Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1230524
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: spi-imx: wait_for_completion should timeout even in non-DMA transfer cases |
| Date | 2015-09-22 19:30 +0200 |
| Message-ID | <qbzya-3xX-11@gated-at.bofh.it> (permalink) |
| References | <qa37j-2Hb-9@gated-at.bofh.it> <qaAPE-JA-15@gated-at.bofh.it> <qb5gL-297-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Mon, Sep 21, 2015 at 11:08:55AM +0200, Jean-Michel Hautbois wrote: > 2015-09-19 19:56 GMT+02:00 Mark Brown <broonie@kernel.org>: > > A calculated timeout is probably best. > Well, it depends... > If you have a 20MHz clock, then you can transfer a byte in 4µs. > As most of the time pio_transfer is used for 8 to 32 bytes max, it > would be irrelevant to use such a small timeout. > I can obviously do it, but not sure if using a small (say, 100ms) > timeout would not be better. You want a minimum threashold, yes, but you also need to be able toc ope with larger transfers too so need to be able to raise that where appropriate.
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: spi-imx: wait_for_completion should timeout even in non-DMA transfer cases Mark Brown <broonie@kernel.org> - 2015-09-22 19:30 +0200
csiph-web