Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1079111pxa; Fri, 28 Aug 2020 03:07:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPv859zxRDL+42SebL6dKMwz/49SoRcjlbsFU7o7SIZMKioeMnC1HfT73GmZe9GLoNatIn X-Received: by 2002:a17:906:6c99:: with SMTP id s25mr1002648ejr.304.1598609233033; Fri, 28 Aug 2020 03:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598609233; cv=none; d=google.com; s=arc-20160816; b=l8U0LSXfGsBbn+JiIL7bOZ4XUtFL+cFPtTTZ2u0dwwiQcWv2xfwH2QYE8eKalprlB2 +OAJXJE7yrkPqXb+bvWm3MPrGnQzEo8ywUyoiE+/9QxLF0bD0OfUFEMQ7G8ps807hsEj misJ8u4q8PPrACHgt5ztsVbLVIN/i7L8oAk4s9Djipl70CWu0yBv1T1t9I1Fy+tIguqR kCty60gdaIc+ZHbu0WJOHuHLwT1kBs98tjea84CTLE00IVHM3nrZAJCv30amA7Kt2mmq BEukdss8k9EQgthkOXrXZNGZTvE0wpGyAnQlMInKMwccQ1Si96BlygBx0QFEp34na+/6 iyFw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=JeATIG32mt8GW6hG8YQG7ME9WIX0ZVokl8LGrdLF2VI=; b=cbUACVCoB+mTjPu7zOwE9Is6OQh8lRBbszMWg2VRK6jdxF/r30hc73pR7bssTnyD2x c7kB5hzE89kWoXy4AHyv7oLKc1zLZr+lNPguVxkZquCPECmHGaFqWPDCHmn2AbOmQ05J p6z/sxWZtoqwyl9cmiw+dDsLVaujgEOQ4f9yGfA65aLougPCVNXobRcJZZ1ki+41HZeG LqdiOPi/PBmjuvvWCvMyB4BOEIiAGEy27vuXxLlhI1xDJdVkHjE0DYP038GaLjYqeAl6 4WM/91xSZdvpOGrKPxJ9RFDM1IiZOnIccsRxSiUktVbylgndpqJaIyCNjN6z0GIv1yu4 JM/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="npg/pMc4"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y22si272423edo.147.2020.08.28.03.06.49; Fri, 28 Aug 2020 03:07:13 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b="npg/pMc4"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729062AbgH1KD4 (ORCPT + 99 others); Fri, 28 Aug 2020 06:03:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728269AbgH1KDy (ORCPT ); Fri, 28 Aug 2020 06:03:54 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A7A0C061264; Fri, 28 Aug 2020 03:03:54 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id u128so409982pfb.6; Fri, 28 Aug 2020 03:03:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JeATIG32mt8GW6hG8YQG7ME9WIX0ZVokl8LGrdLF2VI=; b=npg/pMc4xABa6t0kSPLrj5t0jRwEpQAQYUmdQOPQPG6nINTTJP69y7uqI6mM/VpPxw cYwVEFkyQ7quMqgaUMVLWeW+z1heNIuuVUg0LO2Yh8US7xawckT7OOo8gYFxeHNrrDO1 lYpQkCVocyE8tAEt2sZIz4RMKbIvC7khbR7gX9s2l9yQsr6iHWCysgEUqDQpWHGqc2Gq aGLDUQj2JBpUGPzpZzp4/repGsJQbDsdIgWFVHpkH1yAbBdltOFaQtfPr74096y8mqXY LPfh0ght00BoCZ7ujUc5gzR/x7AWjzC7pUN1TpLkvDfS0w4JVfAjpOnIRzVHrozs7t1Z yV4w== 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=JeATIG32mt8GW6hG8YQG7ME9WIX0ZVokl8LGrdLF2VI=; b=nHkFUTVFEOuET7Fb8n6NS7Is3HcB62Ye/wzBGKGVAgXbzeF3LQyMWXnkW5WWkqzO1h P+K7yFYVqZWJLjb+x+nLa4hukShJYIA0tK6F9xLWMmnc2UdcgrbPhd1MVcIJE4/SU8N9 Ola0iLyftTZs1t3ofvVDIz2g16IhYjjl9qjKbne0OeCliYzFWVzCiAS7hf83ccQcRpPm L6r/1GFHwy4SdS5G/TGGM/48huRlNULCD0EYAArXVSpYXXX73BNFktrkWKlxZcbYGaS+ 8FS8yCkqoAzwr5lFFm6DVlRTSUZNTYM4P9QlRRmZHoi5FY03u7Il1NBKqB3vq0Zubeye z6Cg== X-Gm-Message-State: AOAM533cXBTTNUPHatN9qxCx/u6H40x/IsEnJNSbXC0fUM7v/aqTSG/D sjBaYF9NqhA5edqsSSQ/e+Iuh+D2kgpwmAdTfds= X-Received: by 2002:a63:ec18:: with SMTP id j24mr677384pgh.74.1598609033963; Fri, 28 Aug 2020 03:03:53 -0700 (PDT) MIME-Version: 1.0 References: <20200827200827.26462-1-krzk@kernel.org> In-Reply-To: <20200827200827.26462-1-krzk@kernel.org> From: Andy Shevchenko Date: Fri, 28 Aug 2020 13:03:37 +0300 Message-ID: Subject: Re: [PATCH 1/6] gpio: bcm-kona: Simplify with dev_err_probe() To: Krzysztof Kozlowski Cc: Ray Jui , Linus Walleij , Bartosz Golaszewski , Florian Fainelli , Scott Branden , bcm-kernel-feedback-list , Keerthy , Grygorii Strashko , Santosh Shilimkar , Kevin Hilman , Michal Simek , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Linux OMAP Mailing List , linux-arm Mailing List 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 Thu, Aug 27, 2020 at 11:09 PM Krzysztof Kozlowski wrote: > > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and also it prints the error value. > I believe you are doing this right (after we have discussed previous series and approaches). Reviewed-by: Andy Shevchenko for entire series (Linus!) > Signed-off-by: Krzysztof Kozlowski > --- > drivers/gpio/gpio-bcm-kona.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/gpio/gpio-bcm-kona.c b/drivers/gpio/gpio-bcm-kona.c > index cf3687a7925f..1e6b427f2c4a 100644 > --- a/drivers/gpio/gpio-bcm-kona.c > +++ b/drivers/gpio/gpio-bcm-kona.c > @@ -590,10 +590,7 @@ static int bcm_kona_gpio_probe(struct platform_device *pdev) > dev_err(dev, "Couldn't determine # GPIO banks\n"); > return -ENOENT; > } else if (ret < 0) { > - if (ret != -EPROBE_DEFER) > - dev_err(dev, "Couldn't determine GPIO banks: (%pe)\n", > - ERR_PTR(ret)); > - return ret; > + return dev_err_probe(dev, ret, "Couldn't determine GPIO banks\n"); > } > kona_gpio->num_bank = ret; > > -- > 2.17.1 > -- With Best Regards, Andy Shevchenko