Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp944141imu; Wed, 23 Jan 2019 08:17:39 -0800 (PST) X-Google-Smtp-Source: ALg8bN6GEqtIyNTPMKNOliGwN1/VIETZpMpFYbWO47SUAzdAbPJpPbCZADG984HxgYIye7mIXcux X-Received: by 2002:aa7:8608:: with SMTP id p8mr2569395pfn.125.1548260259661; Wed, 23 Jan 2019 08:17:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548260259; cv=none; d=google.com; s=arc-20160816; b=TllXCOpWy7C1E5vwLZZouC3C6EK0Br+bF96H6gj9YCBtJIK8CIjSfMwXyU957TX46m AG09NF4podnAnW8y1SDP1l4q2lHksKgm8cMauiDDTmJoJ4Cq7Kd06nhpxdSSgO5YnHGi 2TKFaL0uLJuV2vfdciuFrmczrwrR8Hs5iUu1MNCIl53xs5CKlwr191Hn9GppXSA8dfg4 i117SUFsDK8Yjcciw30uWlVZl0Cttie8yHQV0cz94Xq/isJI2VjfCGFosriIyPf5dISe d5fx5FI+sofDEN2BGoJUNjQOjKBmaRA7r4Q+fkH9CM2wLU0W/x+PyEW5zV0oWE18pzfU CcVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version; bh=RsWlPGO/+FOOvi8KxwjJPytE1Yepo/FbZGRLPMN3g1g=; b=b5VuguL6sUKFYdkb9RGluqY2Ol3L6bStXF9g0yC/HhWGb55VeEi1haQHXoWybnJQqy U+/GnxHJqaP+Y0G0orfYUbs2IBx32yY6M7tS/E3k+Apa7HZq3UZqHEq4w4HprbkJf5sq 2cUfg5aN4CqK8sL95MuZLfIfYCfh4qzOU35HGvOZHduiAKJgNU8vmMDLwfurIcaaHB48 Oa/2QXKndchzLOfnO6xKtIZPQ8l27+RFSsvcHs8FVKX/+YZQmiaL13AtU1+VBGA1bG6s 09VpId7raPvFN8wE4qmGaEvXbdKwUMAh5IImzLW7yinErjHFOR4Lhhm9hS7zn6CQqVZI mJpw== 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=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9si15221570pgo.23.2019.01.23.08.17.23; Wed, 23 Jan 2019 08:17:39 -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=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726359AbfAWQO5 (ORCPT + 99 others); Wed, 23 Jan 2019 11:14:57 -0500 Received: from imap1.codethink.co.uk ([176.9.8.82]:52075 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725994AbfAWQO5 (ORCPT ); Wed, 23 Jan 2019 11:14:57 -0500 Received: from [192.168.122.135] (helo=_) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1gmLAv-0002Jf-4z; Wed, 23 Jan 2019 16:14:49 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 23 Jan 2019 16:14:49 +0000 From: Ben Dooks To: Mark Brown Cc: Martin Blumenstingl , linux-amlogic@lists.infradead.org, thierry.reding@gmail.com, boris.brezillon@free-electrons.com, lgirdwood@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] regulator: pwm: suppress EPROBE_DEFER error message In-Reply-To: <20190123160405.GD7503@sirena.org.uk> References: <20190121183723.25231-1-martin.blumenstingl@googlemail.com> <20190121183723.25231-2-martin.blumenstingl@googlemail.com> <20190123160405.GD7503@sirena.org.uk> Message-ID: X-Sender: ben.dooks@codethink.co.uk User-Agent: Roundcube Webmail/1.1.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-01-23 16:04, Mark Brown wrote: > On Mon, Jan 21, 2019 at 07:37:23PM +0100, Martin Blumenstingl wrote: >> Suppress the "Failed to get PWM" error output if the actual error code >> is EPROBE_DEFER. This makes the behavior of the pwm-regulator driver >> consistent with what most other drivers do (which is: print all errors >> except EPROBE_DEFER). >> >> An example where this cleans up the kernel log are the 32-bit Amlogic >> Meson boards: >> multi_v7_defconfig has CONFIG_REGULATOR_PWM=y and CONFIG_PWM_MESON=m. > > This also cleans up the kernel log in the case where you've not got a > driver enabled that you need (or it's not loading for some reason) > which > isn't super helpful when you're trying to figure out why the driver > won't probe. There's not even anything at debug level, that would > probably be fine. > > The ideal thing here would be to work on setting up the dependency > information based on DT and using that to try to sort initialization > order so we try things in an order that minimizes the number of failed > tries. Hmm, would it be useful to have a devfs file which holds the last probe code?