From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B37A2393DD3 for ; Thu, 26 Mar 2026 12:17:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774527476; cv=none; b=HYJe8xJzgmf4uTk9lhxpLlM4fJaBg+J47Xp9i7prufQdtKLw9utqqq2V1asIH0wUHjHFwrJFa7Pr6YMgt8I0j9NppyH+ACvmadKwmxvH5/GUGSC+suG4Y7DfX5BlPs21TtUyz5g+OB1lMVTbDtesuX7tMVjdZpmn9yIXMJs9yao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774527476; c=relaxed/simple; bh=11RIqE/GIXPQqschhxYiFlJAG+TR548JsD/YNqT3np4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RPi0TdIGAGhOVmjTG+O02Jr/GmMJm55dngcCDJZHvO50Inc7QZTu/jeXv6Wc5V3anyV3cXTJIa11fWQVCVfRgvDCzUMXXSNDGUjHKxBOUYFf8OR34tbW1OCRMMPcUtQIVf/hJ2hO3kxprNzAJTkMxZl/XZaKk9OZlsONe1E0pF8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=jp71WrtV; arc=none smtp.client-ip=209.85.208.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jp71WrtV" Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-38b50c79f2fso8837331fa.3 for ; Thu, 26 Mar 2026 05:17:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774527473; x=1775132273; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=/azvFG1nnUlhxSiJLaoTFukeNHF4vMpB+fiAo39JynM=; b=jp71WrtVDe+yF1J6FnexBIi6PBFc0fmAfSBfbUEk9NddakrLDV1ZRqLpawp0ReVhYh AktOSsue7jpo4hcNjliI0cIy6pRuAJOw8MA6nQo5llzxFOqXDujlGX+uSv8ouUa52/tN pQuvTiWfa9EQb3mchUoEhCHpIpRuHWZEiVTa7o0UodrSp9Gz+u1SmN+exeuDhhsfCWgU OOeV4AnpWwCWzZHIiZimfuhUMQf5E7X4GZjmQ5WTiI/tZQCnPrTpgmtm7UqLfc7UVu/o fAUgYSXaBWNeIlXTVXiXwkMDBva2WLQt24EhFgrziGNKDtHZ3Fa6aymqhRGP8+Mn22ss mLNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774527473; x=1775132273; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/azvFG1nnUlhxSiJLaoTFukeNHF4vMpB+fiAo39JynM=; b=UcKdbD0a/Jl0cxmN4oCcW5cts8aF7RUVYScMNR3nxXnejhv68EMzI0y5vqCc5RmzZH i8/laVL7gY76tKROMyvytVKa8lOwY+wvhba9FdPon6CSFWMQ0gIYRjB0sogpAXeQL402 /fgiwdEfSNnmH0uLYV7x0vQ3NoSQ4RVhb+g1CJ+hT/HCAuHYn84zoKQiDy+0xKPifgfd inJU7mquR8giAm2ma+z9leHIOmw228Hca59Vs8BlApUfCoLfwpVlKnzddoWKUfp2hEMk QIwjYXoYIGstL93XiibBXD+qUgMLjdD56Pi+L4DhXxh3s5LU2Dih02D/H5bFlmA3+nEN 5aAA== X-Forwarded-Encrypted: i=1; AJvYcCWxIk21fF3JN6Qe50mxusTDMJP3l0nKp89PmYMoXQXdMQfV/0ahKviAxgqQcKNKosEpEYG7fTGZ8EKdTpQ=@vger.kernel.org X-Gm-Message-State: AOJu0YzTDuVnoSMD6alXMPFrAYjE2TPFo08gBAZNSZOLM1WURbNTVHYr eTMCIqjj76aJNiHIqkOFQwtOuEJJVjl9X59UyS3N7xGlp/Sq2oKUBZTl X-Gm-Gg: ATEYQzz3apSyfSqiBA+0hCZdxAJOY4qcQm0WsJQPq4IwaVuhNa85QgXubdAX8sZbRGw UOxnUcfHNYkWYGUOYXBI1E8nKCAjhbmawW22eVcVTFfcgEATBMODR0ToztJuSbOBPJBYECgU+tO yGgolmldfIfd7lP2BVr1gMFlBUL2ruOnqXxgxZwQdEeE1suNs2q/z1+8duC3aPJn6u1I6LVdhk4 UjAnxCVcga9iIn9iDQqExgrKBMptqW5XNWLJ/V0jtV4wHkdpmsztcPGVlbwPXMLx3ieVApOpjDJ jiIvJEOMioFDxWShz8AU8PmMirGwt2LJnL5kydpRH47eJYeailNCqsmYGE2JzKuc01xl1gmAaBQ CPe3nPV5VS3M037Om7qzWRZeF57M720x4QY39D65IU9SbCrEp+zFWiRKbgP/AuUfRZ03Fod86iD e2UBLUyVITAFylr1mbaYguEhpidLnawl4oEVXNiaMEwuecDn6kpwjd/mi1in7X X-Received: by 2002:a05:651c:1114:b0:383:18fb:fdf0 with SMTP id 38308e7fff4ca-38c431f2536mr24521661fa.22.1774527472629; Thu, 26 Mar 2026 05:17:52 -0700 (PDT) Received: from gmail.com (83-233-6-197.cust.bredband2.com. [83.233.6.197]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-38c6a848cddsm520711fa.13.2026.03.26.05.17.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2026 05:17:52 -0700 (PDT) Date: Thu, 26 Mar 2026 13:17:50 +0100 From: Marcus Folkesson To: Wolfram Sang , Peter Rosin , Michael Hennerich , Bartosz Golaszewski , Andi Shyti , Andy Shevchenko , Bartosz Golaszewski Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v9 0/5] I2C Mux per channel bus speed Message-ID: References: <20260324-i2c-mux-v9-0-5292b0608243@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260324-i2c-mux-v9-0-5292b0608243@gmail.com> On Tue, Mar 24, 2026 at 02:54:14PM +0100, Marcus Folkesson wrote: > This was a RFC on how to implement a feature to have different bus > speeds on different channels with an I2C multiplexer/switch. > As no major complaints on the design came up during the review, I > decided to submit the series without the RFC tag. > > The benefit with this feature is that you may group devices after > the fastest bus speed they can handle. > A real-world example is that you could have e.g. a display running @400kHz > and a smart battery running @100kHz using the same I2C controller. > > There are many corner cases where this may cause a problem for some > hardware topologies. I've tried to describe those I could think of > in the documentation, see Patch #5. > > E.g. one risk is that if the mux driver does not disconnect channels > when Idle, this may cause a higher frequency to "leak" through to > devices that are supposed to run at lower bus speed. > This is not only a "problem" for changing bus speed but could also be > an issue for potential address conflicts. > > This patchset has been used and tested heavily the last months > on a custom board based on a da850 (DaVinci) platform. > > The implementation is split up into several patches: > > Patch #1 Introduce a callback for the i2c controller to set bus speed > Patch #2 Introduce functionality to adjust bus speed depending on mux > channel. > Patch #3 Cleanup i2c-davinci driver a bit to prepare it for set_clk_freq > Parch #4 Implement set_clk_freq for the i2c-davinci driver > Parch #5 Update documentation with this feature > > Signed-off-by: Marcus Folkesson > --- Peter, Do you have any feedback on this new approach? Thanks in advance, Marcus