Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4204985pxb; Thu, 14 Oct 2021 00:06:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqktJCd+YThu2BlFEX0uZqdA9xg9wmD+xI33eLs4x/9vPfhRWFYLDzl3YfIvmyrCrMLFYx X-Received: by 2002:a17:90a:3b4d:: with SMTP id t13mr19004754pjf.115.1634195212526; Thu, 14 Oct 2021 00:06:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634195212; cv=none; d=google.com; s=arc-20160816; b=pV2BXblZ3yGbn5SijLfBTLFEu1sSoHoIUSf451EBfnSOxtBnNFw4i7wFPBsuVAvOvn D5Wxok2gE1slr167n68A9bTZ17Pj3Df13c0k5E13qerKrBV7uGDLMZayffPWIucQ+iJi s25mWJtGq0DbhHXR/zNVk5TY4/2aBMyPx+3J4BRwtBOjXxpHXhkFowDKxrVgT1RSFuWh TVBRV0preEcxsn6QFTJX9VaXZttT363g9YUzSrucJvVHSjxP5lwnZe7zrUqcmnwY4d25 5xXb/SHulkROaiPbHvsuHNnUH0CUOZ8oqq3/mpPj21CxoXDt9obx3KaK1VVji3ia9roj slNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=X4DM7v1oH5rReBbrUSzrMgKZxN4Ab0rev6paWFCq6r8=; b=jNVQcfj6VTilK5mAC5+THKUIdnAwNCSZqXxbg+gM3qQ/awExctsHCuMBa2MRUHbI03 yJJDzXXF+0x+uYK1rdKX5VhVxGIFzG/IcaqcqEs2xepJWJaXc+CnhS+f1NqJTbPVqi// cfW3VjGTG3zupa1cck4Sei+xMyX3hXdViYwi7uO7WqFQONRNo2/L8+E9Ei59oFeSCnUa olwgKyOsmb1nhMDtzFwIgxExuJWcZ2ZsKoztE2Oe3FzKbnr5GMk5BosckTNUZtEq1ME7 iWCWoHa+YYjyiafb0g8GMInOtV271Iz1geq49QV8J+PFAx4sZf0Hc/tXbsbwBf3gEiAy I6AQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x2si2620348pfa.348.2021.10.14.00.06.38; Thu, 14 Oct 2021 00:06:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230072AbhJNHFu (ORCPT + 99 others); Thu, 14 Oct 2021 03:05:50 -0400 Received: from marcansoft.com ([212.63.210.85]:45702 "EHLO mail.marcansoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230035AbhJNHFt (ORCPT ); Thu, 14 Oct 2021 03:05:49 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: marcan@marcan.st) by mail.marcansoft.com (Postfix) with ESMTPSA id 3043B3FA5E; Thu, 14 Oct 2021 07:03:37 +0000 (UTC) Subject: Re: [RFC PATCH 4/9] opp: core: Don't warn if required OPP device does not exist To: Viresh Kumar , Ulf Hansson Cc: Sibi Sankar , Saravana Kannan , linux-arm-kernel@lists.infradead.org, Alyssa Rosenzweig , Sven Peter , Marc Zyngier , Mark Kettenis , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Viresh Kumar , Nishanth Menon , Catalin Marinas , "Rafael J. Wysocki" , Kevin Hilman , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20211011165707.138157-1-marcan@marcan.st> <20211011165707.138157-5-marcan@marcan.st> <20211012032144.2ltlpat7orrsyr6k@vireshk-i7> <20211012055143.xmkbvhbnolspgjin@vireshk-i7> <20211012092603.lkmhhjoo5v67wh44@vireshk-i7> <049FC437-EC38-4FE5-891E-5E25960892CF@marcan.st> <20211012093252.hb6rlcpxv5bmk7n3@vireshk-i7> <0db8e994-ac2c-8fad-55d0-1b5a9e2e21f2@marcan.st> <20211014065636.lkv77aqbugp3qhif@vireshk-i7> From: Hector Martin Message-ID: <039b77f3-d10e-bd7a-a594-b951a98bdd45@marcan.st> Date: Thu, 14 Oct 2021 16:03:36 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211014065636.lkv77aqbugp3qhif@vireshk-i7> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: es-ES Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/10/2021 15.56, Viresh Kumar wrote: >> + /* >> + * Attach the CPU device to its genpd domain (if any), to allow OPP >> + * dependencies to be satisfied. >> + */ >> + ret = genpd_dev_pm_attach(cpu_dev); >> + if (ret <= 0) { >> + dev_err(cpu_dev, "Failed to attach CPU device to genpd\n"); >> + goto out; >> + } >> + > > Other platform do this from some other place I think. > > Ulf, where should this code be moved ? cpu-clk driver ? > I see one driver that does this is drivers/clk/qcom/apcs-sdx55.c (via dev_pm_domain_attach). Though it only does it for CPU#0; we need to do it for all CPUs. -- Hector Martin (marcan@marcan.st) Public Key: https://mrcn.st/pub