Re: [spi-devel-general] [Patch] Add spi full duplex mode transfer support

From: David Brownell
Date: Wed Aug 30 2006 - 11:32:45 EST


On Wednesday 30 August 2006 3:37 am, Manish Jaggi wrote:
>
> On the same lines can we have a member in spi_transfer structure
> like bUseDMA.

LinuxStronglyAvoidsMixedCaseSymbols, see Documentation/CodingStyle.


> In spi PIO mode for short writes of 2 to 8 words is better.
> And we use DMA for larger writes/reads
>
> What do u think?

I think that such tradeoffs are best hidden from the upper layer
(protocol) drivers, since they're specific to the hardware and
to how the driver is implemented. So the lower level (controller)
driver should make such tradeoffs.

It's also a change of $SUBJECT but that's a different issue. :)

- Dave


-
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/