public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* question on spi_bitbang
@ 2006-03-31 17:31 Kumar Gala
  2006-03-31 18:11 ` David Brownell
  0 siblings, 1 reply; 14+ messages in thread
From: Kumar Gala @ 2006-03-31 17:31 UTC (permalink / raw)
  To: David Brownell; +Cc: spi-devel-general, linux kernel mailing list

I'm looking at using spi_bitbang for a SPI driver and was trying to  
understand were the right point is to handle MODE switches.

There are 4 function pointers provided for each mode.  My controller  
HW has a mode register which allows setting clock polarity and clock  
phase.  I assume what I want is in my chipselect() function is to set  
my mode register and have the four function pointers set to the same  
function.

Is this the right usage model, or should I set the mode register as  
part of the txrx_word[mode] function?

- kumar

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2006-03-31 23:58 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-31 17:31 question on spi_bitbang Kumar Gala
2006-03-31 18:11 ` David Brownell
2006-03-31 18:19   ` [spi-devel-general] " Stephen Street
2006-03-31 19:16     ` David Brownell
2006-03-31 19:07   ` Kumar Gala
2006-03-31 19:17     ` Kumar Gala
2006-03-31 19:32     ` [spi-devel-general] " David Brownell
2006-03-31 20:00       ` Kumar Gala
2006-03-31 20:36         ` David Brownell
2006-03-31 20:52           ` Kumar Gala
2006-03-31 21:15             ` David Brownell
2006-03-31 22:11               ` Kumar Gala
2006-03-31 22:20                 ` David Brownell
2006-03-31 23:58                   ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox