Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp587334ybh; Tue, 10 Mar 2020 04:38:47 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvl5T9C49wkE/Rz+8gvT0uJB/oMdi29qu3b4NCOnasNz75Sd84YX/PyiWR4sdv1EGsUcm1t X-Received: by 2002:aca:4142:: with SMTP id o63mr538080oia.118.1583840327668; Tue, 10 Mar 2020 04:38:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583840327; cv=none; d=google.com; s=arc-20160816; b=QL8f0kToFD5ahNz3irN4P6QnHMsbBI2Itwc81PqBNzYExcwnLBJqBMAy/sosHo8nfH v6rGndrh04iREdVxaYSsic0ees2GyYsw2T/0KCQIp/JvA56BEQjjHTOJV+VmqyQqBqIV ETKkbONzcQD5e+5UfD2hsO8PHP2r31u74eYrG5ysB1IEMWIHYqRYF9xrUX3ZGnG+onRD +z9Hc87/2pIOLWCae5xBORC7l3wlBmZyDDPf+/6zxlazs433g0s0k7uWCz7nuugpMAbu 05inOhD+OJ6DcXmLz694Pl1GSxJNhAgP4V7cDgYk21AK7MN1rWVE8GqD4SvPRITHmDGx UG4g== 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=wovC2HIr3RCcVA+k+M07h5gSRPdoJ68Gcah4FolUj/g=; b=sn357Urexyzn7HSYWAt4ZRDDXMA02IYIysnzvu8rR9NOIWqaXHsmL1phkR/xBtseUM wtYQ43DjhZLaj3/yFE4qnO+LNPUTftToKcnPRDMBMDn4a0KMjXrTzFVZuP9kIHKkq/kS urx8eulGbW2ZFhimfBuW2owC3LGoUXBWTxnJ+lJkPnvsjFACGE9xu2ZsJ5m2Ajylct81 F/xBQrRMMkwvVh00U2BhuP700SSB+74K/apbgaQbzdH8sx8D/9vxqms+Lq5BILXJugs1 AnQr8eVmiZsTsjOPn9LdzxEz6VWG2W6cRpGL+8VJejS57eFDTpTD9tlXRHsk1JY6pJqk DmiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r19si7597850otd.106.2020.03.10.04.38.36; Tue, 10 Mar 2020 04:38:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726438AbgCJLhI (ORCPT + 99 others); Tue, 10 Mar 2020 07:37:08 -0400 Received: from sauhun.de ([88.99.104.3]:47772 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725937AbgCJLhI (ORCPT ); Tue, 10 Mar 2020 07:37:08 -0400 Received: from localhost (p54B33196.dip0.t-ipconnect.de [84.179.49.150]) by pokefinder.org (Postfix) with ESMTPSA id 8CA752C1EB6; Tue, 10 Mar 2020 12:37:06 +0100 (CET) Date: Tue, 10 Mar 2020 12:37:06 +0100 From: Wolfram Sang To: Dmitry Osipenko Cc: Thierry Reding , Jonathan Hunter , Laxman Dewangan , linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] i2c: tegra: Make timeout error more informative Message-ID: <20200310113706.GW1987@ninjato> References: <20200302173512.2743-1-digetx@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AFjAQ8ujNJnIGHaX" Content-Disposition: inline In-Reply-To: <20200302173512.2743-1-digetx@gmail.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 --AFjAQ8ujNJnIGHaX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Mar 02, 2020 at 08:35:12PM +0300, Dmitry Osipenko wrote: > The I2C timeout error message doesn't tell us what exactly failed and some > I2C client drivers do not clarify the error either. Adding WARN_ON_ONCE() > results in a stacktrace being dumped into KMSG, which is very useful for > debugging purposes. This is good for debugging, in deed, yet not good in the generic case. Timeouts are not an exception on the I2C bus (think of an EEPROM which is busy during an erase cycle), so it shouldn't be printed at all. This prinout should rather be dropped or at least be dev_dbg. --AFjAQ8ujNJnIGHaX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl5ne+EACgkQFA3kzBSg KbZV0Q//T4qO5EWJYaUa32aqo+HXKBPF6IH+vqrC9SoFXkMtY1nFqCLRkNHJzG3Z oweohZqW2IQf4rZNyxVoGWAiO+5yy+iGupJ1ozQPJR1tH/o/Cm4Rer2Ns9e696Gy 0mL0G47UpwVrWtfSPBwye3L99CbVeEXECc1gLLna0Bl+rsL6cPjuP0U7kj1FbeDK hRVlBTnn1WtWIYpfACCXAqiaytWG16Yph86GyohwFUEmevq3w4/1+1c3gRsofiwo NDBa15hEQIAEnSR5oTdtY2meBxNAAirNPg6Nu/W3G/SEZ0qMxORwXHrwY5z9h8QV OvlhaVcSZ+ncQu/wGxJcq1ZOt+w4dU+LCswo8jO8t9IwJ5jfqyqSGiFd8OMnMHPP UKUna18m5usqF8pUWBo9ltutcTr4iRbdzw/Ot1vd6l+Bnp+ATA824k6r8gnwAP61 xHKgYoie2c75bTDKCmyTtmMgNfc5M9Sr2mVl9JN1FRINlzw/Lu+IBwRdoS4X/xOB cGMKssftAS1O8L6ZRGtfPP7giCjDOvUcnE+gLUp5H8+aP4+rPABvrnn5JRMByeAM tKEW/R+fm9RXVlFDyF7oPTpWeSfEhZjz6NPK0ceT37lZYj0Nw9UvwKe2NueziVf/ 6XIUjaUl+HIGJNCqZcs+uh32fr6b+mIamsJeuivlE8262uhlSIs= =sNpK -----END PGP SIGNATURE----- --AFjAQ8ujNJnIGHaX--