From patchwork Mon Dec 3 18:33:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 152719 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp7145842ljp; Mon, 3 Dec 2018 10:35:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/ULNbZrTBFWkPznSN9xsN0tUUvPbe68ZMRyjg6eg2YpHxoNMKJT6jFvVcHz7pNSfuYfiyuh X-Received: by 2002:a62:c505:: with SMTP id j5mr16995648pfg.149.1543862138134; Mon, 03 Dec 2018 10:35:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543862138; cv=none; d=google.com; s=arc-20160816; b=sViYx+uZq+7MFjB1zKOunAD5JAQaiz8IvOHp6tGoLEhiG7B5JeB5LcKGTq1mE59tx/ 8oMI0dkyAgLGSsSfM51wLI3XspUcpahiJpW0kXIVBjLkVNxOVFChw7GjuSTBqq9Fm2kk sOyA+Co6OS8BPgBKSqTzOFwytA75RBRrabNwZOqsZye8nW/Yx2UCBisKhWL4ovZRXeAL 7yBpeEIJH8J7/GTeFp3AmBCdHYLCztgejmlycBVFrAgDn223TZ8OExvornTsL2kwscL0 rZzeIw+e+MSL78NuP30zFwNhZTo7T+Jnq9OAnaMRIGOzf6/K+2bDZaUSUUvHnqTPmF+Z Kbtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=ZyX8tNHK5VOts8os4OSbi/JxaS4IFqhRIvTt1egsXfY=; b=VFjwwGHKmMDUyomGzPpQKI6S5NZO6DTgDa2pdirzIMa71BZzaoWEQWDNShB0jXzKa5 8eWoihCtz/1t9h4Of5FzsBLjwf2T2kWGbUFuQQyyhrtuKHiWrGoPJjH5qgtVKJTQwqye 7c61Uusld1XNAfZh7fvJM/KC+nlBmf60Mr1Xu61k4gW9K89g/H7+1q8X1JMGstYBYOvT DxADuQVfwa2YGFOrcgSJLTeEksw35cO/S/9NYuvDPrVbvbDYJlLhAw7is8sp5nqngdZu e2NtP1Sa13AR1VshDid9jDA6kC5e1sqnYSK7xXeGmMZpve5j+fZCy03mGvbFDsqCpJzi /PAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Dh5+uG6g; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3si13045092pgc.587.2018.12.03.10.35.37; Mon, 03 Dec 2018 10:35:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=@linaro.org header.s=google header.b=Dh5+uG6g; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726650AbeLCSfi (ORCPT + 16 others); Mon, 3 Dec 2018 13:35:38 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:42123 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726925AbeLCSfi (ORCPT ); Mon, 3 Dec 2018 13:35:38 -0500 Received: by mail-pl1-f195.google.com with SMTP id y1so2086917plp.9 for ; Mon, 03 Dec 2018 10:35:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZyX8tNHK5VOts8os4OSbi/JxaS4IFqhRIvTt1egsXfY=; b=Dh5+uG6gTjaiKou/ckwADwGhLsaTDPo5Y0F5CVwftykKWHHOfcK5iOkHqCcG3a117s wQWCss/Tr9r6pNC6XupWCOCe7F/ouVWIkkfPljr5VISrl3M2SpkfM5uwg2BDPlMLYCgP ExZOrH0iZznFqgNVBUkVZ8IdjRS+pzx0/dbwA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZyX8tNHK5VOts8os4OSbi/JxaS4IFqhRIvTt1egsXfY=; b=UZUHT2BKoIGi7FXQ9bBuup9TtFmP0yv6QaR4JTgL+gEe7xJ4P/v9XxISzB2dql/PxO 9kaGorbv9Is939HoND5DTeEngKwDmiI+MHj7lFnuMnqFD4xK4tXMbm63kNl39HmSIjBp hzQTx4SvxmQdByfkXA0DbTilCGengM1qad2ln3dHcxdstxPMZbdmRls62f29i97O7YyV AIw0clPlT5Czz02VQhdkOgpT5sevFQbuDVgeMpKZMQWQaSqU5BOC30+oTlogBnOSAGQM GjV+mdj4s9ChMmoTLpbfCPaclckSeTOLLUGH/6PsJo9X269M6bTcx3naEnlxk3/Rz31k BP8w== X-Gm-Message-State: AA+aEWavzUaDIqL6ZbLsk/jcU47ID4mCs06+KqcA2WVMJmLzRC1mG6D0 /aWmmzydwv0ETBlq1/JOPoL9AA== X-Received: by 2002:a17:902:33c1:: with SMTP id b59mr16825863plc.220.1543862134494; Mon, 03 Dec 2018 10:35:34 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id f6sm20180969pfg.188.2018.12.03.10.35.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Dec 2018 10:35:33 -0800 (PST) From: Bjorn Andersson To: Michael Turquette , Stephen Boyd Cc: Andy Gross , David Brown , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Marc Gonzalez , Amit Kucheria Subject: [PATCH v2 1/3] clk: qcom: gcc-msm8998: Drop hmss_dvm and lpass_at Date: Mon, 3 Dec 2018 10:33:28 -0800 Message-Id: <20181203183330.2073-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20181203183330.2073-1-bjorn.andersson@linaro.org> References: <20181203183330.2073-1-bjorn.andersson@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Disabling gcc_hmss_dvm_bus_clk and gcc_lpass_at_clk causes the board to lock up, and by that preventing the kernel to boot without clk_ignore_unused. gcc_hmss_dvm_bus_clk is marked always-on downstream, but not referenced, and gcc_lpass_at_clk isn't mentioned. So let's remove them until they are needed by some client. Signed-off-by: Bjorn Andersson --- Changes since v1: - Drop the clocks, rather than marking them critical. drivers/clk/qcom/gcc-msm8998.c | 28 ---------------------------- 1 file changed, 28 deletions(-) -- 2.18.0 diff --git a/drivers/clk/qcom/gcc-msm8998.c b/drivers/clk/qcom/gcc-msm8998.c index 9f0ae403d5f5..aed7f1f92614 100644 --- a/drivers/clk/qcom/gcc-msm8998.c +++ b/drivers/clk/qcom/gcc-msm8998.c @@ -1964,19 +1964,6 @@ static struct clk_branch gcc_hmss_at_clk = { }, }; -static struct clk_branch gcc_hmss_dvm_bus_clk = { - .halt_reg = 0x4808c, - .halt_check = BRANCH_HALT, - .clkr = { - .enable_reg = 0x4808c, - .enable_mask = BIT(0), - .hw.init = &(struct clk_init_data){ - .name = "gcc_hmss_dvm_bus_clk", - .ops = &clk_branch2_ops, - }, - }, -}; - static struct clk_branch gcc_hmss_rbcpr_clk = { .halt_reg = 0x48008, .halt_check = BRANCH_HALT, @@ -2007,19 +1994,6 @@ static struct clk_branch gcc_hmss_trig_clk = { }, }; -static struct clk_branch gcc_lpass_at_clk = { - .halt_reg = 0x47020, - .halt_check = BRANCH_HALT, - .clkr = { - .enable_reg = 0x47020, - .enable_mask = BIT(0), - .hw.init = &(struct clk_init_data){ - .name = "gcc_lpass_at_clk", - .ops = &clk_branch2_ops, - }, - }, -}; - static struct clk_branch gcc_lpass_trig_clk = { .halt_reg = 0x4701c, .halt_check = BRANCH_HALT, @@ -2653,10 +2627,8 @@ static struct clk_regmap *gcc_msm8998_clocks[] = { [GCC_GPU_SNOC_DVM_GFX_CLK] = &gcc_gpu_snoc_dvm_gfx_clk.clkr, [GCC_HMSS_AHB_CLK] = &gcc_hmss_ahb_clk.clkr, [GCC_HMSS_AT_CLK] = &gcc_hmss_at_clk.clkr, - [GCC_HMSS_DVM_BUS_CLK] = &gcc_hmss_dvm_bus_clk.clkr, [GCC_HMSS_RBCPR_CLK] = &gcc_hmss_rbcpr_clk.clkr, [GCC_HMSS_TRIG_CLK] = &gcc_hmss_trig_clk.clkr, - [GCC_LPASS_AT_CLK] = &gcc_lpass_at_clk.clkr, [GCC_LPASS_TRIG_CLK] = &gcc_lpass_trig_clk.clkr, [GCC_MMSS_NOC_CFG_AHB_CLK] = &gcc_mmss_noc_cfg_ahb_clk.clkr, [GCC_MMSS_QM_AHB_CLK] = &gcc_mmss_qm_ahb_clk.clkr,