Re: [spi-devel-general] Re: question on spi_bitbang

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Mar 31, 2006, at 3:15 PM, David Brownell wrote:

On Friday 31 March 2006 12:52 pm, Kumar Gala wrote:

What I'm looking at is the following:

* use spi_bitbang_setup() as is
* have my chipselect do:
	if (BITBANG_CS_INACTIVE)
		deassert GPIO pin for CS
	else
		set HW mode register (polarity, phase, bit length)
		assert GPIO pin for CS
* setup_transfer()
	* set HW mode register (bit length)
	* call bitbang_setup_transfer()

And export bitbang_setup_transfer()?  I guess that makes sense,
but you should probably rename it then to match the convention for
the other exported symbols.

Once that's all working, please submit the relevant patch.

Will do.

So I give a new question. Any issue with adding a rx & tx completion to spi_bitbang? In my HW I get an interrupt when the transmitter is done transmitting and one when the receiver is done receiving. I need some way to synchronize and wait for both events to occur before continuing on in txrx_word().

- kumar
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux