linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Retry count for i2c-mux
@ 2013-12-08 10:48 Elie De Brauwer
       [not found] ` <1386499701-5522-1-git-send-email-eliedebrauwer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Elie De Brauwer @ 2013-12-08 10:48 UTC (permalink / raw)
  To: wsa-z923LK4zBo2bacvFa/9K2g
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA, Elie De Brauwer

Wolfram,

I bumped into an issue where I needed to rely on the retry mechanism. I 
have a master controller and some muxed busses. However when testing
I observed that the retry worked when using the bus attached to the master
controller directly used the retry count set but the same behavior failed
on the muxed bus since the retry count there was zero. The root cause 
was in the creationg of the muxed busses which have their own 
struct i2c_adapter which gets kzalloc in i2c_add_mux_adapter(), my (trivial)
patch to this problem is to also copy the retries field of the parent to 
the i2c_adapter of the muxed bus.

(Obviously the retry count could be set by the I2C_RETRIES ioctl, but I'd
still think it's sensible to have a system initialized in a sane state).

my 2 cents
E. 


Elie De Brauwer (1):
  i2c-mux: Inherit retry count from parent controller for muxed bus.

 drivers/i2c/i2c-mux.c |    1 +
 1 file changed, 1 insertion(+)

-- 
1.7.10.4

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

end of thread, other threads:[~2013-12-12 21:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-08 10:48 [PATCH] Retry count for i2c-mux Elie De Brauwer
     [not found] ` <1386499701-5522-1-git-send-email-eliedebrauwer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-12-08 10:48   ` [PATCH] i2c-mux: Inherit retry count from parent controller for muxed bus Elie De Brauwer
     [not found]     ` <1386499701-5522-2-git-send-email-eliedebrauwer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-12-09 11:08       ` Wolfram Sang
2013-12-09 11:26         ` Elie De Brauwer
2013-12-09 18:48       ` [PATCH v2] i2c-mux: Inherit retry count and timeout from parent " Elie De Brauwer
     [not found]         ` <1386614908-4872-1-git-send-email-eliedebrauwer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-12-12 21:40           ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).