Re: [PATCH] spi-gpio: Implement spidelay() for busses that need it.

From: Michael Buesch
Date: Mon Feb 16 2009 - 16:55:50 EST


On Monday 16 February 2009 21:42:27 David Brownell wrote:
> [
> NOTE: removed openwrt from the cc list, it rejects posts
> from non-subscribers. Please don't cc such lists.
> ]

I'm sorry, I didn't know that it bounces nonsubscribers.

> On Sunday 15 February 2009, Michael Buesch wrote:
> > + * NOTE:  to clock "as fast as we can", set spi_device.max_speed_hz
> > + * and spi_transfer.speed_hz to 0.
>
> Won't work; if spi->max_speed_hz is zero, spi_async() and
> friends will refuse to queue any messages.

Well, why would they do this? Any special reason?

> I'm not averse to a solution that lets some boards use a
> slowed-down bitbang loop. But it would be a lot easier
> if you kept the default the way it is, and just added
> that slowdown as an option for the existing customization
> case (currently oriented towards speedup, not slowdown).

Tell me how to. This patch works for me and I'm only going to change it
if you tell me how to. I'm not so involved in the SPI subsystem that I can
see another obvious way to do this. So I need some advise, please.

--
Greetings, Michael.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/