2010/7/19 David Brownell <davi...@pacbell.net>: > A dedicated loopback test is the wrong model, > given that SPI_LOOP exists. And is even used > in the sample userspace code ...
Hm looking over and grepping everywhere about this gives me no clues as to how an in-kernel SPI loopback test could use spi->mode |= SPI_LOOP. It can be set, and then it expects the hardware to set the corresponding bit. No matter how much I look at it, it seems like all use of this require you to first register *some* device, whether real or not, then you may play with it from kernelspace or userspace alike. So for a generic loopback in-kernel test I would need something like: loop over all masters for each master if it supports SPI_LOOP look for devices on master - make sure first device is a loopback dummy locate loopback dummy perform loopback test on the dummy This means I still would have to register some dummychip on the devices that should be able to run the test. Anton, any hints on this, execept that you added it for spidev? I'll try to dream some use model up otherwise. Yours, Linus Walleij ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general