linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Hauke Mehrtens <hauke-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>
Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	hauke.mehrtens-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
	thomas.langer-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
	daniel.schwierzeck-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	john-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org,
	nbd-Vt+b4OUoWG0@public.gmane.org
Subject: Re: [PATCH v3 1/2] spi: add transfer_status() callback
Date: Tue, 17 Jan 2017 19:18:02 +0000	[thread overview]
Message-ID: <20170117191802.cgbpnksly4vxamvu@sirena.org.uk> (raw)
In-Reply-To: <20170103172015.13052-2-hauke-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 776 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  parent reply	other threads:[~2017-01-17 19:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-03 17:20 [PATCH v3 0/2] spi: lantiq-ssc: add support for Lantiq SSC SPI controller Hauke Mehrtens
     [not found] ` <20170103172015.13052-1-hauke-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>
2017-01-03 17:20   ` [PATCH v3 1/2] spi: add transfer_status() callback Hauke Mehrtens
     [not found]     ` <20170103172015.13052-2-hauke-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>
2017-01-10 12:37       ` Mark Brown
2017-01-17 19:18       ` Mark Brown [this message]
2017-01-03 17:20   ` [PATCH v3 2/2] spi: lantiq-ssc: add support for Lantiq SSC SPI controller Hauke Mehrtens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170117191802.cgbpnksly4vxamvu@sirena.org.uk \
    --to=broonie-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
    --cc=daniel.schwierzeck-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=hauke-5/S+JYg5SzeELgA04lAiVw@public.gmane.org \
    --cc=hauke.mehrtens-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=john-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org \
    --cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=nbd-Vt+b4OUoWG0@public.gmane.org \
    --cc=thomas.langer-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).