From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 325BA3A16AF for ; Mon, 13 Apr 2026 07:45:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776066338; cv=none; b=GkHyH/LEsDMIdqz5QEsxaXlcat0GnxCf8zZbCWaNWYPooSh1DTRrHqKdv0+wdTZgELs2sGl+wHqoMNKoXSGq3KjYWc6r2CXhTYwSvxchZru69uiD4ZfrGUztrC8KfhwRVBGNGOqPAi4jPeD998sUtB0pRqEtLPwoFsEQdUrCVN0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776066338; c=relaxed/simple; bh=GQQ3SBHociFPwcQlzwIosHskRYiXTXq/HoT2kxRNfeM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bv5H3iZBcKBMZAPVkSdhQA5PVNFwcvtWa/2ztVwbxRuvhPFaWg4uV+8d87Sfq/3oyNzBuR3Fe1e/f3jMckUpBKLq10W3K58qJpQiAspz9HEOIGyHmX6/MzZ0jk7PGnmxuMmctBQlvaxtz5+CibIpVN36GYjcnrkhUpbtR8PLKsA= 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=a4W5WVBL; arc=none smtp.client-ip=209.85.167.41 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="a4W5WVBL" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-5a2b636b944so4605896e87.1 for ; Mon, 13 Apr 2026 00:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776066335; x=1776671135; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=CPGB450BgNYljKUDXZxUQRXQWnX1iFE/RTDC2ASOQ6g=; b=a4W5WVBLrpBnH52QBpsgk0d/359LK2DVpB2rzUfvawfHCtZPELivaki9g3JguFLXV7 iPikxold/n3ZO4NhygMBpsAIO/nLtT8wzEH1EQJOfnVkay7tD/AjmHs4qZ5MX1krCa1M hOb6Qo+2JhRnMQQSZRDxH1IdKNmL4d/9/WsxsC9wSqvWOyYtepmIgYskjljnJxKF0yj6 RwVJPQkDwd/4FZhmL8LL4vLWHOwa6U6a7NitzTh+y3W3fSFgJUxGxvZCZcxMZMwlPnBc 2Gm+752pQhUmM8wt4AwCGVfSrPPMyLaV8Hqf0kHsocQr/V+eDh5XDesHpTXcgUFRrDVc lk8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776066335; x=1776671135; h=in-reply-to:content-transfer-encoding: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=CPGB450BgNYljKUDXZxUQRXQWnX1iFE/RTDC2ASOQ6g=; b=BYsor9BaiIJC9ahyFwxYKmVDMK5gx+1BR140oynNpTWxcF9S4iCqr5BSjL8Bq7QNAP PLhbmzsAakS7dJxeKbytCgoKTUWjP6ntbBJZZddnrEQDZcUqbii0fVetGDe146XDbe7j KlXeLkSPH4/bNawo17uvGe+d3WfnkzKXtMnGbZRs9Ny9RQ4ukcjCFVyVFOU5mhpDSD+X 7Bep9QKE0y4IBQicDNtioJhevozoM7BzE/x1VYhh73RNm3ocoC0NXBQBriz/cBL3pqlp wbuEaTpCwPvClaY4MPnxHauuaSLZ1Po6Zsaq3SpQJNQKyfmCNVLSbs5FdHfQHLMilvHg QGoQ== X-Forwarded-Encrypted: i=1; AFNElJ+SirZP30ywzmhf9P6JMtr6/N1JfLjEHejteWj1ZrL17cCAzvJcV4Uqef7vDU2ObWY2NPQbr5DxUJKnn+4=@vger.kernel.org X-Gm-Message-State: AOJu0YyZIdVKfHcVhaItm8xNGVpuppBlCu3HPhibaM1MKWe0svwejtdi 7fxq8hi73c5GkXhQS9FsrWsDzbJZNhbZfhAhA4gHGJEVtfjsqpWl5e61 X-Gm-Gg: AeBDietyVSmvOunw50KcIwOL4QdFuAJZUln5bxR91uJcPPBtoEvvmtQdIM7KqjN9fH9 jmcH3w1hx+0bY+buZOniKwByM4tsKfw9h2FGZ/2m///xQ2mgZlNjGIltyJhV3bszgCrkbgVCWx1 LPVWQqN6lDUL4V82P1qetXj9ao7n4oTypLTRKz/O36uDMb+iDm+Ikpr6i93mgJbeAl+fyHGuOiH GSFmG4nEolQ2tI84GUmG+fFi9guxGZBNQz+fpRxmaYOc6sLsXiGHUIiPuvmw1P32DrbOPQAmbcK IBWB1gwh9PDUlBEHU2KSv0Ox5J7I35bNeJvvH48xvoqpbkyPq2acHw9KWqthcDKkKnt/N8TdRc6 6uQIuIN2afgEr69+WyrztJyQNsTfswqB5Hf1Hbm5lyXZV8jgocxVmdzsS+WiPY9TPNzB09ALRVa W6fRriuvr3RQOOifJzde0DLe4piQwnxTq/lpWi5rhBZ8BvL8B6CCiRvZtm+wTE X-Received: by 2002:a05:6512:3c87:b0:5a2:cacf:5b2 with SMTP id 2adb3069b0e04-5a3efb299demr4803771e87.22.1776066335061; Mon, 13 Apr 2026 00:45:35 -0700 (PDT) Received: from gmail.com (83-233-6-197.cust.bredband2.com. [83.233.6.197]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5a3eeefb849sm2411855e87.60.2026.04.13.00.45.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2026 00:45:34 -0700 (PDT) Date: Mon, 13 Apr 2026 09:45:31 +0200 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 Content-Transfer-Encoding: quoted-printable 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. >=20 > 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. >=20 > 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. >=20 > 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. >=20 > This patchset has been used and tested heavily the last months > on a custom board based on a da850 (DaVinci) platform. >=20 > The implementation is split up into several patches: >=20 > 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 >=20 > Signed-off-by: Marcus Folkesson > --- Any more feedback on this patchset is very welcome. Thank you in advance, Marcus