Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4465449imm; Mon, 25 Jun 2018 16:38:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIIpzXP8gEXHW5yuMvubQJ2w1f1YZ857Ev/QqNe1ItferQp+NHDf5XudVE0uUTbwhJBmToi X-Received: by 2002:a17:902:3281:: with SMTP id z1-v6mr14453934plb.226.1529969895791; Mon, 25 Jun 2018 16:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529969895; cv=none; d=google.com; s=arc-20160816; b=riKzT27uR8oE+jzWMOF9yz7X2zj35jnZOmVLzFEzRmqNkVuqhavRS+qsgXZlzZXYiZ AVms+mE4JBPRstU462nbOCDh76tc21Dd31YRccSD0OXN54ghZV5SXgGpti9Sw5pTFSwZ SQlSbxjSr+PeIYmASrBFdN24sx/Moj/P4O5kxK2MfD7qgpKJQVIYFul9jQdiRulrZyXi aTkNjyF/yq3NVNfw1Fcd3fjHPZvasgIZF2tkyyAtGnoAIkCTvUMSRHKQBM2Fn5b3dZEu ovdVgVktch7HBWSHiyQV+eOEQYjcfzuzAGXjh3QrEBfxRB0N8TJ5J3+7VIEGO+B2qUsX KiTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=jQtQ+57xLLVGIEWE6N8LhLqZjGfb1n2udjT98l8oMbk=; b=aC3Dv6gzTQPbQ7QS8ZbCMmXUt07g8BLiYk3YHuaiw7o0uVok+Jc2KdMrmCdgTztnQM M/bEdxPeiSCbHScWXmjonZ+0k5WxOpYErp3S26SwK4yIikxmKc6hLaCeasli+/rJoL87 s6PF6ho8O93ePKkYbDj789lnASjJddxiI/MLrDebsWXuu88o3x6T9xMsrl2xj/a23JyO WObG1Ss1ZZiDdni6R19RqSycOS0DvUJw79s9RuQrPgCpf940pinfeIWuIenfW6lPRPph Umoc4GcuzClxYFPpqJWxi9AW6jNeNmGkiq/ebAGMBxDGFaDHJZq7VmYb1S7moaTARSSx X1UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MM3BwJK1; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r12-v6si199862pfe.9.2018.06.25.16.37.59; Mon, 25 Jun 2018 16:38:15 -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=pass header.i=@kernel.org header.s=default header.b=MM3BwJK1; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755543AbeFYXhT (ORCPT + 99 others); Mon, 25 Jun 2018 19:37:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:37786 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753205AbeFYXhS (ORCPT ); Mon, 25 Jun 2018 19:37:18 -0400 Received: from localhost (unknown [104.132.1.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5E92C25AC3; Mon, 25 Jun 2018 23:37:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1529969837; bh=jQtQ+57xLLVGIEWE6N8LhLqZjGfb1n2udjT98l8oMbk=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=MM3BwJK1cWWyxGQSAYk/qNnDq9d5sCCKe0R9ijWXuTZhEyRISu7cmYCCnLt8B1b8m 27/Q/8S8s249LKYZeAKe7SYR9u0l7g7W4z/NkizsbwWrjqf+dIZxt9Aq9jIo42gBxC S5IBD6bbrROUXKg1SFLLaxoAR5Vyp094f2HGh33Y= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Srinath Mannam , Sudeep Holla From: Stephen Boyd In-Reply-To: <914341e7-ca94-054d-6127-522b745006b4@arm.com> Cc: "Rafael J. Wysocki" , Sudeep Holla , Andy Shevchenko , "Rafael J. Wysocki" , ACPI Devel Maling List , Michael Turquette , linux-clk , Linux Kernel Mailing List , Mika Westerberg References: <152908459103.16708.4012421602830600322@swboyd.mtv.corp.google.com> <152994466823.143105.11787470853817181844@swboyd.mtv.corp.google.com> <914341e7-ca94-054d-6127-522b745006b4@arm.com> Message-ID: <152996983664.143105.1441423217241075965@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: ACPI support in common clock framework Date: Mon, 25 Jun 2018 16:37:16 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Sudeep Holla (2018-06-25 10:15:45) > = > = > On 25/06/18 17:37, Stephen Boyd wrote: > > Quoting Rafael J. Wysocki (2018-06-16 08:50:18) > >> On Fri, Jun 15, 2018 at 7:43 PM, Stephen Boyd wrote: > >>> > >>> Is this for clk_enable/disable? What about clk_set_rate() or > >>> clk_set_phase()? Is ACPI's AML taking care of that? > >> > >> That's for clk_enable/disable AFAICS. > >> > >> AML doesn't manage device performance states at all. > > = > > Alright. We may need to add a better way for device drivers to get > > handles to clk pointers on ACPI firmware so they can change frequencies > > or phase, etc. = > = > Is there any specific usecase/device needing this in the kernel ? SPI > slaves ? Mark Brown has been pushing x86 folks to use clk framework for audio drivers in ASoC. I haven't seen other uses besides that really.