public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Question about patch "i2c: omap: resize fifos before each message"
@ 2014-12-03 15:11 Alexander Kochetkov
  2014-12-03 15:49 ` Felipe Balbi
  0 siblings, 1 reply; 7+ messages in thread
From: Alexander Kochetkov @ 2014-12-03 15:11 UTC (permalink / raw)
  To: Felipe Balbi
  Cc: Kevin Hilman, Tony Lindgren, Wolfram Sang, linux-omap, linux-i2c,
	LKML

Felipe,

Question about the patch[1].

I want to change the code in a way to not touch fifo thresholds for each message.
Because:
1. dev->threshold is valid only with checking of transfer direction.
   So, if last transfer was transmission and ISR get RRDY interrupt from slave receiver,
   then dev->threshold is invalid. We must read threshold value from BUF register, to
   process correctly.
2. I want to avoid changing fifos before message submission, because IP can start receiving
   message in a slave mode (race).
3. dev->threshold is changed in range 1-fifo_size/2. So instead of RDR we get RRDY and
   for messages larger then fifo_size/2 we still get RRDY and RDR.

Felipe, do you have in mind why do you want to avoid RDR and XDR events?
Something about errata?

[1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/i2c/busses/i2c-omap.c?id=dd74548ddece4b9d68e5528287a272fa552c81d0


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

end of thread, other threads:[~2014-12-03 20:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-03 15:11 Question about patch "i2c: omap: resize fifos before each message" Alexander Kochetkov
2014-12-03 15:49 ` Felipe Balbi
2014-12-03 17:34   ` Alexander Kochetkov
2014-12-03 17:49     ` Felipe Balbi
2014-12-03 19:01       ` Alexander Kochetkov
2014-12-03 19:38         ` Felipe Balbi
2014-12-03 20:04           ` Alexander Kochetkov

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