Received: by 10.223.176.5 with SMTP id f5csp2223602wra; Thu, 8 Feb 2018 10:21:59 -0800 (PST) X-Google-Smtp-Source: AH8x227tWmRrHIsbgrEwWVZMcLjou413WCJcjfTzx9eVy/uGAqyg5ZtQP7IxpPnWGg7EGvlY1GAv X-Received: by 10.98.94.71 with SMTP id s68mr10538pfb.135.1518114119577; Thu, 08 Feb 2018 10:21:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518114119; cv=none; d=google.com; s=arc-20160816; b=ZmNrrxlzYEuFzQL3isGIOoPHz7GR7PPDEL2BHTsnVfo/7uWqwgGNVoH+QRYasWsh0P 5/+KH/ZVaQI3wJf48IdlPhrcslthNg74FtNcbo//p/bhcnTFJ7Fl0JupeMIUicWUHuXF 2XLjlA499JAe/Pmetoh+1gLiGQSYrPr4LjW7qcjKi9VQx9kHB1CEJUSoCxqjUOE2NRwt FMP0AB1w7pX4x9a/ncVZ+e0hsWUB6IVZrwTOVR+oYwNqMQ7/8hFX3Wbg0VKh1rQE0vE3 BGW1qVyb0yi5aL8zdeXSMS13eqKd0F815XdsEHEts7VtrK6vJdOYHo7l0vTC1WGspK0h UqYA== 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=TAAt9yYZNDQZhLPTHC1vkIiZUCqWjYdfaO77pBGxc8o=; b=jLGRAuhWs5SsXjNP/+/F0/PRG7D5Oi03hqXIeT7AmNgB5gSbQhlaRQR+XnEUHHAhrC L6ThcS0CU2fDQRyLxVfek6mAOK9UgoUt8IziTXilE88WKIUyqjBkwApESPvVGGAZBajr /BEm3vTfSk6rUDxEIqJS1sDkyQgfYZbf/HGMRyIEX6NoMqDHQ1xGlMkHzAVDXdVmYn31 ZBGxNVNYlv3yRpxZ61Pw9bw/8kGurIWzWGTtinlPh5mlxfOtfQ7QYnMiX3g10hVPp2x+ SXwdQmhKnNBq1P/g7VvzKar3y798It5F+p+KRDJpzjuPmIpI9ksbP7knGzudMjP8B5oR I/KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=i4nZcknz; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 94-v6si285869plb.807.2018.02.08.10.21.41; Thu, 08 Feb 2018 10:21:59 -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=@ti.com header.s=ti-com-17Q1 header.b=i4nZcknz; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752207AbeBHSTY (ORCPT + 99 others); Thu, 8 Feb 2018 13:19:24 -0500 Received: from fllnx210.ext.ti.com ([198.47.19.17]:62453 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751544AbeBHSTW (ORCPT ); Thu, 8 Feb 2018 13:19:22 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w18IIbLv024194; Thu, 8 Feb 2018 12:18:37 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1518113917; bh=c9IhO+KHs4SFsLV8iImLqhsX5ZzViMbqv+FEkadDorM=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=i4nZcknzC/5K6EDsWtqYJVYIoCCknpoDQELir0Y6IyXISFO56XlKAlzmvPNULnZrk 6/TxzexEtPVrVuT7Y6KkBSzVJ/nW1uP/8u4T79Qk139BlYe7tIDytjuQ6MIJxoJmhZ vXfVT5mzzsNKPPLaIEi3YkHxF6H72NWfX3pYv+DY= Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w18IIbfc005057; Thu, 8 Feb 2018 12:18:37 -0600 Received: from [128.247.59.147] (128.247.59.147) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.294.0; Thu, 8 Feb 2018 12:18:37 -0600 Subject: Re: [PATCH] gpiolib: suppress error message on EPROBE_DEFER To: Linus Walleij , David Lechner CC: , "linux-kernel@vger.kernel.org" References: <1516566774-1786-1-git-send-email-david@lechnology.com> From: Grygorii Strashko Message-ID: Date: Thu, 8 Feb 2018 12:18:37 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [128.247.59.147] 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? > The DD has debuging prints for all cases, so in general it can be used for boot debugging (really_probe()). So, in my opinion it make sense to print gpiolib specific message only in case of !EPROBE_DEFER. 5c -- regards, -grygorii