New driver for MCP2210 (USB to SPI bridge w/GPIO)
Quoted 6 lines
3. When my driver is called via the functions exported in the struct
spi_masterafter I register it withspi_register_master(), I'm presuming these will never be in an interrupt context (soft or hard). Is that correct? (I'm planning on using simple mutexes for locking.)
Correction, I'll be calling transfer_one_message() instead of transfer(), as I now see that this function is depreciated (thanks to the output in dmesg). And the docs say that I can sleep in these functions, so I presume that mutex_(un)lock is fine.
Daniel
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
Quoted 4 lines
4. How do I specify in my specific driver that it's dependent upon the generic MCP2210 driver? I know that's easy if it's in-tree via
Kconfig, but out-of-tree, duringmodule_initor some such?
hah! Well I appear to have answered two of my own questions now. Looks like depmod actually figures out what unresolved symbols you have and find the modules that way, very nice! Maybe this also answers my 5th question as well.
Daniel
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter