Linux I2C development
 help / color / mirror / Atom feed
From: Peter Rosin <peda@axentia.se>
To: MikeB <mabnhdev@gmail.com>
Cc: linux-i2c@vger.kernel.org
Subject: Re: Looking for guidance to support 74CBTLV3253 mux
Date: Fri, 11 Nov 2016 13:18:53 +0100	[thread overview]
Message-ID: <990cdcd2-e118-d056-0e80-defeb018bd63@axentia.se> (raw)
In-Reply-To: <19f4f235-ed83-2d5e-1568-a0292c927fda@axentia.se>

On 2016-11-11 13:04, Peter Rosin wrote:
> On 2016-11-11 12:47, MikeB wrote:
>> On Thu, Nov 10, 2016 at 8:01 AM, Peter Rosin <peda@axentia.se> wrote:
>>>> There is however one requirement, the CPLD-mux must be "mux-locked"
>>>> as explained in Documentation/i2c/i2c-topology. Otherwise accesses
>>>> to devices behind that mux will lock the PCA9547 mux for the full
>>>> duration of the transaction and thus lock out any attempts to update
>>>> the CPLD mux as part of the transaction.
>>
>> Thank you for the informative reply.  I was unfamiliar with the new
>> mux and parent locking schemes.  They do make the solution for this
>> problem much easier to deal with.  I'm working with release 4.4
>> (Ubuntu Xenial), so the mux/parent locking hadn't shown up on my radar
>> yet.  Unfortunately, the target release for my work is and will remain
>> 4.4 for a while.
> 
> Lucky you :-)
> 
> Anyway, you might be able to backport the changes?
> 
> Start with:
> 
> a7ab72390b77062420fb50e4451f71c9321aae05
> "i2c: mux: add common data for every i2c-mux instance"
> 
> through to
> 
> 23fe440c59b9f08afe108e7ec7b6714cb2a3b955
> "i2c: mux: drop old unused i2c-mux api"
> 
> And then:
> 
> 785d32c7a9638a96730686663564d1842f7c2f03
> "i2c: allow adapter drivers to override the adapter locking"
> 
> through to
> 
> f76b724ee915415c52068c622ca48c652c1bd10c
> "i2c-mux: document i2c muxes and elaborate on parent-/mux-locked muxes"

Correction, those two commits became
8320f495cf441d593f7cd4f30e6b63455be71a2c and
2254d24aff3ab472dca287aef0123e8f0e06a14a when they got upstream.

> There are a handful of commits right after that that are also
> related, but they should be irrelevant to you...
> 
> Haven't tried it though, YMMV, and I might have forgotten a patch
> or two that came in later, but I don't remember any serious fallout...

  reply	other threads:[~2016-11-11 20:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-10 11:59 Looking for guidance to support 74CBTLV3253 mux MikeB
2016-11-10 12:52 ` Peter Rosin
2016-11-10 13:01   ` Peter Rosin
2016-11-11 11:47     ` MikeB
2016-11-11 12:04       ` Peter Rosin
2016-11-11 12:18         ` Peter Rosin [this message]
2016-11-11 12:23           ` MikeB
2016-11-20  8:53           ` Peter Rosin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=990cdcd2-e118-d056-0e80-defeb018bd63@axentia.se \
    --to=peda@axentia.se \
    --cc=linux-i2c@vger.kernel.org \
    --cc=mabnhdev@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox