All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about patch "i2c: omap: resize fifos before each message"
@ 2014-12-03 15:11 ` Alexander Kochetkov
  0 siblings, 0 replies; 14+ 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-u79uwXL29TY76Z2rM5mHXA, 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] 14+ messages in thread

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

Thread overview: 14+ 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:11 ` Alexander Kochetkov
     [not found] ` <A20987D6-DEEC-488D-9655-36A4D186599B-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-12-03 15:49   ` Felipe Balbi
2014-12-03 15:49     ` Felipe Balbi
2014-12-03 17:34     ` Alexander Kochetkov
2014-12-03 17:34       ` Alexander Kochetkov
     [not found]       ` <8C51B585-BFD6-48CC-A2C4-EB88CB820426-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-12-03 17:49         ` Felipe Balbi
2014-12-03 17:49           ` Felipe Balbi
2014-12-03 19:01           ` Alexander Kochetkov
2014-12-03 19:01             ` Alexander Kochetkov
2014-12-03 19:38             ` Felipe Balbi
2014-12-03 19:38               ` Felipe Balbi
2014-12-03 20:04               ` Alexander Kochetkov
2014-12-03 20:04                 ` Alexander Kochetkov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.