Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1722727ybk; Thu, 21 May 2020 13:41:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzFt3Nvdt/MGdw7xcNsnz/ryyq2ipfWCsQXAsQ9HhnfwSDfWQ5xbhSMfRcUQv5Lhk2VtdV X-Received: by 2002:a17:906:68c6:: with SMTP id y6mr5377030ejr.437.1590093696921; Thu, 21 May 2020 13:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590093696; cv=none; d=google.com; s=arc-20160816; b=Adkq6PvhrOIMXH+hps+W5ZdQfmXC0MV4bBFJOhHenA9g4JBkN0jJeoHLKR+CVEE6ho /TSbAVr+RImwNvu9ZsnM+7rRYwwT3tR9ugN7DdVPnAcjIiIaZuOt6Ues8tShDoT6mKHL baILvryI8AIkPfxeAUZ3+iW8uRviS7sgnMxA5waKwPogc2gROM6NwR9dkBSJElHUxwjQ TS4bXyfOZ0/dU+pgg55tDUUZxCBBPf8t6U7TL08Emkw4zvtvG7t5IraIu56LkkLAMZaz Dly0n8yHOXY14WeUJair3CEd0XQVO2hD7Zz37N17ao0WXF+ypqQ9uY9J6UKqafe1XOl5 Vfng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=7JPtUahK0Fg51D3D+LpeEam6JnaBDytPl4K7e4dNTfM=; b=k+gkadnisjsBVkI0Q8EoKuyyO8F9PB+BErVR+qfQ57Gucn4Ji8aHphp6Rl4Arja8Gt dXS0gVYFUk3vtrGf17ffL4u6dneZAFPXhurrmRFOkvL+BdFaae69FC4cHnJ202Z8wt8Q ENdMg4/EAICDJzaiaGN0AGfR47SctRY3Mf8xlP6eWi0Vjjl/3NuHycxYc7PUmiIsbJU8 vGRAdvakC75l8Kw2jgugO1MkB/LEaOSCOfq6r/Vq1t94WzPLg4d0BI9eHCfGgWqcHzd+ PGdamStg2IDyiA7eOPZmunnS8q2IURERgw54HuIiEToHwqQaUUCZFtkJBeUYtCeeqv6M jptA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j14si4109746ejy.206.2020.05.21.13.41.14; Thu, 21 May 2020 13:41:36 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730036AbgEUUiB (ORCPT + 99 others); Thu, 21 May 2020 16:38:01 -0400 Received: from sauhun.de ([88.99.104.3]:53672 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729550AbgEUUiB (ORCPT ); Thu, 21 May 2020 16:38:01 -0400 Received: from localhost (p5486ce13.dip0.t-ipconnect.de [84.134.206.19]) by pokefinder.org (Postfix) with ESMTPSA id 7F7B02C1FCF; Thu, 21 May 2020 22:37:58 +0200 (CEST) Date: Thu, 21 May 2020 22:37:58 +0200 From: Wolfram Sang To: Andy Shevchenko Cc: Tali Perry , Ofer Yehielli , Brendan Higgins , avifishman70@gmail.com, Tomer Maimon , kfting@nuvoton.com, Patrick Venture , Nancy Yuen , Benjamin Fair , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, OpenBMC Maillist , devicetree , Linux Kernel Mailing List Subject: Re: [PATCH v12 2/3] i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver Message-ID: <20200521203758.GA20150@ninjato> References: <20200521110910.45518-1-tali.perry1@gmail.com> <20200521110910.45518-3-tali.perry1@gmail.com> <20200521142340.GM1634618@smile.fi.intel.com> <20200521143100.GA16812@ninjato> <20200521145347.GO1634618@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mYCpIKhGyMATD0i+" Content-Disposition: inline In-Reply-To: <20200521145347.GO1634618@smile.fi.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > > I wondered also about DEBUG_FS entries. I can see their value when > > > developing the driver. But since this is done now, do they really hel= p a > > > user to debug a difficult case? I am not sure, and then I wonder if we > > > should have that code in upstream. I am open for discussion, though. > >=20 > > The user wanted to have health monitor implemented on top of the driver. > > The user has 16 channels connected the multiple devices. All are operat= ed > > using various daemons in the system. Sometimes the slave devices are po= wer down. > > Therefor the user wanted to track the health status of the devices. >=20 > Ah, then there are these options I have in mind (Wolfram, FYI as well!): > 1) push with debugfs as a temporary solution and convert to devlink healt= h protocol [1]; > 2) drop it and develop devlink_health solution; > 3) push debugfs and wait if I=C2=B2C will gain devlink health support No need for 2). We can push it now and convert it later. That being said, I wonder if [1] is suitable for this driver? Things like NACKs and timeouts happen regularly on an I2C bus and are not a state of bad health. --mYCpIKhGyMATD0i+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl7G5qEACgkQFA3kzBSg KbYDmQ/+OTWXWz2QGQFX0uxtaXhfs432/2BO3z/AA7ZJn7t6OCSyyvDL9L26maBs Hu/S78wYqdLY6l58jtz8iUHsMwqL+zcQSTjOlo8mqj99T10GpZiwzJlSVB7AxT28 jmlxqN+z9fNUDQDujV+Y8UVvi7+UZ8Y37nYewtOz3AMskTx90HflDt4OHUBQsG7p 1bj1wtPmUfOy8su9FZrPN6SdhzO24XXaqVJgNg2FWqiuNoZ6Kdo8ekQAc3bjvNiO PbEjpRw9QFE8pY9bWyHHJ7pFfpUvwe1bCXAA+Dj19LY2R+29lOxwaRZ3teTWxhG1 ArYFtxWrvCwYezyEKZEPozzfOYwd9LZE28c30aDC/8gfeAP1Gz8C9jySYRid6/Zp RglnDBJKcR3V71fjLTLIXIkPd7kMbxK9A9MQkwlPeLbqlkiLbZflr9ceusirhxmU IP98Ma6w8fob0ntpPGBD0j42rCebhN1d6PG2HHnvbQqj7hpjCUvVNAerGY38enaJ +kNWO8/Y+Hwry7VLp/l5cQ23BeVJpeh8nGME+t6rJhWIP69oP6GEQNGWdzYCElD5 X3l4OOSdFAw1ZFjfj0K8wtMEHno/wDglPsrGxjReFI5YCQyKSKi3NtqONSEPiVrn 40cpX2SNefM4PjPQwRSVKuYNlAvmzo9cQKpkgg2YluT2V+JFJVo= =jcCF -----END PGP SIGNATURE----- --mYCpIKhGyMATD0i+--