From patchwork Wed Feb 10 22:33:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 380253 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1567220jah; Wed, 10 Feb 2021 14:35:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgEhMPgx1fMrPxdIpvFNOsKmNz9+EpHmSRAzoD7wqk4EtVBfRx8C3nujfV6jG7C/KbaT1s X-Received: by 2002:a17:906:2353:: with SMTP id m19mr5314581eja.13.1612996506056; Wed, 10 Feb 2021 14:35:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612996506; cv=none; d=google.com; s=arc-20160816; b=l83kHwI96hx9SE8CNBCxO0l5SvxK1Pwqrj45Jwwp8V1x8mJ0x/4CnzumrwR7OLAWG+ 7g8UQiafH1TzCF5Jn0cIIysJCQM6RzCInWcXCq1jDVaRsLMwtuIZJqbQRXdmYxx8KP3W niW9EAmMg2AE0PPVhV0j2S+WS7iP+RdkGBdIKRD5oa3PYV/YumuseqKv2SSuRUEysmah BPDqFZCCr3bLqinj5gwl1PD+n/Spe23/55zcPWeebi0fKLgAFn9Ot4OMzGGtCE7K8AMg jl91iCCwdg+hhACKmtk/2LMX9qE9ddx6V2RLSg1ImCjpvakrk1onOlEiQvS/LeMrSdgU Kqug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kS/gU6f8FHhPHE8VvojwVRld2jg6RFS0NvtZfg95Sy4=; b=oTpLKZmqqHNlnckleczreAAWEs4cHzQ0t5RKxp1wNtO9mUPUANp05urGPKsj6gXr1K +WnnQfDWxWXnrfxAoW6a1INVG1HdsxRC3IZHhxVJ960dVUxUmDcfi4ARRVjy+5nprQyO NgCMeDx5sIWWl1OrsLRS1Fk3Ca7mysCMs1gZEbvYyMMGYtNkzBSdIKBre1b4Lu72KRT+ vw+QNH8hK+ibDw5RQF6pHtvyMhxM7E+u/dVdYVrGG3kDQc4ed4vSXDgm0NIg2Lompk1n YPv9K1u+qcUWpdbVmE9CIXOirF6gaOGeHmZx3kBcA3JvYTXt4gdfAOT2dL9y/0hctAs1 V6FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ybH66RtL; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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. [23.128.96.18]) by mx.google.com with ESMTP id m12si2327848eja.248.2021.02.10.14.35.05; Wed, 10 Feb 2021 14:35:06 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ybH66RtL; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 S233508AbhBJWee (ORCPT + 9 others); Wed, 10 Feb 2021 17:34:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233255AbhBJWe2 (ORCPT ); Wed, 10 Feb 2021 17:34:28 -0500 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC243C06178B for ; Wed, 10 Feb 2021 14:33:25 -0800 (PST) Received: by mail-io1-xd34.google.com with SMTP id z21so2330159iob.7 for ; Wed, 10 Feb 2021 14:33:25 -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=kS/gU6f8FHhPHE8VvojwVRld2jg6RFS0NvtZfg95Sy4=; b=ybH66RtLq3+ZJzCR6tIlv+7xXv+gGzUgrwWkYfyuFs1cyrV3T4poUJu9KPIFpJG1f5 4LGLyqScDW+7N7ZwHMALv+1TWI15tkq0mOvOkzP4ZJQrTk83bJLflfxfRrzk6gGTT7mq 7n+vV+Jf1pAL/oHxB+IJzh7/U5pBXBhlxwNxULajY8/A0Op77VhycJK5Qt+DDXIOCLsG QQ/k51Cvz52V4Mhuadkc3+U5rnu9UVTgptCvt5y6zmt4m7oG7auhEQAcb5OX688Q6nlM sEsJnCYC+rwF+wELJu19V2rIh/ia8xZBtJvKqri9lcfrZvxcPnVqHoLDtT80Pjt0Zas8 ZswA== 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=kS/gU6f8FHhPHE8VvojwVRld2jg6RFS0NvtZfg95Sy4=; b=NTCG8JYfLUxHwpiRZsrwpYJlbGKLxbqchE1EFPVwKCSC1TsJsuba0jZbtmIWDRFitd LL5aRLxCqrYKGtp+OVXpxO2TqcMllo9thnxE4cIH6taJkGl4jyJPkE8FSw1WvQuQhfYP mQh7BQrGu987xnC0M3OoSOjvMZofDjmKoL/axzyWUCGTvqePWmvSn5AbOGgPD5BlUMor LnaML8RPbJcjlUo4ih8XSPpZ3V0jVI0pZMlN/V1srhp9rZrOcpPIgmEbtm77lEfuXj0/ TEuZNzB3NhOJFcTWeiij1Zn7kSfi+Sy+XU2m+zMmN4qLEaH2xxFcYgU/mNvQZIBc5H6t hccg== X-Gm-Message-State: AOAM5324sKbqQ3Tb3qP5rJgk79ayVQ8xMlcbz+F9h+npOPb5y0vQzYxT fYzUuVcFWVzzYe4LS1C+dNJH4Q== X-Received: by 2002:a5d:980c:: with SMTP id a12mr2832889iol.196.1612996405495; Wed, 10 Feb 2021 14:33:25 -0800 (PST) Received: from beast.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id e23sm1484525ioc.34.2021.02.10.14.33.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 14:33:25 -0800 (PST) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org Cc: elder@kernel.org, evgreen@chromium.org, bjorn.andersson@linaro.org, cpratapa@codeaurora.org, subashab@codeaurora.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 2/5] net: ipa: don't report EPROBE_DEFER error Date: Wed, 10 Feb 2021 16:33:17 -0600 Message-Id: <20210210223320.11269-3-elder@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210210223320.11269-1-elder@linaro.org> References: <20210210223320.11269-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org When initializing the IPA core clock and interconnects, it's possible we'll get an EPROBE_DEFER error. This isn't really an error, it's just means we need to be re-probed later. Check the return code when initializing these, and if it's EPROBE_DEFER, skip printing the error message. Signed-off-by: Alex Elder --- drivers/net/ipa/ipa_clock.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) -- 2.20.1 diff --git a/drivers/net/ipa/ipa_clock.c b/drivers/net/ipa/ipa_clock.c index 354675a643db5..9c845f9bb318e 100644 --- a/drivers/net/ipa/ipa_clock.c +++ b/drivers/net/ipa/ipa_clock.c @@ -68,8 +68,9 @@ static int ipa_interconnect_init_one(struct device *dev, if (IS_ERR(path)) { int ret = PTR_ERR(path); - dev_err(dev, "error %d getting %s interconnect\n", ret, - data->name); + if (ret != -EPROBE_DEFER) + dev_err(dev, "error %d getting %s interconnect\n", ret, + data->name); return ret; } @@ -281,7 +282,10 @@ ipa_clock_init(struct device *dev, const struct ipa_clock_data *data) clk = clk_get(dev, "core"); if (IS_ERR(clk)) { - dev_err(dev, "error %ld getting core clock\n", PTR_ERR(clk)); + ret = PTR_ERR(clk); + if (ret != -EPROBE_DEFER) + dev_err(dev, "error %d getting core clock\n", ret); + return ERR_CAST(clk); }