Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp704627pxk; Thu, 1 Oct 2020 11:43:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb+tp1ybGN2Yz/ez+M3pcLGa8KWVhjRbuDIqShm+t3Ju/6wQb8owWVuwUcpLjNhfTUIYjX X-Received: by 2002:a05:6402:1212:: with SMTP id c18mr9573685edw.344.1601577828887; Thu, 01 Oct 2020 11:43:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601577828; cv=none; d=google.com; s=arc-20160816; b=wPNJJB6zJJKq+CdkJmpTU3r6cKqVkxpEVTXl0Ag4qQYMDsG1EI/790SUqzWuCUrsxw gOEZKbNTfbCUBa5Fl0Z+Cx1hM+bonr8y5vi3exldz+9mIJ8R1TGJVeltXAsP6YuLzH5v sPDDMI47RulGlCdxux1BHLeedIMHCCuOEmCSrofN8Etv9F8wSew7JauO1zwdDicReDRZ auVxlbsLsK6r2HJ3ZC2rTsRrnt8x9GUTI7g1yfXqfb6EIitu4MnBgON4sVFvVrWEpYbU 6B6vgdUVNjQMiDOwhjCvL5TBUIyveA33l9syZ3ZUsHM8ukvn4czpvUsU29cJoVpNLt7t ja8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=JOQ6ZKgQ8ZCXCMKJDHTtraLaapopKYShD2phDj3Rteg=; b=WEXNoE1NRwBAzof5ecEvujSCa+rtNUB5NvirgMuD0T/drgZU/9h3e/S5cAi/IiQAHF cc3KzdbG6c/zhrJlnaLOJtEsIPCTBm7u8CkpqIxfNa37Ca/0yprLCUqgm1ly1vEsvJYR XOl9b8jETdP/D7pCNuEJSh4/kSr9uWqbTthLsT5bfOT59Ku8Lnx4bjX+GNlLTHChpehV Eu0gRsmqoBX3lCVFe0fPWw4rFGX41ZpRBA+gYET7i/olGwEgApjcqlUqLkNtDhEe4UVP 0bRxjqWU7cUG6uy1eoUWti707rBcvUuX16lwRDfWBDgoIxvfEefja/wmhLhdWOORRMe4 cN0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oG0yYmS+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u11si4165190ejm.360.2020.10.01.11.43.25; Thu, 01 Oct 2020 11:43:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oG0yYmS+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730070AbgJASm2 (ORCPT + 99 others); Thu, 1 Oct 2020 14:42:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729047AbgJASm2 (ORCPT ); Thu, 1 Oct 2020 14:42:28 -0400 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BC10C0613D0; Thu, 1 Oct 2020 11:42:28 -0700 (PDT) Received: by mail-io1-xd41.google.com with SMTP id g7so7928403iov.13; Thu, 01 Oct 2020 11:42:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JOQ6ZKgQ8ZCXCMKJDHTtraLaapopKYShD2phDj3Rteg=; b=oG0yYmS+e1T5uXRSj4TvUhNbpg2z17+BZYqeAXU1PFr0ezd/TLdNtVLR0gFCDEInD2 kRykQ3f7aLVCcNU6G8qJB5gFVWWHBfXrTTaILxNuOzrcqIQClCj4VCveokS9QxtAw+5I J08dl4ZZploa2drM34LOYu6R/sxCMu21yauzWxl0pUiHFXeb5jqow9X5sOdJpk0bfWck s93RicVZwUPIh2q2029jiU3amvfxFsrtMgKUvAGlYNuGif/p9hFplh42EfeaaubsDrkk n/IBdGFtUDbJ5rqO61N/RvZEeBUILm70SKbHVXqMnxygzpA7zZPQjQh1xe6Wl4lMqhGl Dclg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JOQ6ZKgQ8ZCXCMKJDHTtraLaapopKYShD2phDj3Rteg=; b=iyIU5KzTS16LrjxqHv2u0kqIn0vWwE04PgcNaqUEQRxTSK/gciKeBScqwl5HI0R6ex 7ph6nw82ijT6O7k8gcfsqRIVekt25sv9KcEErQSRkpfFZMB78p5JzTxwdlloEY7nXWPQ EVo6Nphu9ZU+qSbr9/o6RSMp7h4JDwXD+9Ckv59PJI6ZkWH94Gf+TrpqEe/38HclP3/3 n0DBK0TpIkrC+xD8Q7zAP/bM4fssbuwHtJM9kIHh6VtMzihqaZY/yVkMKvMWBW4lJdVu WQw9HHcbRytF3WcLopvouVhOo3/9wmH9GM4qbf6R7lkphj8AlBkqXepTzh+kHt1/rEuS i9cQ== X-Gm-Message-State: AOAM530RswZwLLpZkwjbl7KImnX1bWXLZP++TsvDH/R8MjhLpI90JbLB qPcJkrLp9iEmHzNfftRmImPPzP311RWE1wsCQu8xzKH3+w== X-Received: by 2002:a05:6638:1316:: with SMTP id r22mr7331645jad.129.1601577747632; Thu, 01 Oct 2020 11:42:27 -0700 (PDT) MIME-Version: 1.0 References: <20200930071342.98691-1-tali.perry1@gmail.com> <20200930093117.GY3956970@smile.fi.intel.com> <20201001174046.GK3956970@smile.fi.intel.com> In-Reply-To: From: Avi Fishman Date: Thu, 1 Oct 2020 21:41:16 +0300 Message-ID: Subject: Re: [PATCH v1] i2c: npcm7xx: Support changing bus speed using debugfs. To: Alex Qiu Cc: Andy Shevchenko , Tali Perry , Wolfram Sang , Kun Yi , Benjamin Fair , Joel Stanley , Tomer Maimon , Linux I2C , OpenBMC Maillist , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tali indeed pointed our major customers (Alex represent one of them :) that this feature must be handled carefully since it may break the communication and they are aware of that. Nevertheless they still want this feature, they already reviewed this and accepted it (in internal mails) So we will appreciate if this will be accepted. On Thu, Oct 1, 2020 at 9:27 PM Alex Qiu wrote: > > On Thu, Oct 1, 2020 at 10:41 AM Andy Shevchenko > wrote: > > > > On Thu, Oct 01, 2020 at 08:13:49PM +0300, Avi Fishman wrote: > > > Hi Andy, > > > > > > Customers using BMC with complex i2c topology asked us to support > > > changing bus frequency at run time, for example same device will > > > communicate with one slave at 100Kbp/s and another with 400kbp/s and > > > maybe also with smae device at different speed (for example an i2c > > > mux). > > > This is not only for debug. > > > > The above design is fragile to start with. If you have connected peripheral > > devices with different speed limitations and you try to access faster one the > > slower ones may block and break the bus which will need recovery. > > > > Hi Andy, > > To clarify, we are using a single read-only image to support multiple > configurations, so the supported bus rate of the devices are not known > at compile time, but at runtime. We start with 100 kHz, and go 400 kHz > if applicable. FYI, we are using 5.1 kernel, however I don't know much > about DT overlay. > > Thx. > > -Alex Qiu -- Regards, Avi