Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp686908ybh; Tue, 10 Mar 2020 06:28:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuY/yuiTfsTntCHjg6k5irbEc7h6AGhsUWgAw+2jZo7C3YPjKDA5ELCOsT/ZWa/+C5R7TNU X-Received: by 2002:a9d:d36:: with SMTP id 51mr4174256oti.308.1583846935766; Tue, 10 Mar 2020 06:28:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583846935; cv=none; d=google.com; s=arc-20160816; b=q0/vuOHV2y27XZHlU0PEse1KqHIpr83cA1//w2diKTcqr+9P0/3c26PjFg2py4ZgGY jKVXuJ8xy7Ns/RvS3wQ5xEIUbLdz1RQebAHcPYJMPEJcJC3VOeoSgmv1bDmiD6uubBSc vppdCISGKFvigMhEJKOd4hintwQyQy8O+gpn11RmTqEOsiIKlX/u/irkV9bqVBJsrOck meeueGWJx/4HwBPMvDgTxx3Mv1UXRo5TKiJWODUA3wyMmTn/fB4qBMVm5JiV3dFqYVvC HrA40pjREqprJX+YZi+yXv0UT4h4FunvbFjskfkpmTLRQ8Q0uYewrDmy2T1HWBzj46G7 uO/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=OFEfv78mqxElApVv1PrLdhetmsXCx++xAuLsijmT7RU=; b=LigAATU8S1Iupw+wVrE2kON21dAunaS0NmX/mNdwaKI/mHMrPZJLKaZWnmE6y1pE1X /XslBXjJvmTKoM4NbicLVRGH+lMpvL3KFJBbuQD5Xtt1wQHTe9xuJKeGPwlsRyEE/O9t 5YdCTLswnZdVVXP02JGYLtUB289O9W3aLDxv4aiA9HoEV5cpJ8Ia2WyZTTUhtKuSwexW wkRdODNrKbrFHMkVfVSQCb52yaWDnZOkltqs0g2GWSh4wdwFPEdKH5my3QJ7PUEnQvK3 IW7lPYUJ1lRxSrPTmuj2hQutC5C/fjIdA+9fxHPUL6Vd2AiwSg0vS0/huNXdoD45m6eO jI4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MPjkwmXI; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f18si8477687oti.289.2020.03.10.06.28.44; Tue, 10 Mar 2020 06:28:55 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MPjkwmXI; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730210AbgCJN0r (ORCPT + 99 others); Tue, 10 Mar 2020 09:26:47 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:33624 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728043AbgCJN0p (ORCPT ); Tue, 10 Mar 2020 09:26:45 -0400 Received: by mail-lj1-f194.google.com with SMTP id f13so14135714ljp.0; Tue, 10 Mar 2020 06:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=OFEfv78mqxElApVv1PrLdhetmsXCx++xAuLsijmT7RU=; b=MPjkwmXIAf3FWyEgLP72VjHIRYpfGhG20UY8BhN66PsNpd4eGCduEIgthZsYBz4n9C 5H9OfqJmEgjp2Du2id90Wx5m8OyU9+TmYOjINHJkzc1MiJV6yIfrsGPCiafRVAOWGSuI 1Gs+jLcTEOpUsyfNPXJF25iNTJOrR8OVSF9/i3xeJiy8Y6D57slJhMk+tWGFtq3QujnP mciLBxJjYSs+Px/jakxMHhE/edRBjYPhwpCEOW7gEDNifraZRlkCfEkeqfeNmacRF/kx qhxV+c2mGxh8SBUwtPRh02MYUUi5QbY75MS43mhKGPjlYRn3XXCTvXwUoHI55oLqsOkD bbfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=OFEfv78mqxElApVv1PrLdhetmsXCx++xAuLsijmT7RU=; b=WfPklX4tjngMs3psv/VlVntfAMWekYLHNpA3vkNHc9XyL575gYOpHI2v09EcxJfUbA 0K4UekBNGdr7Cp6HAP1u6I8aE9QiqlRk9Oquks2B8ID7IFaajf/nb8KaW8Ksv74bX7zC qfMHFY6Es5WNoiVBqACJmngb35k6H3AXVWNTNbXM2UMoP/QW85Mj1fCHy3bBsGKJPWrV WUKDrfTmFAEPj/u12YYMLHULHkfW2ViBIG9q1AxPIDzfsxgeHYlRc/Z1v/si7X/rDfdY KlXaT13q9Hk58BMTcDXQe3lpsn5wEH/1poaQsmZDzUaqA5VMomALjM3o265RcRa6VNM5 d8lQ== X-Gm-Message-State: ANhLgQ2h63mwAj4hKZlTXL9dQRn43KDEr+hZdPvhAKHVKoGzjCob1HuW owJPnt4KjiMw15rkYLT48K0MiP8n X-Received: by 2002:a05:651c:114:: with SMTP id a20mr12995219ljb.122.1583846803027; Tue, 10 Mar 2020 06:26:43 -0700 (PDT) Received: from [192.168.2.145] (94-29-39-224.dynamic.spd-mgts.ru. [94.29.39.224]) by smtp.googlemail.com with ESMTPSA id j24sm8742473lji.76.2020.03.10.06.26.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Mar 2020 06:26:42 -0700 (PDT) Subject: Re: [PATCH v1] i2c: tegra: Make timeout error more informative To: Wolfram Sang Cc: Thierry Reding , Jonathan Hunter , Laxman Dewangan , linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200302173512.2743-1-digetx@gmail.com> <20200310113706.GW1987@ninjato> From: Dmitry Osipenko Message-ID: <017aad72-9872-a4aa-dc99-bd7d08c0db14@gmail.com> Date: Tue, 10 Mar 2020 16:26:41 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200310113706.GW1987@ninjato> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 10.03.2020 14:37, Wolfram Sang пишет: > 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. Oh, well. I'll keep this debugging applied locally then, it's quite unfortunate when something fails silently :)