Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6884125ybi; Mon, 8 Jul 2019 10:11:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMSJl4GP6Gf0sdCPTIbEyaBYFKgqkpsxqckyix5GhsFzjBZyguMnnUF6CtTZHf0DY1/+A3 X-Received: by 2002:a63:101b:: with SMTP id f27mr24284399pgl.291.1562605888465; Mon, 08 Jul 2019 10:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562605888; cv=none; d=google.com; s=arc-20160816; b=CYhXzFMtORs3oHkfAsM8eOazvkcFuWlnoah/YAGfehTJgvvT1/JNWNdqVlJWnRzXTU hjDW2SM7O4f9PNyAkIlQrwjLaDGg/cbWwS9olo/O40XZe3kAKb7qyEoq1NPrwKNRXr6o rhs2wcPHf3YFzDuvEKhbPNt20HbMzpXo7un6w1iAMKLsPvjwCqWwxyIj46suKX08ygqE JNKsJVmjjjhkpToAt1vNG8wmVAmiHj+DyxbhZ2jR4J0CMN+nYTOe7iW6DS6OVv7vtm4T 9678XCjk4ljPsyoXmVJ7L2bgpQSaYHtVhI6KkbE6xRd63Ahg092nAQY0hOS2mU8YOt77 zG8w== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=g+sALRMx3axDPcXHZRFny6DKBCm9LDHQ+6TuqJYb3VA=; b=Bv/gnwabGzAWuc+BHC/Io7lmIDQNis4myDZ6VtAac2adC/qVzqFwBtRE+9SLPWQKm5 jRw13q971ES0V9k2z59m3ObRNAl17wagR2UlrEfzjNu9LUj0pdLRZztYK1kq99b8d4N3 2g9tXI+JJvro1O4XJtMm2aysI4EWEYos2Rfngtd3m/GfXGCqEXvd0WHlnq1WGppy5Wa1 8TNuRN9I8KKAJefVNsIbx4I+a4xfuWDuqV5t+Jsr7KZVScG5f21Cd5ZSURL445pm+cML wDpjepHGZN4xUR8tx3lAq9OJ73P0PVr3lG4H/cl9mtmK7z1ToeNmp9R2q0PMlOUcwRNQ nSAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="H/CvjME7"; 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 t14si19428178pgh.128.2019.07.08.10.11.13; Mon, 08 Jul 2019 10:11:28 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="H/CvjME7"; 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 S1730820AbfGHMhA (ORCPT + 99 others); Mon, 8 Jul 2019 08:37:00 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:34067 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727544AbfGHMhA (ORCPT ); Mon, 8 Jul 2019 08:37:00 -0400 Received: by mail-oi1-f194.google.com with SMTP id l12so12468913oil.1 for ; Mon, 08 Jul 2019 05:36:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=g+sALRMx3axDPcXHZRFny6DKBCm9LDHQ+6TuqJYb3VA=; b=H/CvjME71MktalTFUrkUBLNNXvxjXXjSzQ6LCQxrq4kltLmo7gFhZWI/zGhFWh706y CEg5JR10HR0g5rLA+yexfkSHKg7JURdYAJM6IJh1k5Nwy9exQLgJA8wZS6R00kV5tAD8 hC4zO/iRWp1itRNCxPrGPSl+SougdSUMHAWG+u1nh3Ud1q4pV1B3bMY90uxoww5OsV6Q HcmmGZx3TwhtnF+L/dqMsIMfc2CCPqsLwT4OJlYnTUsMYjv2lKktT2H4JfkR3HRHPrzs JkbEjse6Q8t7Ra6CsgeuqJKd52X0iwevFk6ENk9KHE993PceVL3d0SysAVVG4Rsw5Wm1 YrlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=g+sALRMx3axDPcXHZRFny6DKBCm9LDHQ+6TuqJYb3VA=; b=tYB5ZR40eLS1+X822RKuCFG42PBFzBlvUPrF4Xb3HSyekHwWE5Qa1EJGcqyHpQIICi vWElFHv5HBbMwU0FTEV6Dmnjjx61pHfYVoZlaF7oCDjeXUzCzIjleg5BqfyJA7pVhghb QOrcLB4jUT/PFu+t7LrHOIQ6CftFO2thu3OLtD5sg9n1V8CUGWel7lstoqwTAFvbO8rG Y/196JuxtyxVbtD+ifOkWOXJubULQM3U1lwKfFBSDLRygmY+8XlIce6b1uPmdMiCXrJf Gz/K8IqVTxJ9uyDt8bnzd2AD4LMS7IdkTN3syTJt8ZCd6OOg4/WZL/rDw8RgAnrhclwO BZyA== X-Gm-Message-State: APjAAAXdbSXweBfwuAlGEKoTK7Ei364NoZFYKg9at7RWr4hhTKqfoQax DHXmfRmNpKxgW4v1tmIRDcDFesFOarGz7XX4DgahGg== X-Received: by 2002:aca:b06:: with SMTP id 6mr9717816oil.175.1562589419535; Mon, 08 Jul 2019 05:36:59 -0700 (PDT) MIME-Version: 1.0 References: <20190708084904.18607-1-j-keerthy@ti.com> In-Reply-To: <20190708084904.18607-1-j-keerthy@ti.com> From: Bartosz Golaszewski Date: Mon, 8 Jul 2019 14:36:48 +0200 Message-ID: Subject: Re: [PATCH] gpio: davinci: silence error prints in case of EPROBE_DEFER To: Keerthy Cc: Linus Walleij , LKML , linux-gpio , Tero Kristo Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pon., 8 lip 2019 o 10:48 Keerthy napisa=C5=82(a): > > Silence error prints in case of EPROBE_DEFER. This avoids > multiple/duplicate defer prints during boot. > > Signed-off-by: Keerthy > --- > drivers/gpio/gpio-davinci.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c > index fc494a84a29d..e0b025689625 100644 > --- a/drivers/gpio/gpio-davinci.c > +++ b/drivers/gpio/gpio-davinci.c > @@ -238,8 +238,9 @@ static int davinci_gpio_probe(struct platform_device = *pdev) > for (i =3D 0; i < nirq; i++) { > chips->irqs[i] =3D platform_get_irq(pdev, i); > if (chips->irqs[i] < 0) { > - dev_info(dev, "IRQ not populated, err =3D %d\n", > - chips->irqs[i]); > + if (chips->irqs[i] !=3D -EPROBE_DEFER) > + dev_info(dev, "IRQ not populated, err =3D= %d\n", > + chips->irqs[i]); > return chips->irqs[i]; > } > } > -- > 2.17.1 > Applied to fixes, thanks. Bart