From patchwork Mon Nov 26 17:20:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jordan Crouse X-Patchwork-Id: 10698835 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 193C11869 for ; Mon, 26 Nov 2018 17:20:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0180B2A22B for ; Mon, 26 Nov 2018 17:20:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F265E2A220; Mon, 26 Nov 2018 17:20:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B3382A209 for ; Mon, 26 Nov 2018 17:20:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726639AbeK0EPW (ORCPT ); Mon, 26 Nov 2018 23:15:22 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:57208 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726253AbeK0EPV (ORCPT ); Mon, 26 Nov 2018 23:15:21 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 430B660B0D; Mon, 26 Nov 2018 17:20:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1543252836; bh=kHpTPCKi8DFMImxboC+vK+QPA+HRz4I7in+ceZLvddU=; h=From:To:Cc:Subject:Date:From; b=kknfH4+Qd52YbaC5yuhJ1s9piYLcHAviHcHG2z0bI9IX/xoZqeHGldP4B/zG/Za00 td9iJYfSJ9/L6sOq81oeHYwl3UqLvrVlRlOfFXQv0niY6XtKozy3U07EfiqTnGmzg5 UwurrlFljK3tGgIY1U0NSkr9fug4iZ1VjTE/zAtM= Received: from jcrouse-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jcrouse@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id ABF7960392; Mon, 26 Nov 2018 17:20:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1543252835; bh=kHpTPCKi8DFMImxboC+vK+QPA+HRz4I7in+ceZLvddU=; h=From:To:Cc:Subject:Date:From; b=GM6adDwoG0w0+nbiecN8EnVhfbeghZBY7J8cR7S/cbGFa057Q+KY6a+o7z++qB+rU opzf2I07vi0xLCd/om2/NvcI/JG/SS/dhFeX4rpt0x3J3jAwnnkwwRZKpoDdAeDMzf UK6Cxh7dsyIgi/sl0qSaZDqtMSwz3k0RPxYxuIL0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org ABF7960392 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jcrouse@codeaurora.org From: Jordan Crouse To: sboyd@kernel.org, mturquette@baylibre.com Cc: andy.gross@linaro.org, david.brown@linaro.org, rnayak@codeaurora.org, okukatla@codeaurora.org, tdas@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH v2 0/2] clk: qcom: Support special behavior for SDM845 gpucc Date: Mon, 26 Nov 2018 10:20:30 -0700 Message-Id: <20181126172032.11567-1-jcrouse@codeaurora.org> X-Mailer: git-send-email 2.18.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP (Resend with a proper email subject) The GPU GX domain on SDM845 is nominally managed by the GMU microcontroller but there are certain circumstances when the CPU needs to be sure that the GX headswitch is off. This series modifies the GPU GX domain on SDM845 to use a dummy enable function (leaving the GMU hardware to handle the power on) and the default disable function to allow the CPU to ensure that the power is off. With these changes we can attach the domain to the GMU device and control it from the start up and shut down functions as implemented by [2]. This patchset is based on the core GPU clock support from [1]. [1] https://patchwork.kernel.org/patch/10696671/ [2] https://patchwork.freedesktop.org/patch/262765/ v2: Rebase on the latest from Taniya and remove the GPU functions to make it easier to apply to the clock tree. Jordan Crouse (2): clk: qcom: gdsc: Don't override existing gdsc pd functions clk: qcom: Add a dummy enable function for GX gdsc drivers/clk/qcom/gdsc.c | 6 ++++-- drivers/clk/qcom/gpucc-sdm845.c | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-)