Skip to contentSkip to conversation

new spi_device features

DISCUSSION Colin McCabe 1 participant 1 message Jan 3, 2009 SPI

lore
Share & tools
lore
#0 lore raw

Hi all.

I've been using the generic SPI support in include/linux/spi/spi.h and for the most part it is just what the doctor ordered. However, there are a few features I'd like to see included in the generic SPI framework that aren't there now.

I would like to see support for a "GPIO-style chipselect"-- i.e., a chipselect that stays active for the entire transaction, rather than being dropped after each individual word in the transaction. I would also like to be able to add busy-waits into the transaction. (I cannot simply use 2 different transactions, because the busy wait must take place with chip select asserted.)

A few SPI controller drivers seem to already implement GPIO-style chip selects. But they must be configured using board-specific options. And, of course, busy-waits can be implemented in the core without SPI controller support.

There is a comment in spi.h that says that we "likely need more hooks for more protocol options affecting how the controller talks to each chip," and goes on to mention these two features, among others. Does anyone have a patch that adds support for these features? If not, I would like to create one. In that case, what git repository should I base my patches against?

sincerely,
Colin

------------------------------------------------------------------------------