Skip to content
Commit 2212a852 authored by Elie De Brauwer's avatar Elie De Brauwer Committed by Wolfram Sang
Browse files

i2c: mux: Inherit retry count and timeout from parent for muxed bus



If a muxed i2c bus gets created the default retry count and
timeout of the muxed bus is zero. Hence it it possible that you
end up with a situation where the parent controller sets a default
retry count and timeout which gets applied and used while the muxed
bus (using the same controller) has a default retry count of zero
and a default timeout of 1s (set in i2c_add_adapter()). This can be
solved by initializing the retry count and timeout of the muxed
bus with the values used by the the parent at creation time.

Signed-off-by: default avatarElie De Brauwer <eliedebrauwer@gmail.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 374b1057
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment