Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4761599rwb; Tue, 8 Aug 2023 13:27:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFn8bOZ6IUZY+8J2iRHZivIUXJFBceifS8+i6Yziq5jXBIGMXrwz1FsTF/au7esYD92/BiT X-Received: by 2002:aa7:d6c6:0:b0:523:1ce9:1f41 with SMTP id x6-20020aa7d6c6000000b005231ce91f41mr809328edr.18.1691526474391; Tue, 08 Aug 2023 13:27:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691526474; cv=none; d=google.com; s=arc-20160816; b=WTV6Xj27EEvUK3G9EECfuy3lJL2wNJtxAgQLkAhTCHPJle7uxp+9+idco+R4dvYWuN lS5ln2QuwY4xfVZWRm0lj73OK5neDLSwlRqEg0L2YCB5b8gWQFMF0Lt7OXao4ClTYAEu ekc5eATuu9PLhYRpzcLvPUUOh0fa8k9VaGzcrOaTmtxNBEa7cKcstV3rUd6MrDgdLbhB JFC8hrPqMvEeUM7rebczmaYOIubp2gE5CoUimlyydRnde0S9BOV4C/WS16YiLdVq9y2I /JvFftLZ5IigyFukR/rZKo+lKKOm7cAGLr68px6d4+eM1vp8Mtzbj5jtvbCCmD9sJTYf VBbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=zle6seicxPi9bTR9U3F8Q1qig6WWuwHjH+NDD5x6cRc=; fh=AX2378MZ2p5+WSuQsPjCM13xXPKWlSeG87l1GE8Kg2w=; b=Z7yX6jOU2X/2nLawaumvKcCXLvUZaMpMjVBYgV1tLExBlUYo1N4WDsRfUP/ljuyPMX YbgfIbX8uM9JrvCqVHVr/RTsuTvplyqe0lVOCQz+5Rybdjh3bMNnuvFpTkQLN0jr6JwR IIugM9aSj+xNdKhmX0+nmI/VHZAduhaZ8K1pTDAFXOA4MWcxYBqUcC3TkxhaE7UdxCc9 H9M613Kj+xu9skMWfD+/kvChlVExUZu/0R/aJW09ciAO5jub/xfJn9GXLpPa6in4gpuK wmIzw28mK7kLheCV1JBGaaLLNjvhvADJr1bA6iAPW5cZRlwP1txcGQiooHhCACeE9IBk 7XPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IgZAhqXG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p6-20020aa7d306000000b00523463529d0si1616511edq.656.2023.08.08.13.27.29; Tue, 08 Aug 2023 13:27:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IgZAhqXG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233992AbjHHSD1 (ORCPT + 99 others); Tue, 8 Aug 2023 14:03:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232960AbjHHSDS (ORCPT ); Tue, 8 Aug 2023 14:03:18 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0024ED9282; Tue, 8 Aug 2023 09:31:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691512280; x=1723048280; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=vdeuurTFaZQKhbFyW+6Tv/hjCwIufVCn/vBK6Sa8C78=; b=IgZAhqXGoho8BxksK9QQJyEWebG+ahF5C+z4PNoYnQDaopDzbjg8ZghD ++bGyqguC74AXc9nOsfqj0Th6xo92MClTDIlahA+s5wON0NucNPEplGA0 8bmS2ANG14tLU71hcPs6gyKBnQr659DPB1SjXgObHoaRrAJab3ovohHOb QfL750RoGwVCgv4xTdRMEXIRFVqduc3XQlzk4EFFufF1WNhk4Vwwg2qEX 89xi72yOfLY6YbiPgNuVEqDBDT5ezMCnsB9gFmdvd5/cwv8VXmCuht5Q7 x3MaMFiMo5yg0XohEa+gyX4pr6pDXShXGyi4LlTahVfDiHNG+lvRalu75 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="401778704" X-IronPort-AV: E=Sophos;i="6.01,156,1684825200"; d="scan'208";a="401778704" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Aug 2023 06:09:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="1062012375" X-IronPort-AV: E=Sophos;i="6.01,156,1684825200"; d="scan'208";a="1062012375" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga005.fm.intel.com with ESMTP; 08 Aug 2023 06:09:26 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qTMSi-0097P4-1E; Tue, 08 Aug 2023 16:09:24 +0300 Date: Tue, 8 Aug 2023 16:09:24 +0300 From: Andy Shevchenko To: Florian Fainelli Cc: linux-kernel@vger.kernel.org, Linus Walleij , Ray Jui , Scott Branden , Broadcom internal kernel review list , "open list:PIN CONTROL SUBSYSTEM" , "moderated list:BROADCOM IPROC ARM ARCHITECTURE" Subject: Re: [PATCH 1/2] pinctrl: iproc-gpio: Silence probe deferral messages Message-ID: References: <20230807213022.1862903-1-florian.fainelli@broadcom.com> <20230807213022.1862903-2-florian.fainelli@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230807213022.1862903-2-florian.fainelli@broadcom.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 07, 2023 at 02:30:21PM -0700, Florian Fainelli wrote: > We can have gpiochip_add_data() return -EPROBE_DEFER which will make us > produce the "unable to add GPIO chip" message which is confusing. Use > dev_err_probe() to silence probe deferral messages. ... > ret = gpiochip_add_data(gc, chip); > if (ret < 0) { > - dev_err(dev, "unable to add GPIO chip\n"); > + dev_err_probe(dev, ret, "unable to add GPIO chip\n"); > return ret; return dev_err_probe(...); > } -- With Best Regards, Andy Shevchenko