[Reposted to add better categories. Will delete original.] I'm trying to write a kernel driver that accesses an existing spi device -- in particular, I already have /dev/spidev1.0 active and working, and I'd like to be able to use kernel spi_write(), etc, calls on that device. I'm using linux 3.8.13-bone70.
I can get at the spi master with spi_busnum_to_master(), but it seems to me that I should be able to get the existing spi_device from some api interaction with the master, but I don't see any such thing. I also can't use spi_new_device() to create a "new" device (if that is the correct way to do it) because there's a chipselect conflict -- this seems to be almost an FAQ for spi users, and I've looked a that some and would rather not try to go that that path -- at a minimum it would require rewiring our custom cape. I imagine I could do most of what I want simply in user code, with /dev/spidev1.0, but I expect a latency issue and I'd rather try to do it the best way, from that point of view, which is to be in a kernel driver. Thanks for any advice. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/92ea73c8-acd1-4b02-b6c5-39b46e666541%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
