From patchwork Tue Oct 20 20:37:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 318827 Delivered-To: patch@linaro.org Received: by 2002:a92:d1d1:0:0:0:0:0 with SMTP id u17csp1602868ilg; Tue, 20 Oct 2020 13:37:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0WVNwr7mzzq16TNhkVMHJi8pcMsmR737Kh5DDFYiCq/cN/bhcBlcZpOVT76KFUOMXIuQS X-Received: by 2002:a50:9b5b:: with SMTP id a27mr4582189edj.374.1603226244806; Tue, 20 Oct 2020 13:37:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603226244; cv=none; d=google.com; s=arc-20160816; b=Bebn6S8Ce/Jg9Luy90WqMMe2z2sqKjKEyfEc0sqYUOIlWYPbygE5561Fk6RtQ/kfGT rQRuFK4UNcEe+ZCiECMZp/Si6y3uDohdsVTAnKsQ2n/1M65T3/QcEY5Y3n9HqcAuVtYb kESVQTEU5RSNbUz4rLFh8BuPeJHCWvPxlUbRrGxy8S590JR0ySgGI8HqPhKBYafwoySw ouSR9pD2Wg4lWCRqZQIwpnzrsaU7eHl5nsiAvJVVhlyQ4YIiJKZf2CY4mH2cHw3ELr5W lYylEArasnIIKg+Ws0/xzjk3SphVOIoKlCqnunWFV9bOFM776EyWRk4MK2v0k7SbV1po zk9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=/vsQwFdG2uUpo6T9ObOOG92v5uMMRBJ+yiV89Z+9Ccg=; b=hyhYZ4pK528A6L0SNo5vZfcPe4/AhLUB34umBVZKhCk6dzM57MJs7TgebR5xMYQzWJ EiNjqxUKbAKgKjqghu8iFQoiiWfViJqmBi0tQiv2kb2uR0hskdXYkcEdSq06tGLiT1PJ ufOA8Rpt2CptEOp6d6n8+TT7jfSLy/zZEIKhb5aTXaf86Apb0YYIaFcDHu0cSZmiGn15 zH43zdVMeTBYsYPvAXqd0EJ3yGe7UcWkmYFddMJVRFXFcFz3Rl88L2Y9TNQ1x3FAkU9h fH1ClM7KvIyISaqrt1qjuX6xHl/xewclkjA0kNwp+6skIaaIwI8oErGRz/yRk7oi8M+j eS4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h2si1937753edn.240.2020.10.20.13.37.24; Tue, 20 Oct 2020 13:37:24 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409477AbgJTUhT (ORCPT + 6 others); Tue, 20 Oct 2020 16:37:19 -0400 Received: from foss.arm.com ([217.140.110.172]:55930 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2409539AbgJTUhT (ORCPT ); Tue, 20 Oct 2020 16:37:19 -0400 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 BB7CCD6E; Tue, 20 Oct 2020 13:37:18 -0700 (PDT) Received: from usa.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D66F93F719; Tue, 20 Oct 2020 13:37:17 -0700 (PDT) From: Sudeep Holla To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Sudeep Holla , linux-arm-kernel@lists.infradead.org, Rob Herring , Viresh Kumar Subject: [PATCH 2/2] firmware: arm_scmi: Move away from clock devicetree bindings Date: Tue, 20 Oct 2020 21:37:10 +0100 Message-Id: <20201020203710.10100-2-sudeep.holla@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201020203710.10100-1-sudeep.holla@arm.com> References: <20201020203710.10100-1-sudeep.holla@arm.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Commit dd461cd9183f ("opp: Allow dev_pm_opp_get_opp_table() to return -EPROBE_DEFER") handles -EPROBE_DEFER for the clock/interconnects within _allocate_opp_table() which is called from dev_pm_opp_add and it now propagates the error back to the caller. This breaks SCMI performance domains as we will never succeed to add any OPPs. A quick fix would be to register dummy clocks which is completely ugly and bigger fix which may break with some other change in future. It is better to add separate binding for the same and use it. A separate SCMI performance domain binding is introduced and let us use it here. Signed-off-by: Sudeep Holla --- drivers/firmware/arm_scmi/perf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.17.1 diff --git a/drivers/firmware/arm_scmi/perf.c b/drivers/firmware/arm_scmi/perf.c index 3e1e87012c95..e2a47b3eead1 100644 --- a/drivers/firmware/arm_scmi/perf.c +++ b/drivers/firmware/arm_scmi/perf.c @@ -629,13 +629,13 @@ static void scmi_perf_domain_init_fc(const struct scmi_handle *handle, /* Device specific ops */ static int scmi_dev_domain_id(struct device *dev) { - struct of_phandle_args clkspec; + struct of_phandle_args spec; - if (of_parse_phandle_with_args(dev->of_node, "clocks", "#clock-cells", - 0, &clkspec)) + if (of_parse_phandle_with_args(dev->of_node, "arm,scmi-perf-domain", + "#perf-domain-cells", 0, &spec)) return -EINVAL; - return clkspec.args[0]; + return spec.args[0]; } static int scmi_dvfs_device_opps_add(const struct scmi_handle *handle,