From patchwork Fri Jan 13 04:10:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 42924 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp73163wrt; Thu, 12 Jan 2023 20:13:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXu7hcOg8WXPuOli0j/5prXh/PWGwK+c0VDzBbnXnrUYpyrn2WZKb6Hjo2M+7rBi875yOAU+ X-Received: by 2002:a17:903:230a:b0:193:c4:8253 with SMTP id d10-20020a170903230a00b0019300c48253mr36567652plh.1.1673583235354; Thu, 12 Jan 2023 20:13:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673583235; cv=none; d=google.com; s=arc-20160816; b=feThz3qn7CN1Dy6kpm3AF3Z1RpLwVFCsSksv6foHqrrr12mAAe/V2a9LYtCKrxC2Yv 8KKoLk4vrFK1t72FR8p9e4GKTYQiaWFhD1e2eTgo7R2eISccoBuAlgOz0U4/+qRqF+qv AYzZOJlUEh3k338YSeZaK+jEYqo6LTBjOtuC+w9VX32NmqJ72lLP8Y8bsGnp8e/DanqO h0Ya40+y9Nr6GgBxndle9Ey4/JJHCAdGRpm23RGGTTMrRdq71MVSLddcWcflys92aFu9 +RDArg4ioStlAnBgR8MfdXr0zkt0td+5Nduo+z1TgF60uymDYkzv2Nzflgl8MoVyulw5 NmnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=zTBdTxY/ykqPkqJSyPday7piQnpg603mnAkIa7vRKT0=; b=zRv7YrOApnCsmTq/7R6GgrfAQpz0aRc7McBfM8UVQaksOgvo45a7rl/kqF3NmKsKkl 3AOBZDw8xD23klJoflvapzCImapcO/FsYY/Tu4hpyOscxZjSQyVaNVVXam/AmFkWsYJt eiNtX0wYtdPo3DKmtCT6QavDx670s6/j1wzO7CdkXRCvz9oqy2cKmyjt88sjB0+YbTdm zgI6MFIgwF/sTPRMuAzPl5nGNSoEsp6Bc1VtL2INByACbs+GdCAYuGDH1YVWqvEcG1G5 H6CwgmEkPYF2TV/pXEiC2TAOjb39ITHIN9fEhyS0RWqgtqTh1aoGe8EkdQ+13IjYO0za dSJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=iAQl0XVK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w13-20020a1709029a8d00b001932e3a7fb7si12961071plp.338.2023.01.12.20.13.42; Thu, 12 Jan 2023 20:13:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=iAQl0XVK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231166AbjAMELA (ORCPT + 99 others); Thu, 12 Jan 2023 23:11:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232178AbjAMEKv (ORCPT ); Thu, 12 Jan 2023 23:10:51 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C09763D36; Thu, 12 Jan 2023 20:10:49 -0800 (PST) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30D47mNC001859; Fri, 13 Jan 2023 04:10:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=zTBdTxY/ykqPkqJSyPday7piQnpg603mnAkIa7vRKT0=; b=iAQl0XVKhHxK7HOO/qA46bvsCM5OV6D9RspLhqDp7RDSPusKqFiNy2Rnp5v70H52WPIG 9I4LEpnRP5KlMc5Mi3r2F1qyZZZjoRx4pir1SNgEUdhpRs4I69mC0OXffXovE9PNL3mr tdwkm/pQDmWG6adkVFWu7hM7qe3C2KzuBCL63jQ7Yilje3Dpu5T3+tYrL/aaoIiu6Vv8 VGNfi8jPVuYKwcipaRP7YRYL3K2rk2DFO5watldgXrfgjTrq1/7ez1Ow/5fakk5fShyM 4o6VHqO5q5YqSl29X8BfUoO/0TlRD+f57PhQ7Wk3M1Md6cjtRyIUOq/UFRDTdaqldLQJ wA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n2jghsne2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Jan 2023 04:10:45 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30D4AivU000760 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Jan 2023 04:10:44 GMT Received: from hu-bjorande-lv.qualcomm.com (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Thu, 12 Jan 2023 20:10:43 -0800 From: Bjorn Andersson To: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Abel Vesa CC: , , Subject: [PATCH] clk: qcom: Remove need for clk_ignore_unused on sc8280xp Date: Thu, 12 Jan 2023 20:10:38 -0800 Message-ID: <20230113041038.4188995-1-quic_bjorande@quicinc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: ziZBaxRlxv01uPs2fXVlgthik0cLL9c2 X-Proofpoint-ORIG-GUID: ziZBaxRlxv01uPs2fXVlgthik0cLL9c2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-12_14,2023-01-12_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 malwarescore=0 mlxscore=0 suspectscore=0 priorityscore=1501 phishscore=0 clxscore=1011 bulkscore=0 impostorscore=0 mlxlogscore=999 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301130026 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754879214456635673?= X-GMAIL-MSGID: =?utf-8?q?1754879214456635673?= With the transition of disabling unused clocks at sync_state, rather than late_initcall() it's now possible to drop clk_ignore_unused and unused clock disabled once client drivers have probed. Do this on SC8280XP. Signed-off-by: Bjorn Andersson Acked-by: Konrad Dybcio Tested-by: Andrew Halaney # sc8280xp-lenovo-thinkpad-x13s Reviewed-by: Manivannan Sadhasivam Reviewed-by: Abel Vesa --- drivers/clk/qcom/dispcc-sc8280xp.c | 1 + drivers/clk/qcom/gcc-sc8280xp.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/clk/qcom/dispcc-sc8280xp.c b/drivers/clk/qcom/dispcc-sc8280xp.c index 167470beb369..c84a6481b879 100644 --- a/drivers/clk/qcom/dispcc-sc8280xp.c +++ b/drivers/clk/qcom/dispcc-sc8280xp.c @@ -3199,6 +3199,7 @@ static struct platform_driver disp_cc_sc8280xp_driver = { .driver = { .name = "disp_cc-sc8280xp", .of_match_table = disp_cc_sc8280xp_match_table, + .sync_state = clk_sync_state_disable_unused, }, }; diff --git a/drivers/clk/qcom/gcc-sc8280xp.c b/drivers/clk/qcom/gcc-sc8280xp.c index b3198784e1c3..f4fdc5b9663c 100644 --- a/drivers/clk/qcom/gcc-sc8280xp.c +++ b/drivers/clk/qcom/gcc-sc8280xp.c @@ -7441,6 +7441,7 @@ static struct platform_driver gcc_sc8280xp_driver = { .driver = { .name = "gcc-sc8280xp", .of_match_table = gcc_sc8280xp_match_table, + .sync_state = clk_sync_state_disable_unused, }, };