From: David B. <da...@pa...> - 2005-12-23 00:19:04
|
> BTW: the message handling is one per-transfer basis for bitbang. But in > this case it's not possible to imlement chained DMA transfers (2 > channels, one for Rx, one for Tx, basically that's your sample use case :) This library code is intended to help folk get some functional and correct drivers quickly ... with "chained DMA" support being explicitly a non-goal. If you want a top performing driver, you'd go about it differently ... you would handle all the transfers directly, and not use library code like this. Every SOC seems to have its own preferred way to do DMA chaining, so likely the driver would just implement the three spi_master methods directly and map most spi_message objects into single SOC-specific DMA chains. - Dave |