Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp661061pxk; Thu, 1 Oct 2020 10:44:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1SOTOk/ZMMj3XbjJ9gXgGZcl8vC9d5r+2zHwQ4MSc1czwlNaCKsyZza7YyUddB+nSsnRT X-Received: by 2002:a17:906:a841:: with SMTP id dx1mr8703566ejb.520.1601574272736; Thu, 01 Oct 2020 10:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601574272; cv=none; d=google.com; s=arc-20160816; b=W1y56cYUyQz68VKcX5qEDeH+AJ0ZCGRcD/YmVKaTvWrbM/wlXMeOrg6H7Oqb+vIXNY 3YItBs2qSIObW9fb0hToT5QlxypL1RdBSROy8BCtopZGHLmXxUMpkua8y/UQSTwIYbBm RRR1Xg4Wb5XBFdfNqRlJh2yAl9rAM++PNOyU7Lk0D7R4ljgMrmWPE6eDhnbYdz9MXPQ5 MDOBX4wfqIUNx0JPfh/obPQ/Ixzf76IvHRsTiO8Kau4yZwMNCWuizhcFI69JWq999naL FMY+82n5I/Glv60AV8fuEtQOOXARidJLh1L7kBrmzhvR6467a7KHYynKDnWdg7Jtl/7R ESGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=eIGFaaEHCkzZ4GJTNrqaNEH/0TBC9tDDIcCte82tetc=; b=xrd8CBp17iFfMzCSoNnUThZ1i+rlsQpAwzRmh+ynfULbCILfj2NRzkpCnTGgtpzhMf BeScTVnmOcVNTN8PZvZyEoL6F8B8E3kHqOlKkVpokghd6pB2Yd30lIr72HAmHYJbZD63 3DmYYwTt+JYjDOtomEePUo5Yl4OnkBk7vIS5ItDpo5iXMrKrMuFJxZLkivDmndU6O6ta imyULtWK849iQzQ8tIajACFzeu31TV5wPAq2Nh9Mr+UDZ+IqmWTOcEXWbvuTLZ8J9XA6 yTi3kAo7Gmq5Bx6e9TOMHr9rU6iOImft/2EJ94WclDssows/d+J2299J01c1rxo74Syi thVg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 d18si1311109ejr.713.2020.10.01.10.44.06; Thu, 01 Oct 2020 10:44:32 -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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732867AbgJARk6 (ORCPT + 99 others); Thu, 1 Oct 2020 13:40:58 -0400 Received: from mga09.intel.com ([134.134.136.24]:13978 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732096AbgJARk5 (ORCPT ); Thu, 1 Oct 2020 13:40:57 -0400 IronPort-SDR: /5bs0QYRhWBf2O+4m16ItWErilKLoaLqQBiiYB0m203ziEKOWAiTSaEPRE5Cnkg3kSQz1pAgf6 n5Iz2LgIK3tw== X-IronPort-AV: E=McAfee;i="6000,8403,9761"; a="163650045" X-IronPort-AV: E=Sophos;i="5.77,324,1596524400"; d="scan'208";a="163650045" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Oct 2020 10:40:56 -0700 IronPort-SDR: MCXDRqQZOepaqaV9bmXjhsE4cmN81J+zNy1QBx7+SBPTHHRgjL+yK4UxtywV436mpunpxcbP00 NOF/rTiMO38g== X-IronPort-AV: E=Sophos;i="5.77,324,1596524400"; d="scan'208";a="339633448" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Oct 2020 10:40:53 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kO2ZS-003H5E-LL; Thu, 01 Oct 2020 20:40:46 +0300 Date: Thu, 1 Oct 2020 20:40:46 +0300 From: Andy Shevchenko To: Avi Fishman Cc: Tali Perry , Wolfram Sang , Alex Qiu , Kun Yi , Benjamin Fair , Joel Stanley , Tomer Maimon , Linux I2C , OpenBMC Maillist , Linux Kernel Mailing List Subject: Re: [PATCH v1] i2c: npcm7xx: Support changing bus speed using debugfs. Message-ID: <20201001174046.GK3956970@smile.fi.intel.com> References: <20200930071342.98691-1-tali.perry1@gmail.com> <20200930093117.GY3956970@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > Can DT overlay support that? Probably. DT overlay describes the update in the device topology, including certain device properties. P.S. Please do not top post. > On Thu, Oct 1, 2020 at 6:40 PM Andy Shevchenko > wrote: > > > > On Thu, Oct 1, 2020 at 8:34 AM Tali Perry wrote: > > > On Wed, Sep 30, 2020 at 12:31 PM Andy Shevchenko > > > wrote: > > > > > > > > On Wed, Sep 30, 2020 at 10:13:42AM +0300, Tali Perry wrote: > > > > > Systems that can dinamically add and remove slave devices > > > > > > > > dynamically > > > > > > > > > often need to change the bus speed in runtime. > > > > > > > > > This patch exposes the bus frequency to the user. > > > > > > > > Expose the bus frequency to the user. > > > > > > > > > This feature can also be used for test automation. > > > > > > > > In general I think that DT overlays or so should be user rather than this. > > > > If we allow to change bus speed settings for debugging purposes it might make > > > > sense to do this on framework level for all drivers which support that (via > > > > additional callback or so). > > > > > > Do you mean adding something like this: > > > > Nope. I meant to use DT description for that. I?C core should cope > > with DT already. > > I do not understand why you need special nodes for that rather than DT > > overlay which will change the speed for you. -- With Best Regards, Andy Shevchenko