Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3709457pxu; Mon, 30 Nov 2020 08:44:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJMzIxY0bXFR+fAFRdg/YroPLwFSA2TQLgDtfNzBl52s3RyQbiPG6PofyDeDDlJiDCx8GN X-Received: by 2002:a50:bc02:: with SMTP id j2mr23043530edh.317.1606754642623; Mon, 30 Nov 2020 08:44:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606754642; cv=none; d=google.com; s=arc-20160816; b=dEVmAzAXOl55Z6Yl/4Mp/TfrWH3vI+81z3FXawiLE8ItFQxJmJLWwGQjjKPicbJqAY 2jDQNwrYZcasI0u3iSr1dXC3wVV3W7Rq1Y3glykve7UEv2qTqSF/YxaDAp4hjCjEeFsv iZYo9l/gGZ3niI3CuV47Q/GZGTsJwE/mJP1EkzBpNKzUFzIxhp3O85iRU6CtdLrPtu09 hRD0XB8BikUTUvSNnft5PRPsdMwAzLesN4PFnButSYyKcnIig2wIhALq+9Zja0hliDGj zzactyiDFlxprTygMjsZJOmAKJ4gsS0rfA9tj8Utv/P+PldOEbSOO7G2Y0XW8EXBJmc8 PjXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6tD9ZVZ6gEgHyopRLPxX9gjuGEYfwDbo2GR5pg3Ufw4=; b=STumdR4E+ftPRFkfJrAsjESn4y6TloKlqrgUCkGeWB2iqL92gjmoDO6MMOxy+1HClr ckQMS8BTl88a/Mds9DM8Y3BgxWFISP77RHafw6Zs/mo3BtNX0ReofvRt+0eRRTGy2oVO lkmeJxcQHprp4jTNjlVYupkxl9PXJ0JekRM20PHr7pne54ECZAFC2wQ9Qb9fS3FKyxjL fdPx996jy+AjFwPz1de07kanC5W+WV8CzX5wIRlGhyS3soPlwTzni/5SV0uj2f6Oozp2 +uby6KuSjdgCjTiAqCAqTkN4SlOjyna1IVUW8hR/DdMJFtqivCzWc9GALdi2TjRcUXDm QrVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=glbcz3v2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m12si11024351edr.28.2020.11.30.08.43.27; Mon, 30 Nov 2020 08:44:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=glbcz3v2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728849AbgK3QkN (ORCPT + 99 others); Mon, 30 Nov 2020 11:40:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727924AbgK3QkN (ORCPT ); Mon, 30 Nov 2020 11:40:13 -0500 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30AE8C0613CF for ; Mon, 30 Nov 2020 08:39:27 -0800 (PST) Received: by mail-ej1-x644.google.com with SMTP id qw4so12909479ejb.12 for ; Mon, 30 Nov 2020 08:39:27 -0800 (PST) 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; bh=6tD9ZVZ6gEgHyopRLPxX9gjuGEYfwDbo2GR5pg3Ufw4=; b=glbcz3v23KpKTyAKnx1I60vsVXUyi8fdbsPAkgkSO82ICb8g57m1qTTu7ZzCVZ9Ihc FH5rZ8Ht8MBFuLyHSylml3QywhK9XbmEWYDbOuDsdABb8RFkUldZ1HCYLrPNDdNlxyTp DQYHeaUIJz/6bgu/RYhL7KePVkD+5V03rg+b3NxI3uOc4hXeJ80fHWG9QameyeLyAr5Q qXmCwF85bIyrjijUS9NSSilY3kjYs8ViX4Q9fH9appyTrlusTidi4l8tmBTPvrt932qZ 8P27uJXoiWSFSIXKvkt4+prrOLmDRHI73pPWHz5bshntvLIQbbIQ3XZRAPzCk3a61Cs4 m6qw== 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; bh=6tD9ZVZ6gEgHyopRLPxX9gjuGEYfwDbo2GR5pg3Ufw4=; b=db3CzfX1AnEWL6fTug8M7gsrsoIUPK32a7C9FDFVt0qrvzYcTG+ftWramA4a9SyXEi sSgOOTs1nzTsKrUGU0hkrk5s+j7x7Rw27cOOYJu84k4k7GmeWadUKVFG4R6eTze6oTYm RkULViotv8R1/O50ZSSuC4inXmeG2jHp/oOn37PJAw+XSf3EudVqacFxq0FENQszAMhr LU8+ldrN8HlDr1ZEh/n+D1PNJshTRK4jrLxxaqwj5sw9873PCpaAXpTIhUhbFzv7MYxf bdcj+t2L5nXhmdZrS3c1q9xk7UWc4Sa7VaXrII77GGHEtscIox5OIEtAsR5GDs82AOmr itHQ== X-Gm-Message-State: AOAM533ad1UsbjzYGM+4TXiOVf+vHABIGyo/3h1yFCWNG1JZRAFKNt7j D2nq7J+ZELxwpTbfouIbn8XvnPpR6jFjmvhglyh1eQ== X-Received: by 2002:a17:907:b09:: with SMTP id h9mr7163881ejl.155.1606754365951; Mon, 30 Nov 2020 08:39:25 -0800 (PST) MIME-Version: 1.0 References: <20201118143149.26067-1-grygorii.strashko@ti.com> In-Reply-To: <20201118143149.26067-1-grygorii.strashko@ti.com> From: Bartosz Golaszewski Date: Mon, 30 Nov 2020 17:39:15 +0100 Message-ID: Subject: Re: [PATCH] gpio: omap: handle deferred probe with dev_err_probe() for gpiochip_add_data() To: Grygorii Strashko Cc: Linus Walleij , linux-gpio , LKML , Linux-OMAP , Santosh Shilimkar Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 18, 2020 at 3:31 PM Grygorii Strashko wrote: > > The gpiochip_add_data() may return -EPROBE_DEFER which is not handled > properly by TI GPIO driver and causes unnecessary boot log messages. > > Hence, add proper deferred probe handling with new dev_err_probe() API. > > Signed-off-by: Grygorii Strashko > --- > drivers/gpio/gpio-omap.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c > index f7ceb2b11afc..41952bb818ad 100644 > --- a/drivers/gpio/gpio-omap.c > +++ b/drivers/gpio/gpio-omap.c > @@ -1049,11 +1049,8 @@ static int omap_gpio_chip_init(struct gpio_bank *bank, struct irq_chip *irqc) > irq->first = irq_base; > > ret = gpiochip_add_data(&bank->chip, bank); > - if (ret) { > - dev_err(bank->chip.parent, > - "Could not register gpio chip %d\n", ret); > - return ret; > - } > + if (ret) > + return dev_err_probe(bank->chip.parent, ret, "Could not register gpio chip\n"); > > ret = devm_request_irq(bank->chip.parent, bank->irq, > omap_gpio_irq_handler, > -- > 2.17.1 > Now applied. Thanks! Bartosz