All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vladimir Zapolskiy <vladimir_zapolskiy-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
To: Chris Ruehl <chris.ruehl-CR359r9tUDPXPF5Rlphj1Q@public.gmane.org>,
	<linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Cc: Fabio Estevam <festevam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	<broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Subject: Re: spi-imx: add support for single burst mode (8,16,32)
Date: Tue, 31 May 2016 14:20:06 +0300	[thread overview]
Message-ID: <574D7366.5050203@mentor.com> (raw)
In-Reply-To: <574D5C2B.1000400-CR359r9tUDPXPF5Rlphj1Q@public.gmane.org>

On 31.05.2016 12:40, Chris Ruehl wrote:
> Hi,
> 
> as imx6 using multiple burst to send data to spi slaves and drop the chipselect 
> between the words by default my sensor NXP MPL115A1 wasn't working.
> The hint comes from a discussion in the Freescale forum from 2013 where Jeff 
> Coffman posted his solution for a 3.x kernel.
> I'd pick-up the idea behind and develop something which works "so far" with
> 4.6 and linux-next
> 
> Up front - I'm not happy using the xfer->cs_change to get set the single burst
> I more likely want add a new xfer bit which allow to dedicated set a single burst.
> To replace todays:
>          xfer[0].cs_change = 0;
> with a
> 	xfer[0].singleburst = 1;
> 
> An other issue with is not yet solved; when I have a odd number of bytes (8 bpw) 
> in a transfer, its result in 3 bytes eaten on the start and 0x00 added on the 
> tail -

Do you use PIO or DMA transfer mode? The problem description resembles
a known issue within SDMA firmware (referenced as TKT238285 or ERR008517)
and you should not be able to face it, if SPI controller operates in PIO
mode.

--
With best wishes,
Vladimir
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2016-05-31 11:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-31  9:40 spi-imx: add support for single burst mode (8,16,32) Chris Ruehl
     [not found] ` <574D5C2B.1000400-CR359r9tUDPXPF5Rlphj1Q@public.gmane.org>
2016-05-31 10:43   ` Fabio Estevam
     [not found]     ` <CAOMZO5CiW3J+naHfitjv59i4xisYB1R3ATs2qvz4mLh_FMyf+g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-31 11:06       ` Sascha Hauer
     [not found]         ` <20160531110608.GG31666-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2016-06-01  1:54           ` Chris Ruehl
     [not found]             ` <574E405F.9090000-CR359r9tUDPXPF5Rlphj1Q@public.gmane.org>
2016-06-01  6:30               ` Sascha Hauer
     [not found]                 ` <20160601063029.GB11074-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2016-06-01  6:39                   ` Chris Ruehl
2016-05-31 11:20   ` Vladimir Zapolskiy [this message]
     [not found]     ` <574D7366.5050203-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
2016-06-01  1:48       ` Chris Ruehl
2016-05-31 13:08   ` Mark Brown
     [not found]     ` <20160531130828.GB29837-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2016-06-01  1:58       ` Chris Ruehl

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=574D7366.5050203@mentor.com \
    --to=vladimir_zapolskiy-nmggyn9qbj3qt0dzr+alfa@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=chris.ruehl-CR359r9tUDPXPF5Rlphj1Q@public.gmane.org \
    --cc=festevam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.