Re: [PATCH v2 1/2] spi: add check_finished() callback

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

 



On Sat, Dec 17, 2016 at 11:16:17PM +0100, Hauke Mehrtens wrote:
> On 12/14/2016 04:21 PM, Mark Brown wrote:

> > Why not just have your interrupt handler schedule something on a
> > workqueue to check whatever it is needs checking here?

> 2. When something went wrong and I got an error IRQ for example, I would
> like to add this information to the spi message that was transfered, but
> the only way I see it to not wake the completion and let it run into a
> timeout.

Just set an error status in the message and then complete the current
transfer or the message.

> I would like to have a function in which I can do some busy waiting till
> the last word is really written to the wire and also return if the
> transfer was successful or what error occurred.

The busy waiting really is pretty specialist.

Attachment: signature.asc
Description: PGP signature


[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