Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp364643imm; Wed, 13 Jun 2018 01:28:55 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJLLkTR1y+2AC/0o2lRHXnV36oSYbkjmln5hyEJR6S9WbPLLG4GmDPk68OMnzybyvNKYxci X-Received: by 2002:a17:902:b81:: with SMTP id 1-v6mr4211008plr.164.1528878535633; Wed, 13 Jun 2018 01:28:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528878535; cv=none; d=google.com; s=arc-20160816; b=abaTIuNY2oGAL+cFm1XsqIk5qCPEzN+ejYjnHKHh33F8SEUTRje6PWjKs3gHmO1qvK 7toOT8BO82GUDHz4luqJEKSXfAgdOojyA7uF4kEXWuSh9pAfThk2Iez6q/znmkHt0qpn FAke9waHBrG4ZSrx92jd8BblRWiI7OzhddkZLepo/LJr4LjJ59GslIQGsNSR4KR/44ek Gx2mTw7IwuVf3B/CUlBCw8WPLXEis1lLujuwv4qtSs4RoCn5SM6qaDUiB1BgmFHC/KMy VCqPVmLbiIEaGFej0Jx6id8wN/Xfyfi9WuyBKZy/mzewAlpXDRjCGMxidTRlJW9W3XSU 0IUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=AZg1nCBjfTBg4x6eFB4bqzoNVVuEelduWXRhnNDiiBE=; b=piP4VX4A00qwFvTakzTeHGeVsEWyQXiGAhn3VXJldfebDBejsTWmcndRYP6sm3wgmf fVlUf/0azB5QrItu1g9Hw8O4TdliLl6udOdPx1EtLgnt+JVAyEfHJa2Qq9vkx3hnQ2Q0 9yL6knzBjlrsAssVmDjdEOHfyihU9sxvcKfhZxFsnVpsc5EBzRXyJ8p+YATYQsaHFP5b PiHdFGYcNOmxQuOy2nRPQzsHwf8d0AxCoMKBym3Xca35OQ589yp+B7gTBFZFOVF+YCWn okefuB78+aKRTdxj/4D3RB3za8Lu+tCkgfuYxQirVGQXiBCKKDEkkRjeb7VL4YiErfKd oNfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=aHkwqmx3; 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 g7-v6si2202587plp.236.2018.06.13.01.28.41; Wed, 13 Jun 2018 01:28:55 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=aHkwqmx3; 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 S934893AbeFMI1o (ORCPT + 99 others); Wed, 13 Jun 2018 04:27:44 -0400 Received: from mail-oi0-f42.google.com ([209.85.218.42]:36548 "EHLO mail-oi0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933912AbeFMI1k (ORCPT ); Wed, 13 Jun 2018 04:27:40 -0400 Received: by mail-oi0-f42.google.com with SMTP id 14-v6so1557777oie.3; Wed, 13 Jun 2018 01:27:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=AZg1nCBjfTBg4x6eFB4bqzoNVVuEelduWXRhnNDiiBE=; b=aHkwqmx3DaVBc8wbGFIuXwKkxi+8qpTxj28JkkA1bzt1gJTXk/JgdxH06lFl4N6bKJ M42khvX26b4jKhypi8sit+PXmpkkgYNK6tR7x3pQ42jwIepw0U+F63CM46ArfgL2t6vy E5baPsrMkaQkMvTK7IPQGfNv/whfooxlnNwype3q5eILehr4LvMZt4ABk6bHqm97UL5N yTrIw6yce+mugLpEaXlcf/VxURaT/X7A94P9fc8HU6As+l8gWDXFvarJLQEXwCgZiYO7 WSymOjILKpKz4MSZYJYoqXCKa5gUnT2zTKgfg0AnfUTI89eqAk9FmDlfc2i8gjZbYX+t iqNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=AZg1nCBjfTBg4x6eFB4bqzoNVVuEelduWXRhnNDiiBE=; b=e7DTkp5XO6gbG+O68ZMHgz6GBRNROvshM3OTRWv45nJIGIrvcIzgYRROf+t3pn4tS0 bw+EbOupNqvnWYO5y/Rz1jXM4XOz63m7puivwBCMicsVyZw+Zsnh8Q02QFrlf3URPgRS gJaWVFx27T0JsNlNahOIt+LhVrS24Z9WJAJ5OgOnBCNBMFIL+9TBi5xMylthPFVSS8ia bL8i9K/tqlgiFVad/wMvx+hZPHRyIyphhCZgIGZfdyteHS1DV6G0Gw5hvbbmgX/DLZpS ab9Vy5RzyLPS+m0J8n5CWvnLx7pYPQrQcNm09wkCeP/L2TyuUwxQPutGaGwMxK8/B8Q5 jWzQ== X-Gm-Message-State: APt69E1fCeFuEJdZ2yOLs5DBdIXczEUxUF2QO4v+d64/wvNH7vHe+8jo S8fsoAeUjX8OMmFvh/aFCf/HWjJtlcLlEiyHtC4= X-Received: by 2002:aca:ef44:: with SMTP id n65-v6mr2762783oih.120.1528878459582; Wed, 13 Jun 2018 01:27:39 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1429:0:0:0:0:0 with HTTP; Wed, 13 Jun 2018 01:27:39 -0700 (PDT) In-Reply-To: References: From: "Rafael J. Wysocki" Date: Wed, 13 Jun 2018 10:27:39 +0200 X-Google-Sender-Auth: EIAXGr5IZxDPHQnOpChym-xYFSQ Message-ID: Subject: Re: ACPI support in common clock framework To: Andy Shevchenko , Srinath Mannam Cc: "Rafael J. Wysocki" , ACPI Devel Maling List , Michael Turquette , Stephen Boyd , linux-clk , Linux Kernel Mailing List , Mika Westerberg Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 13, 2018 at 10:13 AM, Andy Shevchenko wrote: > +Cc: Rafael, ACPI ML > > On Wed, Jun 13, 2018 at 7:14 AM, Srinath Mannam > wrote: >> Hi Michael, Stephen, >> >> We are adding ACPI support in our Linux based platform. >> At present our clock hierarchy using common clock framework through DTS. >> Now we required ACPI support in common clock framework to upgrade our platform. >> >> For example, clk_get API called in many drivers to get clock device is >> tightly coupled with DT framework. >> >> Please let us know, if anybody in Open Source community have plans to >> add ACPI support for common clock framework. There are no plans for doing that AFAICS. Moreover, it generally would not be consistent with ACPI power management defined by the specification. >> If not please suggest us alternative method to use common clock >> framework in ACPI use case. The problem with using the clock framework on systems with ACPI is that, in general, the clock manipulation is expected to be carried out by ACPI power management and therefore it is "owned" by AML. Currently, there are no defined methods for synchronizing the AML's use of clocks for power management with what the OS may do with them directly. In theory, that can be worked around to some extent by representing clocks as power resources in ASL (even though the provider information would be missing then) and manipulating those power resources directly from the OS. I'm not aware of anyone doing that successfully, however. For simple power management it should be sufficient to let drivers rely on the ACPI PM domain which should happen automatically in the majority of cases anyway. Thanks, Rafael