* Re: New driver for MCP2210 (USB to SPI bridge w/GPIO)
[not found] ` <5169DE3F.5030909-fOdFMYwuEsI@public.gmane.org>
@ 2013-04-13 23:47 ` Daniel Santos
2013-04-14 4:35 ` Daniel Santos
1 sibling, 0 replies; 2+ messages in thread
From: Daniel Santos @ 2013-04-13 23:47 UTC (permalink / raw)
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
> 3. When my driver is called via the functions exported in the struct
> spi_master after I register it with spi_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
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: New driver for MCP2210 (USB to SPI bridge w/GPIO)
[not found] ` <5169DE3F.5030909-fOdFMYwuEsI@public.gmane.org>
2013-04-13 23:47 ` New driver for MCP2210 (USB to SPI bridge w/GPIO) Daniel Santos
@ 2013-04-14 4:35 ` Daniel Santos
1 sibling, 0 replies; 2+ messages in thread
From: Daniel Santos @ 2013-04-14 4:35 UTC (permalink / raw)
To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
> 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, during module_init or 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-14 4:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <5169DE3F.5030909@att.net>
[not found] ` <5169DE3F.5030909-fOdFMYwuEsI@public.gmane.org>
2013-04-13 23:47 ` New driver for MCP2210 (USB to SPI bridge w/GPIO) Daniel Santos
2013-04-14 4:35 ` Daniel Santos
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.