On 7 March 2013 04:26, Wenyou Yang <wenyou.y...@atmel.com> wrote: > commit: 059b8ffeee5b427949872bb6ed5db5ae0788054e > cause the atmel spi probing failure. > > Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> > Cc: spi-devel-general@lists.sourceforge.net > Cc: linux-ker...@vger.kernel.org > --- > drivers/spi/spi-atmel.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c > index 656d137..1eca815 100644 > --- a/drivers/spi/spi-atmel.c > +++ b/drivers/spi/spi-atmel.c > @@ -846,9 +846,9 @@ static int atmel_spi_transfer(struct spi_device *spi, > struct spi_message *msg) > } > } > > - /* FIXME implement these protocol options!! */ > - if (xfer->speed_hz) { > - dev_dbg(&spi->dev, "no protocol options yet\n"); > + if (xfer->speed_hz < spi->max_speed_hz) { > + dev_dbg(&spi->dev, > + "speed in transfer less than bus speed\n"); > return -ENOPROTOOPT; > }
I sent a similar patch to spi-devl a while ago, which Grant said he applied. https://patchwork.kernel.org/patch/2165301/ Can't find the patch in any upstream git tree so I guess Grant hasn't pushed it yet. regards Joachim Eastwood ------------------------------------------------------------------------------ Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev _______________________________________________ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general