Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3771521ybb; Mon, 23 Mar 2020 07:26:24 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvNufKgN5she5RYY9F5Rr/CCOCznlsiuYpPHMdQRes4F9ttnJa0mQoml6lsvMFezHa4yX1r X-Received: by 2002:a05:6830:60a:: with SMTP id w10mr18871775oti.292.1584973584445; Mon, 23 Mar 2020 07:26:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584973584; cv=none; d=google.com; s=arc-20160816; b=AHTCAboUgt1yOle9F65rqvsGoCNKFytdRWHm6D1Hxyo29AhDUfzcLc4QK9I/6Qz2ME jRwtM6oqBBfFiF9GTU8Rn7H2cCvSRd9ZtAWjlS9sV+Z66w0UYPc5ke/7IDrVRCj28Px3 WknnhbyymxgwIPUDXlybzw9+gOQeKeHBLyZFSJXF6KZvM2xeCxClKSdAfkrvruh2vhTH puWHC0aT5Klvc0gvaqoNU1NGGYH3InbmTfvVXNH1+B9t2L9xkgD1xE5Ho48/GWycW/i6 T9wZutVhQa4JZsKkhWpG3l50VO+B75Zlqyd69kM7vJ+RG1VAc4zjfPuG8GNXV3698FV5 wxeg== 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=ne4hdw7XcgJTnHfNH5Adgkv4JQy6yIGfmazgE0Xj0G0=; b=09ykxlkjwtmfiSB/fP/fEh8RUS02LwocCOk0W8Wje1eKd0CL/ucZtT8qeepTpQBd1c sT1akGO/MBpXjitz8M9K8jMDyQcqs89wxaJaTwBM1FQ+URT/0iNyh/Ceocdni1Lh5Nxy klJH/gvhnEZZD64s5osAVtiUj7nzF8TYoeP7dm091G/1IkWHt7IRo4koUqKwjZ/HxHQp h0EJHuntYqXNKxnveyxOMFn00BiXJ1CemSJ0CYeuZjrqoQJp3aax8vrHxZeihRR3kjOI c1qj0wQoDOyB3vVQAxPsxR4ai9Vyjfekc93vtN5FmQDwe8ABHi4atc/5zw3cE7ChVxGz RFKw== 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 y5si7357792oiy.150.2020.03.23.07.26.12; Mon, 23 Mar 2020 07:26:24 -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 S1727059AbgCWOZk (ORCPT + 99 others); Mon, 23 Mar 2020 10:25:40 -0400 Received: from alexa-out-blr-02.qualcomm.com ([103.229.18.198]:46525 "EHLO alexa-out-blr-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726203AbgCWOZj (ORCPT ); Mon, 23 Mar 2020 10:25:39 -0400 Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by alexa-out-blr-02.qualcomm.com with ESMTP/TLS/AES256-SHA; 23 Mar 2020 19:55:35 +0530 Received: from c-ppvk-linux.qualcomm.com ([10.206.24.34]) by ironmsg01-blr.qualcomm.com with ESMTP; 23 Mar 2020 19:55:05 +0530 Received: by c-ppvk-linux.qualcomm.com (Postfix, from userid 2304101) id 3B1A84C7E; Mon, 23 Mar 2020 19:55:04 +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 v6 0/2] Add SDHC interconnect bandwidth scaling Date: Mon, 23 Mar 2020 19:55:00 +0530 Message-Id: <1584973502-14775-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 | 240 ++++++++++++++++++++- 2 files changed, 254 insertions(+), 4 deletions(-) -- RFC v5 -> v6: - Added Rob's Acked-by and Bjorn Reviewed-by for the DT patch. - Added new goto jump tag to put both icc paths. - Removed bus vote data error check and added is_null check. - Addressed minor code style comments.