linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* spi-atmel broken in next
@ 2013-02-17 11:15 Joachim Eastwood
       [not found] ` <CAGhQ9VwoehjY4niDqcnb88va9vNLw=jFmxOnq6k0QP6GZJ4gqQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Joachim Eastwood @ 2013-02-17 11:15 UTC (permalink / raw)
  To: grant.likely-s3s/WqlpOiPyB63q8FvJNQ
  Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	ldewangan-DDmLM1+adcrQT0dZR+AlfA, Nicolas Ferre,
	wenyou.yang-AIFe0yeh4nAAvxtiuMwx3w

Hi,

spi-atmel is now broken for all spi transfers in linux-next. This is
caused by commit "spi: make sure all transfer has proper speed set".
The reason is the following code in atmel_spi_transfer(...)

 849  /* FIXME implement these protocol options!! */
 850  if (xfer->speed_hz) {
 851      dev_dbg(&spi->dev, "no protocol options yet\n");
 852      return -ENOPROTOOPT;
 853  }

Now that xfer->speed_hz is always set all spi transfers will return
with ENOPROTOOPT.

Not quite sure how to best fix it. Just removing the whole test
makes it work again but I guess we should do something better
with speed_hz here.

One little question; Is a per transfer speed setting really sensible?
As far as I can see from grepping the kernel source it's not
used by device drivers.


regards
Joachim Eastwood

------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-02 22:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-17 11:15 spi-atmel broken in next Joachim Eastwood
     [not found] ` <CAGhQ9VwoehjY4niDqcnb88va9vNLw=jFmxOnq6k0QP6GZJ4gqQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-02-17 20:12   ` Grant Likely
     [not found]     ` <CACxGe6u0o0V3Jm9-iyizKH5KX=dPe-CL0bH-Kc7KM_k6gAk69A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-02-19 21:44       ` [PATCH] spi/atmel: fix speed_hz check in atmel_spi_transfer() Joachim Eastwood
     [not found]         ` <1361310297-28002-1-git-send-email-manabian-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-02-20  7:51           ` Nicolas Ferre
     [not found]             ` <51248094.90808-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
2013-03-02 22:31               ` Grant Likely

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