From patchwork Tue Aug 25 17:01:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 248257 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp3604652ils; Tue, 25 Aug 2020 10:02:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHhqaVETLaPl3oDXUvJmTum9KxdHl48wgiD36qvI+UNhCZw90YTmKE1sJAvIz4T8IsCBku X-Received: by 2002:a50:eb96:: with SMTP id y22mr4274376edr.371.1598374938093; Tue, 25 Aug 2020 10:02:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598374938; cv=none; d=google.com; s=arc-20160816; b=pcmQcSM3SqBkWgL/WmVxi04uekwri/O5mpUh6mATGcLbNnSNc/G55u3Qk8uBnZ+ik8 wJ6MQteBLpXCjbwru16upSZCsdsyfw9uqBuwVQmStKQUrOX3HND6p5QriRoXJS4drjjj 0TFteqDBPb779oxrF0zjNf90DQilKwNvuO0KqOZio8eOhQTCxa3QvBZyzqwYQ+318MZp q2ayE64pd6nrmoKtV8f1s/yRXRm76Oy4JLaOytpfyaWA6FzMQ49Sibbkh+Q9+q7J7luG Gyof6JBKuQX3p9I4nA5uCv5g2vUcb91iYJcvvVHY4blTMQNc0Ia2Wc9FUtvO0/mQBqW5 QVrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QV/ePTGwly0PbuCxUdBYC9fwASHXwx8pOAXdY4hkxSk=; b=k4qoLAmBrz3os8Zdk0JbfQZJD5WejQfB9BSs+Np6FgE4oPo7lvxSqW11HVrmjwIp7S cnick7le6+s7TWS2oMJ32D0EFa88ZeaRxm+f8lIozDNMtDGcyzjK5vRabyxETgu/b7zD jvO6G5ebvRpDqviQSmCWZeJ08MM4HQLQ/H4aR36gJUGGCVksDxQ80gaybfrDnPLz0VL9 BaSDuIZ0U8HZ8XeyYKH/m4S0e8InqZJiGInoF8NydAePPsISE0UJUnaABuncBL3ubgG0 sGoDoUcjr28fZW8coM9pLnu5A883HPYHVt0z0bnleZKR4D2iY206NmvFc4RBH7oV5DhT 1jzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w6fLWxnz; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id co24si656984edb.316.2020.08.25.10.02.17; Tue, 25 Aug 2020 10:02:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w6fLWxnz; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 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 S1726610AbgHYRCI (ORCPT + 15 others); Tue, 25 Aug 2020 13:02:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726471AbgHYRCB (ORCPT ); Tue, 25 Aug 2020 13:02:01 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A2B0C061795 for ; Tue, 25 Aug 2020 10:01:59 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id x9so2796385wmi.2 for ; Tue, 25 Aug 2020 10:01:59 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=QV/ePTGwly0PbuCxUdBYC9fwASHXwx8pOAXdY4hkxSk=; b=w6fLWxnzdnmnnXwVZMk3NMnzMDQI/s5/Sd0s5QnL7uZt4yk9BbTM0UauO2iHQMPchX j1YQGKFqB72CTy7+YBK1ukBydPhtP2nsnOAR61T8QnnqTC2PFdJQKXmLRU+LkNx09bgM fwxpVU5bekWJsrlGboysgLFzprUsXKUw8aibKC/p2qghW8jgZvjdXojcD78t1FbKyn2B 7rDSkydZejaaedVnlDmp4sSrZL15YRLFdRu6KuEs2w4kXU4THMAkZIxtiX2P3mA1f1GL /Ka64J+Ytz1TY5wY9IXLKCm0b92iKlQCZtyMCQnH1rl77Ce7foZ12BaRClKuQq+5zPhg 29yA== 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:mime-version:content-transfer-encoding; bh=QV/ePTGwly0PbuCxUdBYC9fwASHXwx8pOAXdY4hkxSk=; b=nMpphe2+ArYGLwnMDBknJa1bFXHx1j8xPxXI/uPe3yfejZarmPMVZJBrMRUjD4fdyd w4CSqkRO+Qmf2mgXjrqf3C0GLKBaLwjt6gIoq7IOjQoe5IcBf/vxgGdQyhIhxNqP/U15 OcDZUWDaY+b90lfp08c+HuXp29J+z+AweHM6xwq5cfuHpmWenkB7M3G001Ko0gew1Zty UMmTS1wabSDygSZ7m36Kp2G1/116YwC4eaJTwQhvlS+egBGnopT/fqtT3053XUYxT1qN +7ilbbfIDZjsGb2X0bjQJxj4uTQfA7OvgqMLLwpQA6KOr0x2/11S6H/RM0m1HWH5CQsa 1aHA== X-Gm-Message-State: AOAM5300uj+3U4DHl03tixsjO75P/KFhfHRsFUGDmi0N9B/Mky+i+t9y tblHk7nHlJd9o/uiSuzqr5KPwA== X-Received: by 2002:a1c:f70a:: with SMTP id v10mr2926290wmh.39.1598374917760; Tue, 25 Aug 2020 10:01:57 -0700 (PDT) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id y17sm6669008wma.17.2020.08.25.10.01.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Aug 2020 10:01:57 -0700 (PDT) From: Georgi Djakov To: linux-pm@vger.kernel.org Cc: saravanak@google.com, mdtipton@codeaurora.org, okukatla@codeaurora.org, bjorn.andersson@linaro.org, vincent.guittot@linaro.org, akashast@codeaurora.org, georgi.djakov@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/3] interconnect: qcom: Use icc_sync_state Date: Tue, 25 Aug 2020 20:01:52 +0300 Message-Id: <20200825170152.6434-4-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200825170152.6434-1-georgi.djakov@linaro.org> References: <20200825170152.6434-1-georgi.djakov@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Lowering the bandwidth on the bus might have negative consequences if it's done before all consumers had a chance to cast their vote. Now by default the framework sets the bandwidth to maximum during boot. We need to use the icc_sync_state callback to notify the framework when all consumers are probed and there is no need to keep the bandwidth set to maximum anymore. Signed-off-by: Georgi Djakov --- drivers/interconnect/qcom/osm-l3.c | 1 + drivers/interconnect/qcom/sc7180.c | 1 + drivers/interconnect/qcom/sdm845.c | 1 + 3 files changed, 3 insertions(+) diff --git a/drivers/interconnect/qcom/osm-l3.c b/drivers/interconnect/qcom/osm-l3.c index 96fb9ff5ff2e..ae955f164442 100644 --- a/drivers/interconnect/qcom/osm-l3.c +++ b/drivers/interconnect/qcom/osm-l3.c @@ -268,6 +268,7 @@ static struct platform_driver osm_l3_driver = { .driver = { .name = "osm-l3", .of_match_table = osm_l3_of_match, + .sync_state = icc_sync_state, }, }; module_platform_driver(osm_l3_driver); diff --git a/drivers/interconnect/qcom/sc7180.c b/drivers/interconnect/qcom/sc7180.c index dcf493d07928..4c5d38649220 100644 --- a/drivers/interconnect/qcom/sc7180.c +++ b/drivers/interconnect/qcom/sc7180.c @@ -633,6 +633,7 @@ static struct platform_driver qnoc_driver = { .driver = { .name = "qnoc-sc7180", .of_match_table = qnoc_of_match, + .sync_state = icc_sync_state, }, }; module_platform_driver(qnoc_driver); diff --git a/drivers/interconnect/qcom/sdm845.c b/drivers/interconnect/qcom/sdm845.c index f6c7b969520d..6aa39aad2555 100644 --- a/drivers/interconnect/qcom/sdm845.c +++ b/drivers/interconnect/qcom/sdm845.c @@ -559,6 +559,7 @@ static struct platform_driver qnoc_driver = { .driver = { .name = "qnoc-sdm845", .of_match_table = qnoc_of_match, + .sync_state = icc_sync_state, }, }; module_platform_driver(qnoc_driver);