Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3376143ybf; Tue, 3 Mar 2020 04:59:49 -0800 (PST) X-Google-Smtp-Source: ADFU+vs4RkXnuEnIWmPfXMZsap+VVPZJgajdWDk7m3Bzb3tY7uAd5nTaTOQjJq4abDdebhEuDsrL X-Received: by 2002:a54:4791:: with SMTP id o17mr2246072oic.70.1583240389520; Tue, 03 Mar 2020 04:59:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583240389; cv=none; d=google.com; s=arc-20160816; b=H1X3+bgXNYBQcaHWATZ7BGbxcFmdBFX94co0doBQbTgtdTIU5oWBcYqoSTXYbF0ysb oSAUK5Cp17QB6jPc2IDaUnVgcoByycbA/WKjAZDPqbaRkPaalI0+B6dGuyhM3yMc2sqS RdCNInKRWbsqGNLhvkHKxAyKSNnxu3ttpgFkdrkHA7S3ylKn2jpqbt1fAnUx8XAKjTwp +5p8eNcJC3l0iOtobRKWl42gKAaVJp0izNDt4bqSYjLVZCmuqgjLJMu15ZrNdXFHXidm nplaz4ktO4DxB1+u+3X+E4DxYaLArEai4vHBvvJ/KuQHC31qsb/BSJgfMRfaFpjwVu9L I8kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=stGcmST9KDFEKYg7D7b7IJzOhSxNtrc5xBnyqLQm1JM=; b=exhp/P+xKSO8HNRkNXuKxTm5zdylzzHZolV55CrE0M7OAz/f+zTBb/wJL5Co/qXDeZ VxAKvfCH+v0Dqkq1vKZFYX+m7h61x7YGzQgTk9LdZXjG5z9IewIKnb3U6z5wvlYr1hJU YcyTc83WZPIXQvXcLAwCjovGQjhaV8sVEL0Iq7NwwRJmNM/1jQkzom0GzUOb7DLN3wFy U72jmE9Bd0v86eyPVxxINqMFk6dgOixyFQKDAZSVyoqTIWi96SH+Yed67j5xh1+1aO4k AJw3q5vcdKKcKZzkZGvcEqek/7bsKG8pnk64Em9Yw2gcFhzFu+qjuIeu+9OxLcq1XqPj p/YA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d20si8140652otq.157.2020.03.03.04.59.36; Tue, 03 Mar 2020 04:59:49 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728504AbgCCMaN (ORCPT + 99 others); Tue, 3 Mar 2020 07:30:13 -0500 Received: from foss.arm.com ([217.140.110.172]:46372 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727121AbgCCMaN (ORCPT ); Tue, 3 Mar 2020 07:30:13 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 81713FEC; Tue, 3 Mar 2020 04:30:12 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 066563F534; Tue, 3 Mar 2020 04:30:11 -0800 (PST) Date: Tue, 3 Mar 2020 12:30:10 +0000 From: Mark Brown To: Anson Huang Cc: lgirdwood@gmail.com, linux-kernel@vger.kernel.org, Linux-imx@nxp.com Subject: Re: [PATCH] regulator: anatop: Drop error message for -EPROBE_DEFER Message-ID: <20200303123010.GB3866@sirena.org.uk> References: <1583205261-1994-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xgyAXRrhYN0wYx8y" Content-Disposition: inline In-Reply-To: <1583205261-1994-1-git-send-email-Anson.Huang@nxp.com> X-Cookie: Drilling for oil is boring. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --xgyAXRrhYN0wYx8y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Mar 03, 2020 at 11:14:21AM +0800, Anson Huang wrote: > devm_regulator_register() could return -EPROBE_DEFER when trying to > get init data and NOT all resources are available at that time, for > this case, error message should NOT be present, the driver will call > probe again later, so drop error message for -EPROBE_DEFER. No, this is not good - it means that if there is some problem the user will not get any information about why the driver is not instantiating and how to fix it. At most lower the message to dev_dbg(). --xgyAXRrhYN0wYx8y Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl5eTdEACgkQJNaLcl1U h9DP0Af9EBo3Ed3IWJcDJkDD8qmTx/jmBM6AWA11STYC8A1vzwM+VrL+y/SLXSFV fp7s2QPZtWc/ZAb6hXnj6CzYr2T2iOxWvNf23G6lqMrUzMkLWwrUo3RPh9LrHdoU 2ogfGwxtr58v1TlXuQlNzztjl3NDkybE0eTyCmvBX3RGwuStrcoMiSeYfA4NF4sq ybruAa0kXwn+WCOw6VMvNdfv9XI9Gjav4mPVu2GqNNI1oOIbbvFqLDzLLvpbPsJt bmCuQrC59gbvM/Nj7XdVJSQN5PTMDeRlMB2mWPkv66Te3T1MVr7QfKrQf1RSbgvf gvXkLlRfaNgldAl14nclxqggLmFDxQ== =oY7L -----END PGP SIGNATURE----- --xgyAXRrhYN0wYx8y--