Re: [PATCH v3 1/2] spi: add transfer_status() callback

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

 



On Tue, Jan 03, 2017 at 06:20:14PM +0100, Hauke Mehrtens wrote:
> This callback allows a driver to return the status of the SPI transfer
> which was asynchronously scheduled by transfer_one().
> 
> Currently a call to spi_finalize_current_transfer() will mark the
> transfer as transferred successfully. To return an error it is only
> possible to not call spi_finalize_current_transfer() at all and let
> this time out and result in a timeout error. With this callback the
> driver gets asked about the status of the last transfer.

There's already an interface for that - set the status in the message
before notifying completion.

> In the Lantiq driver I want to use this to circumvent a strange
> hardware design in addition.

That's a separate thing...

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