Received: by 10.223.185.116 with SMTP id b49csp2022316wrg; Thu, 22 Feb 2018 07:02:17 -0800 (PST) X-Google-Smtp-Source: AH8x227ehF7C5plgykEo4FpbwPq0cg5eWQyh7IFWTvshcM8U59GoHs0YDDNzysKI2behCQfowlFe X-Received: by 2002:a17:902:7808:: with SMTP id p8-v6mr6993068pll.161.1519311737230; Thu, 22 Feb 2018 07:02:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519311737; cv=none; d=google.com; s=arc-20160816; b=OhnDxq/IzwwBJkbHQKQ5XrApnIzANRNk6hXTTW+LRnSVgqFsAYm4U1ssZ+XQFzFekc W5wjyZ3KAcgeRya7K+pV5La3vzQ7qliS0/GoGbF94PzIrVQ9Y8bIdzWioNkDEKYgqjhL l5zy7HwWD/emfobxZFprnbaW+OYIZJJEFHY860aRoeOfovKDs0hV6tX9WipOL9HVGrs9 5cgeHQsQ8PLtSJfwIC3avQX+LA1IeFJXRS+KfVBq46k8AkZBRHL+1F9DRKyglr8RFTJF XaqhHxdSGvVK+G2wpdwpUU8vxb/FW0d1Ehw8fYGedjo8URVFgUWxJVjfQ0emJc60IYc0 pUqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Oi1/S8CmMnlElL5akSnj+UFcYMS+9aHaHmhUbupdQhE=; b=MCNNmaPEBkpbVhaQk4Snk5DfVWPnPMu8VPUYYaEQe2DNuw8XkwUV9mxBoyZYn4OZFz Kh17nNiuWxqkpPT2MIGHT6HP60t3MxZGJ/0YodUZnYkZlT/pccVSjM6pqiS5TO1P/a8H hAlbd85Zosu5y92wgRYvCohXtCzuFa0bV7m9qcHQeLgbR7X6T23ZxAjuqqV9sEJN4PBM jliB4/K93kalAzT3n7qE2FqgtGOCbtH3GVhjYOexkDO3YeL5PIufaS4XIIFejWdXsmvQ jc9N2idVHd6tBOKc80TURl4+Y5zxIPkceaczGh+r8RS9YnE7idOvVgyM22G+Zf2rPw7y 9XYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kcYjxM8W; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 201si139528pge.119.2018.02.22.07.01.41; Thu, 22 Feb 2018 07:02:17 -0800 (PST) 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=@linaro.org header.s=google header.b=kcYjxM8W; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932884AbeBVPAk (ORCPT + 99 others); Thu, 22 Feb 2018 10:00:40 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:54665 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753858AbeBVPAf (ORCPT ); Thu, 22 Feb 2018 10:00:35 -0500 Received: by mail-it0-f66.google.com with SMTP id p204so6540787itc.4 for ; Thu, 22 Feb 2018 07:00:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Oi1/S8CmMnlElL5akSnj+UFcYMS+9aHaHmhUbupdQhE=; b=kcYjxM8Wbpwts8JfGyyXpyNp+hFX3UyMg+8f4PQuqqbUN4fcAz0IXqb5WUXleiTN6R zRDyGzz8MFEDi+h4Unrg/3E5sxesjnb0OAWj5qpCewA/qaMkgLFutM8pxzlCjWA35LyR R1UVdQZHGJyrOJTg0vWrJeGIzDor2tAlz//y8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Oi1/S8CmMnlElL5akSnj+UFcYMS+9aHaHmhUbupdQhE=; b=rC6NijP4Uv9B2BPFdYPiAs5h8mqYuvndnDBXEdc1yd98EwIEs2no/yvq1ZVWLMhIxJ KhxZ1d2pQh2ZcOBOD0gU9Y5PHuu17ftlLaDijmDZQ/VsC/kVsM0Q+Nr0Ao2axiP+a2Iw rpAf9uha8QPZ3KqAuZe83IqU1ZJg9RBFCsUzSfjwbMtXoQM7uZX1q0Ychi7Dhla8j9Kq 3ajiQC3TbAuxCDOtvlV59iKgjPdJkknJuMCPI08nBgMEyBSmV1NodHWcdyzFALTM2FDI IZ8+eOgoY2iFFNSpD8bPSKp7zqlR9R3Zm5li2yZdOIl3H7JTwdYmkUTloMWTRqeSjnil 79Fw== X-Gm-Message-State: APf1xPD4R805HknOB3LTLZU4jrMWiGq90vs/6KMNuiE8sb5u/ts0vZr6 Qkdj4LfAlvP2U+ldSFFD8KKs69TiurQQ9QfTlTpKtg== X-Received: by 10.36.103.88 with SMTP id u85mr8198816itc.38.1519311634731; Thu, 22 Feb 2018 07:00:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.230.25 with HTTP; Thu, 22 Feb 2018 07:00:34 -0800 (PST) In-Reply-To: <7efffc52-1332-5d98-e6b8-634d5ee9082e@lechnology.com> References: <1516566774-1786-1-git-send-email-david@lechnology.com> <7efffc52-1332-5d98-e6b8-634d5ee9082e@lechnology.com> From: Linus Walleij Date: Thu, 22 Feb 2018 16:00:34 +0100 Message-ID: Subject: Re: [PATCH] gpiolib: suppress error message on EPROBE_DEFER To: David Lechner Cc: "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 18, 2018 at 4:47 AM, David Lechner wrote: > On 02/07/2018 06:57 AM, Linus Walleij wrote: >> >> On Sun, Jan 21, 2018 at 9:32 PM, David Lechner >> wrote: >> >>> This suppresses printing an error message during probe of gpio drivers >>> when the error is EPROBE_DEFER. >>> >>> Cc: Linus Walleij >>> Signed-off-by: David Lechner >> >> >> I'm not sure about this. >> >> GPIO can be very basic system components. If we don't >> print this, defer a few times (for some reason) and then >> the kernel gives up on retrying, silently (as it happens) >> there is no trace in dmesg of what happened. That makes >> things hard to debug. >> >> This happened to me with some other driver, so it is not >> a made up example. >> >> What about an explicit deferral message for now? > > > so you mean something like this? > > if (err == -EPROBE_DEFER) > dev_info(dev, "deferring probe\n") > else > dev_err(dev, "... failed to register\n") Yes exactly. It has been brought to my attention that people are especially allergic to dmesg messages containing the word "failed". So if that is the problem, let's avoid it like this. Yours, Linus Walleij