Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2409923ybf; Mon, 2 Mar 2020 08:05:26 -0800 (PST) X-Google-Smtp-Source: APXvYqyFHDjxQ4vMc0fyV0+5EiTzALk1cXDkvgfWwxig9y2xn6TTgN2rVejdmvHx3YPgDBvHqAVc X-Received: by 2002:a9d:395:: with SMTP id f21mr13828352otf.67.1583165125843; Mon, 02 Mar 2020 08:05:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583165125; cv=none; d=google.com; s=arc-20160816; b=o/6GJoMbP93z2o2HAiK3KERGtGGVPjqiypbY7l9BWZjmdNXJ310b5B/a0Se1QN8Xzz 6Ycv5OkVv2zPZrzclaneckcehS40riHSyExy80fmT7nIxRvGF7eYmNXrbMvxDKasA/As +PETJUczutfiVQoC1KCWNNhP+MwbF+Lf5LoA2bTkzbcHpKaHTTMZmIVc/gwdVUz1ci4y yoU4y0gV2sBt5c8dUTbvz/60/tfDWp2E8DhDi7RDl0maHg8ghw/yGXxG13KnpPjwidhX fx7wejYO4cPKvsmxbx9xtjQIJquCojtINeuZHpIzm+u8v53ohmPAIjRjWWTlapwnXDLq 45Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to:subject:cc:to:from :date; bh=IR9igqdV7Mptu8U5l8pdFfnvFoV1CLYW47JTW8DotaM=; b=HH/UUlP4ElqWXyHRepxdeAv3fIRmhUu6V7jlEfWhAzPhCcsAizizF7SRJ534wdujW7 lslmKAaIHTHCxiKDvJWS3f9C0X756UPslQpwz9lxo6fts93sRPuU5i5VjwkqXwqgnCwt LtVh1vNgN/xtElYu0j+hpEYBtZs5karEwElfk1Dk4OwhJIRxGg0bQTqTTGodS82057vH L0kLtKXuYJwJtlAUv1MQw7AfPUWcC3JIEarDueCKKE86JcjfilKOHPsEtJ0fTNbaq0vQ 3eRCXgxt0saa9786QXzRssMkXcZ0DtG7FXS663pzeiGja8Kl4pAo45pD2a6fgv2w/rVU 1I1w== 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 z21si6533339oti.199.2020.03.02.08.05.10; Mon, 02 Mar 2020 08:05:25 -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 S1727363AbgCBQFC (ORCPT + 99 others); Mon, 2 Mar 2020 11:05:02 -0500 Received: from foss.arm.com ([217.140.110.172]:34626 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727242AbgCBQFC (ORCPT ); Mon, 2 Mar 2020 11:05:02 -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 B095C2F; Mon, 2 Mar 2020 08:05:01 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 303643F534; Mon, 2 Mar 2020 08:05:01 -0800 (PST) Date: Mon, 02 Mar 2020 16:04:59 +0000 From: Mark Brown To: Jon Hunter Cc: Liam Girdwood , linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, linux-tegra@vger.kernel.org, Mark Brown , Thierry Reding Subject: Applied "regulator: pwm: Don't warn on probe deferral" to the regulator tree In-Reply-To: <20200302141428.14119-1-jonathanh@nvidia.com> Message-Id: X-Patchwork-Hint: ignore Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch regulator: pwm: Don't warn on probe deferral has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 0cd71b9a43ad80f4d9a8bfde6ec6db8daf447029 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Mon, 2 Mar 2020 14:14:28 +0000 Subject: [PATCH] regulator: pwm: Don't warn on probe deferral Deferred probe is an expected return value for devm_pwm_get(). Given that the driver deals with it properly, rather than warn on probe deferral, only output a message on probe deferral if debug level prints are enabled. Signed-off-by: Jon Hunter Link: https://lore.kernel.org/r/20200302141428.14119-1-jonathanh@nvidia.com Signed-off-by: Mark Brown --- drivers/regulator/pwm-regulator.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/pwm-regulator.c b/drivers/regulator/pwm-regulator.c index e74e11101fc1..638329bd0745 100644 --- a/drivers/regulator/pwm-regulator.c +++ b/drivers/regulator/pwm-regulator.c @@ -354,7 +354,11 @@ static int pwm_regulator_probe(struct platform_device *pdev) drvdata->pwm = devm_pwm_get(&pdev->dev, NULL); if (IS_ERR(drvdata->pwm)) { ret = PTR_ERR(drvdata->pwm); - dev_err(&pdev->dev, "Failed to get PWM: %d\n", ret); + if (ret == -EPROBE_DEFER) + dev_dbg(&pdev->dev, + "Failed to get PWM, deferring probe\n"); + else + dev_err(&pdev->dev, "Failed to get PWM: %d\n", ret); return ret; } -- 2.20.1