From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753003AbbCJMdc (ORCPT ); Tue, 10 Mar 2015 08:33:32 -0400 Received: from gloria.sntech.de ([95.129.55.99]:39753 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751596AbbCJMda convert rfc822-to-8bit (ORCPT ); Tue, 10 Mar 2015 08:33:30 -0400 From: Heiko Stuebner To: Mark Brown Cc: Philipp Zabel , David Airlie , djkurtz@chromium.org, Yakir Yang , Fabio Estevam , dianders@chromium.org, Andy Yan , Mark Yao , linux-rockchip@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/3] regulator: don't emit errors in {devm_}regulator_bulk_get when defering Date: Tue, 10 Mar 2015 13:33:23 +0100 Message-ID: <2019237.rjYDPBpg0A@phil> User-Agent: KMail/4.14.1 (Linux/3.19.0+; KDE/4.14.2; x86_64; ; ) In-Reply-To: <20150310120750.GE28806@sirena.org.uk> References: <1429128.MSqYm0qZ9p@phil> <9261130.uPvufuEFrr@phil> <20150310120750.GE28806@sirena.org.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Dienstag, 10. März 2015, 12:07:50 schrieb Mark Brown: > On Tue, Mar 10, 2015 at 12:22:06AM +0100, Heiko Stuebner wrote: > > When {devm_}regulator_get returns -EPROBE_DEFER the driver in question > > will > > try probing again at a later time. So don't spam the log with failure > > messages as this is an expected result of probe ordering. > > > > - dev_err(dev, "Failed to get supply '%s': %d\n", > > - consumers[i].supply, ret); > > + if (ret != -EPROBE_DEFER) > > + dev_err(dev, "Failed to get supply '%s': %d\n", > > + consumers[i].supply, ret); > > No, this is not good - you get a nice quiet boot even if the regulator > does not appear which means people have no idea why the driver isn't > loading. That's not a good user experience, silent error handling is > the main problem I see people running into trying to get their systems > up and running these days. > > Really deferred probe is just fundamentally noisy since it's > intentionally tolerating errors like this and of course a lot of the > noise comes from the deferral messages the core prints. ok, I'll drop this one then