Received: by 10.223.185.116 with SMTP id b49csp2365527wrg; Sat, 17 Feb 2018 19:48:36 -0800 (PST) X-Google-Smtp-Source: AH8x224lfdMro7huZUzkm15RsPd7Tyi+kflPArWpYH9Z3WigYnn5nwCtIWAp9oAkvw8Xckq7UZoc X-Received: by 10.99.185.7 with SMTP id z7mr9281790pge.123.1518925716433; Sat, 17 Feb 2018 19:48:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518925716; cv=none; d=google.com; s=arc-20160816; b=UPLy/apuKzOLwaKjpdmdZmMI7ifhzASsx4L6Eb3BsOVfF2hIRNqnyypoL2t+o6J80p +xeiiOuos5j22oETxWLe3cex7nb6PEn4wMd3eSrign94LZ1+qECBADW3OYIp8vmNcys3 8FTwBhIWULyv7xLbJfdIfbs/EnCdmMhdoLZy9JIzj03/Lw6/vVZaw8p3PYQkPtOPA8gL m8Z2xxW1THUZPe4znVru/KlAvv69SsYgPUR5VEkAxP4NDr3OZd0pvpTGidfRqxPTgXYp fQoUHgV5BY039ppaZEx7e56Qd5ck+ck9Ub2Bf4jvAUUxwvluSJ5BfGnQRrZL8TvcjVGR PnNw== 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 :arc-authentication-results; bh=88gRRAbYLoRXwK/N8sPCHUypHyHpy00ka/KO7b9y2+c=; b=GcwOKp5JRqkRTTlWCgaVid7vTu2yCuxMSNL07lXAY3O0209ootUBY2bOvVHOneROBb xyOgf0pIzqn6UhzGGqwdK2QDOCVPD97CKDET9H1vi5gQLJE+U67Xo1rsoVVrnklvw53U rxv0fllG4NQQFLCdmqwfwtkf2PUgRFtEcVeoJ9ZKOVUn/j0MLikoODpFIA/RujqBcDsG gFA7QFb2v2mEbU9Ts5gHEXnHEt8Re52Ot/+MbHSbUMQxJ2erLKTZU9tSdnnOKuj6hrzu 8IU0D/cN1v80u2rEkIwp2eXjRxnKGvrM8KsYwQA47qFZlZbD/ol5FFgyxGTr4evR5OHd qYqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=CsTT/vxY; 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 i9si7152917pfi.150.2018.02.17.19.48.20; Sat, 17 Feb 2018 19:48:36 -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=fail header.i=@lechnology.com header.s=default header.b=CsTT/vxY; 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 S1751285AbeBRDri (ORCPT + 99 others); Sat, 17 Feb 2018 22:47:38 -0500 Received: from vern.gendns.com ([206.190.152.46]:56200 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751085AbeBRDrg (ORCPT ); Sat, 17 Feb 2018 22:47:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=88gRRAbYLoRXwK/N8sPCHUypHyHpy00ka/KO7b9y2+c=; b=CsTT/vxYxrlq10+lVN4GmlZI5x di5EJmpnlGPHbuhweAj5yAQjkM0voefemfH5Ljbd/OFc0X580IKWMpuyZxHV+xdsMuDNrctIUrf6F evryMppJf5IlU7M4ZUVsj2z+rhkcHpi2daNLQjWN6v1ETQ1gzetWQTyOAJdpmI15iAFiWv6exOeQ1 C2Cs5kk0vm4lNWWE0SfaIy+qXkaGg9PEG3wNrEHuRRSn0R8Nsq46AoCe90MJi/KRFvI6zOjXwKx4h Eja0UXoWHlyH9UFwyCFbdwaXvJiDp0jyUOnZQ41iFjSv/+zRvp34dagGMwclzmnGrto3Lnfc3LsoA N5X+prtA==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:35010 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1enFvf-001dgE-C8; Sat, 17 Feb 2018 22:46:19 -0500 Subject: Re: [PATCH] gpiolib: suppress error message on EPROBE_DEFER To: Linus Walleij Cc: linux-gpio@vger.kernel.org, "linux-kernel@vger.kernel.org" References: <1516566774-1786-1-git-send-email-david@lechnology.com> From: David Lechner Message-ID: <7efffc52-1332-5d98-e6b8-634d5ee9082e@lechnology.com> Date: Sat, 17 Feb 2018 21:47:49 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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")