Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp694922pxk; Thu, 1 Oct 2020 11:28:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhk0yNHfRGpEcroRa35B+zeq3aUsO5676aHTL7mnzM4uHZXsIqwYj+BOlMG52XQNPXfkCH X-Received: by 2002:a17:906:bea:: with SMTP id z10mr3607852ejg.286.1601576926424; Thu, 01 Oct 2020 11:28:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601576926; cv=none; d=google.com; s=arc-20160816; b=Oshp6aJFI5cA2N6Ja+FgSCTJhG0azLBUEHWwk8oPzKCSSVKcHX8xfU8cEnQ5lsq4UL PcB8ZisuX9o6/+f5rgJaPhq5cqu35G8jh4OuUl/Bu/Jv2FpCLU+NBXSNsrTe95iW6Lov CVg9bvbDFR+PXVuqgbONCuD5oh1d+vEAtNC5dlpO9Xnu2XMw4mOfQ8pXDnMKtuJg39UO BAkbWgAcOgWcJrNYXxifTZyF3eiMCPOCAJpz7hJh68HRhFaLolbIwzQWyNk5oVJ4SYKI PbeoE917G5Zprmk4luZ1YQNSSoIGyDAVWoHl1g1NaGazxAZl1d1QYNsiBIZhBh2yLu1C GXwQ== 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=zromK0/y1g94z1qMbmCPDoqoKsF72rgD/Yb3hoPUPLE=; b=zykzOyDUTi4lebEEtmu1GqVJDjSRdP3+KWxBm9Esw/Z+5PniElnW22E5lyJupYB6SE ujxShCCGj05JgjTSig5tEaKUT5HvOX8xQk8qdsFFfIOUcSM1ejzXHSxIlw/C/UC6jRCD DV0JkUf2PNyjNqukdhnveowMAUKjG4cNGnTJPHjrUdWN8eLg3dsLjrvnlvADuRiGU4Pv lhSO0lPY6ALxLt2dmVfvhIQSvktesgvbLyoFsD7qc4povhsVW8uHAfiM/aRkvU+/0skj oD5iSoa6sl87kHS7649WHK6T2ptt//mRLLEIZvBfUS9DF7uGROmXBXTnklE2VGLkwBxa xmLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pLBTVtvJ; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g90si5120377edd.205.2020.10.01.11.28.23; Thu, 01 Oct 2020 11:28:46 -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=@google.com header.s=20161025 header.b=pLBTVtvJ; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732417AbgJAS1W (ORCPT + 99 others); Thu, 1 Oct 2020 14:27:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729412AbgJAS1V (ORCPT ); Thu, 1 Oct 2020 14:27:21 -0400 Received: from mail-oi1-x242.google.com (mail-oi1-x242.google.com [IPv6:2607:f8b0:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72113C0613D0 for ; Thu, 1 Oct 2020 11:27:21 -0700 (PDT) Received: by mail-oi1-x242.google.com with SMTP id c13so6625561oiy.6 for ; Thu, 01 Oct 2020 11:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zromK0/y1g94z1qMbmCPDoqoKsF72rgD/Yb3hoPUPLE=; b=pLBTVtvJ9NKHNXLlKWMCwrI1NKqibC67z+5cNeyc2WXfC7fy/QkHxOFhguWXhpkjjm kvFuUKjdbaHfctbf0UifWDngSs4qrbslBkkmgpOGr0FfupKXFkBf0PCyjzQhD7S5R50m mkMv+zD8KygJZmW33d0TB3W2CDZ538/00wp8K/fnc+bLkm/atasPqnnytIWJgjoVe2pn m34dE+Ejk4EcyS31EKVlVKAf/+3+p271nX9o+T9vaCkTwMLKi3lVfTx9i8MdD4+feDG0 YA2A2w5ry4sZigiY1eNKH3KAq/k9pz2DPfFt2tje5PvHWl24z7DGIO5LB8G/yhy2fSn5 PF3w== 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=zromK0/y1g94z1qMbmCPDoqoKsF72rgD/Yb3hoPUPLE=; b=sZ2TVS8gBTSBSgzf9KZJqQbK3qReQyGZvT308EwLkqJAHL927eceLyX5mxu0sImckz Zi/wMlf5acqS6YH9VgVO9YNvz0OqrIwIVOBYMRS033uaLQfMvQZM/4hmiQU8miyh3R9g Z60P3o4jgpvL1ZjACxgIy0oLALnM8zdF7MuutYTAgGRuyFm3FqKTNAdI01QbAX2KOg1k 6cPnhjgalbWhpCiFmsuM4/dBelKS7mGyMCfDrgz+v3Ev+5gbuAvCaedCyMfpRSS9ucIg aGqT3VesibPBLi7tJkBwpY2+2aDcp7KlqFCfXTrFdkCWndhvufQq+l80y7TxAuFZlmBQ nP6w== X-Gm-Message-State: AOAM533TJTbhP32i17XU5ooUmEo69uZ2RNFULI1q39RSiPghqjbIjm51 9Ge0w4jHFZLJjatCWwVTj9t5sf6fe0KKILarjT2znQ== X-Received: by 2002:aca:d982:: with SMTP id q124mr824698oig.103.1601576840640; Thu, 01 Oct 2020 11:27:20 -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: <20201001174046.GK3956970@smile.fi.intel.com> From: Alex Qiu Date: Thu, 1 Oct 2020 11:27:09 -0700 Message-ID: Subject: Re: [PATCH v1] i2c: npcm7xx: Support changing bus speed using debugfs. To: Andy Shevchenko Cc: Avi Fishman , 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 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