Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2897036ybc; Mon, 25 Nov 2019 06:02:16 -0800 (PST) X-Google-Smtp-Source: APXvYqxXK2Rler6brHMOpiKrhM3TytH0lZ3fkcYgpxLA73MxWTB1vnjt/8u96TwjOGoAxI8aojJ6 X-Received: by 2002:a17:906:5fd0:: with SMTP id k16mr36857493ejv.243.1574690536434; Mon, 25 Nov 2019 06:02:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574690536; cv=none; d=google.com; s=arc-20160816; b=PyNue/uA2pjQ9WQk+jCwmLIqDDHQpy9qp3WGPp64OjcmQxRwTYrL8zE4Tjg0BfUYQA UzbLJRaOBoU+Gz/EqJbbIFL01d2amdmm8qlISZw39Yc3CoqAItRc7g9syt6EyVwGUL6O ruFOpB2Rwu/I5N54ggp6EJO07MeItKKBctPB3Cn7pJdRwdKsTwEGrBLncsm5/dRJUaDN oYWPXtOxL5C7D8hgyE4qfXFh5ANpGJoT/luiyAsvJhcnD2w7E9kb8TJuDsL1t8ArQ8LG wWlUTMbmZFcgsD4KO9IiKnrUkB1EGwC0THImk2Zsn5Ce6Me9C3ItCm7kPLJA2F6ukBaw iZ0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wJXgU1Ng7cyLAs4JFhWANoeuEktL+F9+1MeqR48Alzc=; b=MkxSCkRoNgrX4pKMQBUfl3GCYTwqyLlc5CPHkcBoM30dU5FxAq12AIP/OB/RosmRd7 eDHZ/7ZP4XLraYYG6mcDjJ88Vaz/ICorqY9xjTsc8fzbSgXF6aDnA0xO8PI2UYHG5Q05 BQDgJhamKecJqoPjZBXODZ97kWqrzHu7Cz7stybriB1DXZ0bocVStGl/CM33+BaHDceT wnU1pVddnJObK8zyvXPFes4EngsdKU9epy0ZbuZCoSGO60QY56vW/Yokpn0TtfxY6m54 JKfBWX4U1f5WT6WCBDP+Durpr2DZfLoyOBz2kd7MARK3Uoob5QGcfiygwdD0ZeyI7v59 4zsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="jY4XKY/9"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s57si5308165edm.421.2019.11.25.06.01.35; Mon, 25 Nov 2019 06:02:16 -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; dkim=pass header.i=@linaro.org header.s=google header.b="jY4XKY/9"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727954AbfKYN7x (ORCPT + 99 others); Mon, 25 Nov 2019 08:59:53 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:33878 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727896AbfKYN7x (ORCPT ); Mon, 25 Nov 2019 08:59:53 -0500 Received: by mail-lf1-f67.google.com with SMTP id l28so11134429lfj.1 for ; Mon, 25 Nov 2019 05:59:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wJXgU1Ng7cyLAs4JFhWANoeuEktL+F9+1MeqR48Alzc=; b=jY4XKY/91dQiNFPe3L28KbxvxKBrbFtLaZUgSfddAtxodbkHZ/5fHWRIsna8DA7F5H miUjEE5uOvc5q98pK6uq7K1CFVeJNxQVGYLF/8tUhfoBQFknfL42uEI3ux8tT8A5SJkE suN+xr+gBO5ofHQDROHoK47oIsE6kTvX5JFZ6+toL498YiRRb8hI9KaVo0gj3KUYIu/c VW/lgGSdP6dhTZ6H4lT2ERz58FjnvUYva+MBYjt+j78jMD0l71zjGKD4vK0IZm/7vdJc hBlSiFQvqSMgCDISmW/RItDQrV9pPchpHpmY89mzDj/9+HBCY6m5NFfi09aA3iJlDMRz 9I9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wJXgU1Ng7cyLAs4JFhWANoeuEktL+F9+1MeqR48Alzc=; b=nu9+nztBjWM1QNryQ+K+fzMnTEU0ZYXks67xLJGojEJsPFWUxhRgKwIdwquc+J4wo9 JB48TPZIw8V81SS68bYXxfdcMrHsy/AqgBzocd9t4BwYhhCpTzB6pUz/cIG/ysWnbZ79 Zxq3k3Umc/orgUU1xtiuDptGBuPdNQP2kGp7C4QP0Yp5aYXU1Eywn/6nkYv0TMU66Aq1 DnPnY7Z6FSU7hKFZ7acQXerNbfaJHGCVjGxZw+cxmj3oQafPQHOV+df5xZMZHdUghF0W E7pNpe216qts9MeYNvMJAUBbxMK4EZ0vk5hdULsoQIISBn5FQRa5mmaBkH9uASTXV6tP J5iA== X-Gm-Message-State: APjAAAUBN87zYuaph49kEI0GJuWo1npfQBz4LPrvbsan6mzCf8hb8EBD 4y08guccaLk4Erpov9w/ITc3CA== X-Received: by 2002:ac2:5a08:: with SMTP id q8mr20791341lfn.106.1574690390726; Mon, 25 Nov 2019 05:59:50 -0800 (PST) Received: from centauri.lan (ua-84-217-220-205.bbcust.telenor.se. [84.217.220.205]) by smtp.gmail.com with ESMTPSA id g11sm3688529lfb.94.2019.11.25.05.59.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Nov 2019 05:59:50 -0800 (PST) From: Niklas Cassel To: Andy Gross , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, amit.kucheria@linaro.org, sboyd@kernel.org, Jorge Ramirez-Ortiz , Niklas Cassel , Michael Turquette , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 6/7] clk: qcom: apcs-msm8916: silently error out on EPROBE_DEFER Date: Mon, 25 Nov 2019 14:59:08 +0100 Message-Id: <20191125135910.679310-7-niklas.cassel@linaro.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191125135910.679310-1-niklas.cassel@linaro.org> References: <20191125135910.679310-1-niklas.cassel@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jorge Ramirez-Ortiz If devm_clk_get() fails due to probe deferral, we shouldn't print an error message. Just be silent in this case. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz --- Changes since v2: -New patch. (This change was previously part of another patch in this series.) drivers/clk/qcom/apcs-msm8916.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/qcom/apcs-msm8916.c b/drivers/clk/qcom/apcs-msm8916.c index a6c89a310b18..46061b3d230e 100644 --- a/drivers/clk/qcom/apcs-msm8916.c +++ b/drivers/clk/qcom/apcs-msm8916.c @@ -79,7 +79,8 @@ static int qcom_apcs_msm8916_clk_probe(struct platform_device *pdev) a53cc->pclk = devm_clk_get(parent, NULL); if (IS_ERR(a53cc->pclk)) { ret = PTR_ERR(a53cc->pclk); - dev_err(dev, "failed to get clk: %d\n", ret); + if (ret != -EPROBE_DEFER) + dev_err(dev, "failed to get clk: %d\n", ret); return ret; } -- 2.23.0