From: Chris Ruehl <chris.ruehl-CR359r9tUDPXPF5Rlphj1Q@public.gmane.org>
To: Vladimir Zapolskiy
<vladimir_zapolskiy-nmGgyN9QBj3QT0dZR+AlfA@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: Wed, 1 Jun 2016 09:48:20 +0800 [thread overview]
Message-ID: <574E3EE4.2030806@gtsys.com.hk> (raw)
In-Reply-To: <574D7366.5050203-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
On Tuesday, May 31, 2016 07:20 PM, Vladimir Zapolskiy wrote:
> 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.
Board is a imx6d and its runs in DMA mode. I have the MPL115A working properly
when I keep an eye on even numbers of bytes in a transfer (which is always the
case in a half duplex mode <cmd><00>..)
But any how thanks for this interesting info!
Chris
--
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
next prev parent reply other threads:[~2016-06-01 1:48 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
[not found] ` <574D7366.5050203-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
2016-06-01 1:48 ` Chris Ruehl [this message]
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=574E3EE4.2030806@gtsys.com.hk \
--to=chris.ruehl-cr359r9tudpxpf5rlphj1q@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=festevam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=vladimir_zapolskiy-nmGgyN9QBj3QT0dZR+AlfA@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).