Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5984156ybv; Wed, 12 Feb 2020 04:01:12 -0800 (PST) X-Google-Smtp-Source: APXvYqwt1FYJO67FkFz+7C+547AjAzsV0J5UZlAOg36+aed+M1Kq49hlMunjQiDiZLVr8hERO/dO X-Received: by 2002:aca:c401:: with SMTP id u1mr5986317oif.62.1581508872788; Wed, 12 Feb 2020 04:01:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581508872; cv=none; d=google.com; s=arc-20160816; b=Z9xkRHurywNI8BaZL9fEjUGq7WfmaREXT+xPeRPw7fkL5GLD1VqnS9zmP6HixSlhHK Orh2aeZi+zwV0VcqZx8gPkYydyVTuOMWA+/mKi4riDuGnLPgfz29rbhwsERYz9UOba7O 6Sq3nj9hrXGJ3lGWoucaiYU4cIG3fDmmXO6dpX8qzwkCQnnRDkaffqjuYekGIaZBmW9p 2SaiIH6ZElWEF2pWRXCeCDnpaZImhh3AeMQ0cegvPwp9oLB6LnmYIlHR3FD2RryDBoiV qGRE9z6g+Q80BmGqk0mwc/kvT3Hg3jbbrrwTesF2CzyeTz/O+2UqyLB5KK4X4v2xVoyq aiLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=RLVnJC/Yp3dxGv33CP0wjpJhPdl/x7brvP9Cxn1hiIY=; b=EBKB0xyvnip3pEqkxtJ3LuA6cLSWN0vvBjPG3J4v+J5t3JpwkphNqN1s5lz3ceTpdU 6TqMJbocmFM6iE/wJzA8pYm9rTEOy7wPBBerQC0b3hk10h9r+9ssBut9jOGVl2dkWn3l 7+2S4EoqUfJbVrjKPCZ+ClWj3JP2HUlYGzPYm2OkXmgEbQ8YgEs0zChcOxI2pAxOyKKd QZLR9vI8v1n/CyDsqIAJiuPlBL83yM1/6qxbTIt0GhAV6WmlUtoeIdws494qc9UL5cDF MNy9HWgOmvTd+U9laligrcsbj540LYiSFG4muKgEiuhA19ejlTFGYAOd/wKVM5Ottc+r 7Dpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=k5mhsrZm; 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 6si114891otv.224.2020.02.12.04.00.59; Wed, 12 Feb 2020 04:01:12 -0800 (PST) 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; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=k5mhsrZm; 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 S1728214AbgBLMAZ (ORCPT + 99 others); Wed, 12 Feb 2020 07:00:25 -0500 Received: from mail27.static.mailgun.info ([104.130.122.27]:60892 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728207AbgBLMAZ (ORCPT ); Wed, 12 Feb 2020 07:00:25 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1581508824; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=RLVnJC/Yp3dxGv33CP0wjpJhPdl/x7brvP9Cxn1hiIY=; b=k5mhsrZm0rv1A6WeX1kKc5t8un54dDLEuK9qNoK3JPkoN8iJ6kDVbuSVRwqKyaaiGkuld6ip fCEUIuqjKg7yJSdvQtRlDLMGgnt5KB5V7QBTCBjno+BVirkSg5yV+Ly2akroXuYzrLUJkLJy KbU1Mc88sZcIcArm++66MHdQmzU= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e43e8c7.7fe49e644fb8-smtp-out-n03; Wed, 12 Feb 2020 12:00:07 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 7C3D9C447A3; Wed, 12 Feb 2020 12:00:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [10.206.25.140] (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: vbadigan) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8FAFEC433A2; Wed, 12 Feb 2020 12:00:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8FAFEC433A2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=vbadigan@codeaurora.org Subject: Re: [PATCH V1] dt-bindings: mmc: sdhci-msm: Add CQE reg map To: Doug Anderson Cc: Ulf Hansson , Adrian Hunter , Asutosh Das , Sahitya Tummala , Sayali Lokhande , cang@codeaurora.org, Ram Prakash Gupta , Linux MMC List , LKML , linux-arm-msm , Rob Herring , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" References: <1581434955-11087-1-git-send-email-vbadigan@codeaurora.org> From: Veerabhadrarao Badiganti Message-ID: <1e3f8fc3-dde9-5aaf-12a9-0eb0bc5ceb83@codeaurora.org> Date: Wed, 12 Feb 2020 17:30:00 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/11/2020 10:12 PM, Doug Anderson wrote: > Hi, > > On Tue, Feb 11, 2020 at 7:29 AM Veerabhadrarao Badiganti > wrote: >> CQE feature has been enabled on sdhci-msm. Add CQE reg map >> that needs to be supplied for supporting CQE feature. >> >> Change-Id: I788c4bd5b7cbca16bc1030a410cc5550ed7204e1 >> Signed-off-by: Veerabhadrarao Badiganti >> --- >> Documentation/devicetree/bindings/mmc/sdhci-msm.txt | 5 +++++ >> 1 file changed, 5 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/mmc/sdhci-msm.txt b/Documentation/devicetree/bindings/mmc/sdhci-msm.txt >> index 7ee639b..eaa0998 100644 >> --- a/Documentation/devicetree/bindings/mmc/sdhci-msm.txt >> +++ b/Documentation/devicetree/bindings/mmc/sdhci-msm.txt >> @@ -27,6 +27,11 @@ Required properties: >> - reg: Base address and length of the register in the following order: >> - Host controller register map (required) >> - SD Core register map (required for msm-v4 and below) >> + - CQE register map (Optional, needed only for eMMC and msm-v4.2 above) > I did a quick search and it appears that SD cards implementing 6.0 of > the spec can also use CQE. Is that correct? If so, maybe remove the > part about "eMMC"? On qcom platforms, only SDHC instance meant for eMMC has the CQE support. So mentioned that its needed only for eMMC. > > Maybe also change "needed" to "useful" to make it clear that this > entry isn't actually required for all msm-v4.2 controllers? sure. > >> +- reg-names: When CQE register map is supplied, below reg-names are required >> + - "hc_mem" for Host controller register map >> + - "core_mem" for SD cpre regoster map > s/regoster/register > > >> + - "cqhci_mem" for CQE register map > I'm at least slightly confused. You say that reg-names are there only > if CQE register map is supplied. ...and that requires 4.2 and above. > ...but "core_mem" is only there on 4.0 and below. So there should > never be a "core_mem" entry? core_mem is present till =v4.2 Say, for version v4.2 both are present; .... and for v5.0 only cqhci_mem is present. Both hc reg-map and core reg-map are being accessed through index. So no need to list the reg names 'hc_mem' & 'core_mem' in general. But coming to cqhci reg-map we can't access it with fixed index, since its index varies between 1/2 based on controller version. So we are accessing it through reg-names. Since reg-names has to be associated with corresponding reg maps, other two reg-names (hc_mem & core_mem) also need to br listed when cqhci_mem is listed. That is the reason, I mentioned it like these are needed only cqe reg map is supplied. If it is creating confusion, i will remove that statement. > Trying to specify that sanely in free-form text seems like it's gonna > be hard and not worth it. You should probably transition to yaml > first? > > > I will also note that Rob isn't a huge fan of "reg-names". In a > different conversation I think you mentioned you had a reason for > having it. I guess just be prepared to defend yourself against Rob if > you feel strongly about keeping reg-names. Sure. Its the same reason mentioned in above comment. > > -Doug