Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp155857ybh; Wed, 11 Mar 2020 23:04:02 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvZtshrdsLJ+7FyXykd68sAgageTLwRjHAiB7Lut7+ZnbfU3owQOknHi0RVVOmk+VujyWC+ X-Received: by 2002:aca:cc41:: with SMTP id c62mr1527414oig.58.1583993042228; Wed, 11 Mar 2020 23:04:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583993042; cv=none; d=google.com; s=arc-20160816; b=AmkjdzS3wvzfRVdPmFYBQ055BHiL6ziGpd3Jj3M/gzcpEmg2Vnr9OuBocoTl9wHEyE pr7sDPcs9SW+ghnyflh9+mysrs3UHdtTyU04tA6gFrSDGp4tIl5+LyiqKEo46h21SNhc ppHaiznL3FHbTM2a1OX5ply/qDzhVU4nm4bxd7k/fW+ReAiCeohNCwtcFENgOwlo1JgQ ivJ0xeTHY4KpYmCHXTvf2TVr+HS6Vp9xwvYc7gVLYkp/f7tB/rwqdCMzpVAivxthWR5X WdFFa1QLCVqrEBCcC41c1gK6NMjNF1M+E4fOqjZ/AVSMVSjOUKHswYH8FzjDZc0gFwBp 6lsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=M33XxiySWPh5uGqQvUGOdJwp26MgOcApBB5kfoI731U=; b=qn8zagh4EBOzyb33LyoCgt0BEdt+lIvot2V78JhDKGUqnWB22pT4kQoxbN43pG9eUe Z2KruH51E3GaX0cRrJeQihXBIkN7J9BPU6dxI4y6ZSbk2FieN8D3lD4GM0VAjvhMJOye Q9ZR0VK9faZ9PT8vUSQBI3eU3HtEdq00jV6dGJ2GzDf7a5CB2FnGiDWWGRlob1D8PQ+5 laCBY0Y+o+gEfF6xYs8jRfdlRE/pl0Xh5k5R+qeHCzAfFJ0jcW5u8iEiyYHLr9rc3IbL nCv+JQY9ZEIvb6ZLoOh3WFP2SwG1KW/4myhA825+moW+UHgiCIINLr/rzvkYDv39W3kV g1Fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si2293853otq.122.2020.03.11.23.03.35; Wed, 11 Mar 2020 23:04:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387854AbgCLGDP (ORCPT + 99 others); Thu, 12 Mar 2020 02:03:15 -0400 Received: from alexa-out-blr-02.qualcomm.com ([103.229.18.198]:20487 "EHLO alexa-out-blr-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387767AbgCLGDP (ORCPT ); Thu, 12 Mar 2020 02:03:15 -0400 Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by alexa-out-blr-02.qualcomm.com with ESMTP/TLS/AES256-SHA; 12 Mar 2020 11:32:29 +0530 Received: from c-ppvk-linux.qualcomm.com ([10.206.24.34]) by ironmsg02-blr.qualcomm.com with ESMTP; 12 Mar 2020 11:31:58 +0530 Received: by c-ppvk-linux.qualcomm.com (Postfix, from userid 2304101) id 258634D31; Thu, 12 Mar 2020 11:31:57 +0530 (IST) From: Pradeep P V K To: bjorn.andersson@linaro.org, adrian.hunter@intel.com, robh+dt@kernel.org, ulf.hansson@linaro.org, asutoshd@codeaurora.org, stummala@codeaurora.org, sayalil@codeaurora.org, rampraka@codeaurora.org, vbadigan@codeaurora.org, sboyd@kernel.org, georgi.djakov@linaro.org, mka@chromium.org Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, agross@kernel.org, linux-mmc-owner@vger.kernel.org, Pradeep P V K Subject: [RFC v5 0/2] Add SDHC interconnect bandwidth scaling Date: Thu, 12 Mar 2020 11:31:49 +0530 Message-Id: <1583992911-12001-1-git-send-email-ppvk@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add interconnect bandwidths for SDHC driver using OPP framework that is required by SDHC driver based on the clock frequency and bus width of the card. Otherwise, the system clocks may run at minimum clock speed and thus affecting the performance. This change is based on [RFC] mmc: host: sdhci-msm: Use the interconnect API (https://lkml.org/lkml/2018/10/11/499) and [PATCH v6] Introduce Bandwidth OPPs for interconnects (https://lkml.org/lkml/2019/12/6/740) Pradeep P V K (2): mmc: sdhci-msm: Add interconnect bus bandwidth scaling support dt-bindings: mmc: sdhci-msm: Add interconnect BW scaling strings .../devicetree/bindings/mmc/sdhci-msm.txt | 18 ++ drivers/mmc/host/sdhci-msm.c | 231 ++++++++++++++++++++- 2 files changed, 245 insertions(+), 4 deletions(-) -- RFC v4 -> v5: - Added Rob's Acked-by and Bjorn Reviewed-by for the DT patch. - Rewrote the icc interconnect get handlers and its error handling and allocated vote data after handling all icc get handler errors. - Removed explicit error check on ICC handlers. - Addressed minor code style comments. 1.9.1