From patchwork Tue Oct 27 10:27:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 292273 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 328D8C55179 for ; Tue, 27 Oct 2020 10:27:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DA4832068D for ; Tue, 27 Oct 2020 10:27:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="pZEfMD2y" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2898122AbgJ0K1g (ORCPT ); Tue, 27 Oct 2020 06:27:36 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:33771 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2898123AbgJ0K1g (ORCPT ); Tue, 27 Oct 2020 06:27:36 -0400 Received: by mail-lj1-f196.google.com with SMTP id c21so1164386ljj.0 for ; Tue, 27 Oct 2020 03:27:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gCvescP5dSLVAXgQnwSOh5I7PubzBY6cI1Voa43IB8U=; b=pZEfMD2yDs/S/7GgBy1MMnU0ghnX+IObgLHS9qlIl2ZMZfmGzdIPVyMd4KvYbGBZaM BIL4x0CTu5qkw4jLyFrJ26/wuI8Zhj8AO6BLjMv/joKjahnAvBYjGSUU5CnMcAL+uHTS A4WHR/zHi4S5jhaeH9LJYvydozZHo8g805YaFpSCSotoap0MzP/BnHZvEEAJL5m/E2ss tI3I4IVeLfvJbCB7nIzNX4clXVxs7haNpCgcG+IpJccGUIkBO2JOE+EJw/W5zThoI3WG HvjTi/KicQP1mdtGTCq/xsb94MLMjt2DRrjimgvDUkSEeUxdLXoWMcaK80KVA46x7bjW HdIg== 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:mime-version :content-transfer-encoding; bh=gCvescP5dSLVAXgQnwSOh5I7PubzBY6cI1Voa43IB8U=; b=uR31H9ju6DvpoJwZjUhcgUXjMyaqo6M6n9twVvGhMakinIDX0tzwqgMa95g8nMv1xV ErE7+8g6Du6K+B2QuDK7omv/HTa/uvvkTJbbjhvOTru0rPNJcMOJ7slNcob5b7CKfvt2 uIKmfHoMaO6nDJCq6jHVyX6+nwe27ZttbutWOQB0IFNw3Oj3KVUXfN1DCDZzbB+1F7nK G22acOo6rY2yMBjYrSC7iwB/ppjFvQnazeFlB7J0scxpGy08ViGug46QHsC8YxRooQJC IGNmhopiBiRG4lQ9JAXXgn0hVeNf+DGHmiTCY2vmvAtmSBpsJ6FBcK86tlCO0GwCd9js 6Inw== X-Gm-Message-State: AOAM532Ee5PcemljmKBrIE76Ng2xqZR+OIZhq4++x6T5WQ2twUcLfyoJ XhQwjfMQXZkRnp9Gm3L9yteIZQ== X-Google-Smtp-Source: ABdhPJyioIK1VSWaQI4/Am6kRTzmspO6F/aqyjN/dRPjtHLtuKlZJoRBgyvyVGMo8GSOthOqMGYXuw== X-Received: by 2002:a2e:b558:: with SMTP id a24mr738696ljn.328.1603794453902; Tue, 27 Oct 2020 03:27:33 -0700 (PDT) Received: from eriador.lan ([188.162.64.248]) by smtp.gmail.com with ESMTPSA id l6sm129686lfc.8.2020.10.27.03.27.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2020 03:27:33 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Georgi Djakov , Jonathan Marek Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH] interconnect: qcom: use icc_sync state for sm8[12]50 Date: Tue, 27 Oct 2020 13:27:31 +0300 Message-Id: <20201027102731.951421-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org In addition to the rest of Qcom interconnect drivers use icc_sync_state for SM8150/SM8250 interconnect drivers to notify the interconnect framework when all consumers are probed and there is no need to keep the bandwidth set to maximum anymore. Signed-off-by: Dmitry Baryshkov --- drivers/interconnect/qcom/sm8150.c | 1 + drivers/interconnect/qcom/sm8250.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/interconnect/qcom/sm8150.c b/drivers/interconnect/qcom/sm8150.c index 9218efed04a0..30fb6567fe19 100644 --- a/drivers/interconnect/qcom/sm8150.c +++ b/drivers/interconnect/qcom/sm8150.c @@ -627,6 +627,7 @@ static struct platform_driver qnoc_driver = { .driver = { .name = "qnoc-sm8150", .of_match_table = qnoc_of_match, + .sync_state = icc_sync_state, }, }; module_platform_driver(qnoc_driver); diff --git a/drivers/interconnect/qcom/sm8250.c b/drivers/interconnect/qcom/sm8250.c index 9b58946f7898..49c5ee2e70f0 100644 --- a/drivers/interconnect/qcom/sm8250.c +++ b/drivers/interconnect/qcom/sm8250.c @@ -643,6 +643,7 @@ static struct platform_driver qnoc_driver = { .driver = { .name = "qnoc-sm8250", .of_match_table = qnoc_of_match, + .sync_state = icc_sync_state, }, }; module_platform_driver(qnoc_driver);