Re: [PATCH V2] spi: bcm2835: enabling polling mode for transfers shorter than 30us

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On 18.04.2015, at 13:53, Mark Brown <broonie@xxxxxxxxxx> wrote:
> 
> As I've said several times now 1s seems far too long for a busy wait,
> the driver should fall back to something that sleeps after an initial
> busy wait (once it's clear we're over time).
Then I have misread what you wrote - I understood you wanted to avoid
having no timeout at all.

So you want something like:
* wait for 4 jiffies (which is 40ms typically)
* if we exceed that, then enable interrupts for the rest of the transfer
and let the 30s timeout handle everything else

Martin
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux