[PATCH] RFC: spi/sa1100: rewrite the SA1100 SPI driver

Grant Likely grant.likely at secretlab.ca
Thu Jan 19 12:53:07 EST 2012


On Thu, Jan 19, 2012 at 10:49 AM, Linus Walleij
<linus.walleij at linaro.org> wrote:
> On Wed, Jan 18, 2012 at 1:30 PM, Russell King - ARM Linux
> <linux at arm.linux.org.uk> wrote:
>> On Wed, Jan 18, 2012 at 01:13:29PM +0100, Linus Walleij wrote:
>
>>> We usually merge drivers for microwire, TI, Motorola ... etc into
>>> drivers/spi as well. It's a good enough fit, the differences are very
>>> small. This is how we configure mode from the PL022 driver platform data:
>>
>> How do you send audio data at 16-bit 2 channel 48kHz continuously with
>> the SPI subsystem?
>
> Can't say because we haven't used it for audio transfers. However
> I am pretty convinced that it'd work because we're running a
> 20 Mbit data link on that SPI port.
>
> To get the high data rates we have an internal message queue in
> the driver that saturates the SPI port. Sometimes we even start to
> run parts of the driver in parallel on two cores: CPU0 is handling
> IRQs from the driver while CPU1 is preparing messages to/from
> the SPI subsystem.

It's not the hardware that is the issue, it is the SPI subsystem which
is absolutely not set up for the kind of low-latency (note: not
high-throughput) transfers that are wanted for audio streams.

g.



More information about the linux-arm-kernel mailing list