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:

> 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.

Errors are returned by setting the status field in the current message.
Look at the code in _transfer_one_message(), if the status changes from
-EINPROGRESS we'll handle this as an error.

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