Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4460358imm; Mon, 8 Oct 2018 23:16:53 -0700 (PDT) X-Google-Smtp-Source: ACcGV63IObAkhF2NPzeLOiKUwKNhYKbodrmsPLqBpEnDdCV0+87WKOB01UVJgiUH/a9yrlvySUxw X-Received: by 2002:a63:5747:: with SMTP id h7-v6mr24269010pgm.423.1539065813211; Mon, 08 Oct 2018 23:16:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539065813; cv=none; d=google.com; s=arc-20160816; b=HtHSPOeZ3HPOWBFR3AWcKL1zZwh7/k2ApUqDRNoXkJBqL2+jSLLv0cioj+Tuqe4vy4 rDMYBHmfLf9SDFr6YXRK7XABZfOjKz+zl/yElKl3eGzCSbhrR2SvBPYqfTD4sUiDlNdT /UWjJaP7vvUP979vyG2NbVNkZ21pmtsxrDpEidR31Rg4NWuagnfNTiYXpzHOXbLPQSgJ zTo16ti7Xc/2X6+qrEGi+2a275SwiovoIlopl4a2pQB05rpRZQozL5iNgAfSPPp1y/Er SJtOKGh6mcmVFVD97bvznQbeTY5M9hF4RUM37rfLs9YVzsi4YsM0O1hmwj4CJtepUPo2 I9tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=OV+QhLMFjDlyzFhsKIYV+WNH5Amnxuz31Bq2fUpn9lU=; b=OKeztfnnPRE9nCQvi7oJrZ/3aqF6F7DY8uuiVQNj2pvcxtwBBOEx5LIWxUAtURiYIE FB76kfKOYmI3iUiCvHsT+HuEyD+TR7l6wJxHrt/QatHK2vfgl88TkWAOaG28HbWccZBM wEIX2vlapIBEok3XCcGLtovS5E53kKv5FCceL2hVxyAyKlDHdPGAadKTbmsQKPEfE3dO LTtKE0M9Cp5CF02etIHqK8R9lAgeDuimRXl19/jHAznNwZO8fyKF4i3B5E6eJ1lTmUAl aCLIGt+mfnwC0LX+5oM5RqTjIdq3tK2khH+iFxKQOahXOtullMdSgQ9gwvuZzzHtfuTy Dg0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=hZSETndz; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10-v6si8323083plk.240.2018.10.08.23.16.38; Mon, 08 Oct 2018 23:16:53 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=hZSETndz; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726160AbeJINbG (ORCPT + 99 others); Tue, 9 Oct 2018 09:31:06 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:37988 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725808AbeJINbF (ORCPT ); Tue, 9 Oct 2018 09:31:05 -0400 Received: by mail-wr1-f68.google.com with SMTP id a13-v6so401556wrt.5; Mon, 08 Oct 2018 23:15:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:cc:from:message-id; bh=OV+QhLMFjDlyzFhsKIYV+WNH5Amnxuz31Bq2fUpn9lU=; b=hZSETndz1M3jVgRlPzpPuxqJHwzrF9pT6l1mLdwz8jKEYOURsdGXugaMigXvewUfR/ KHHPNc7DLWPxTgkGPDuDYcPW5XlKWoRkRfdxpfkpvVkFBL9tDWRvU9MR7A1kjnfHzodk gngyKmrwTs0KawVJTlA4GtYWg1WkRuPoBJCQOdg7wPDrAM8Wo5WRSuAdGdCdno8jzqg9 EclFuby549J/7pl0h2MYB1fAH6mbE+zMJWbDqhKwTImuMMKeorDUFI+SfQw6fRAtIBp4 BfRRjEkwgPyje4JqFhgZ5OMLDlm7H9aopWKVn2bIxNlQ3b4w4vEC3LSyZqlO+NhnGVnn BeVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:cc:from :message-id; bh=OV+QhLMFjDlyzFhsKIYV+WNH5Amnxuz31Bq2fUpn9lU=; b=qLNpF+nUq4fgpapClzZHiNiRA05QcSuqxu41DGddvSY6VyNu0g7vY5qYfWAlpXmhOj fIpfG1lBhUKxmtdZmiAqMTC/mQxvSadNIdMns2HZze9Neskc7NUdUtnSmlzBZxW5z9D7 ajJDuxtA1L7ok+DMKgYgU0NlLTeBOiUj+a9fE4dtXHCWymtQIaKGP6XBhrmiZRV1u4Ve yFIZkS8V/D5q0z6IDzsOW8GujJIpeAzED/jMpvn3JplqnG33ZEp3yC44WZhl7kqFWUEB 8wT06eY/1ZH058IPxt5G3VqOgfTkPKt/RjPa94uxQw704l1Ak/0/6bB3FhS3qyqZZXU2 rm1Q== X-Gm-Message-State: ABuFfohtbl0wZ09ry67lVS7+EL0UIsB2gmrifK5JebjdXWKHcKwliFHB oU+Tnqkz/T3I1/b3/ny2zQ== X-Received: by 2002:a5d:44ce:: with SMTP id z14-v6mr14991635wrr.286.1539065744818; Mon, 08 Oct 2018 23:15:44 -0700 (PDT) Received: from [192.168.1.79] (host86-147-9-179.range86-147.btcentralplus.com. [86.147.9.179]) by smtp.gmail.com with ESMTPSA id 18-v6sm24012131wmw.26.2018.10.08.23.15.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Oct 2018 23:15:44 -0700 (PDT) Date: Tue, 09 Oct 2018 07:15:40 +0100 User-Agent: K-9 Mail for Android In-Reply-To: <4881900d-c8e5-278f-012f-541ad13ffca8@codeaurora.org> References: <1529386761-4923-1-git-send-email-vviswana@codeaurora.org> <20180924194412.GA27477@arch> <74ABB71C-6B0C-44AE-BC30-1F385ADC3E42@gmail.com> <20181008065653.GB2550@tuxbook-pro> <4881900d-c8e5-278f-012f-541ad13ffca8@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH V3 0/4] Changes for SDCC5 version To: Veerabhadrarao Badiganti , Bjorn Andersson CC: Vijay Viswanath , adrian.hunter@intel.com, ulf.hansson@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, shawn.lin@rock-chips.com, linux-arm-msm@vger.kernel.org, georgi.djakov@linaro.org, devicetree@vger.kernel.org, asutoshd@codeaurora.org, stummala@codeaurora.org, venkatg@codeaurora.org, jeremymc@redhat.com, riteshh@codeaurora.org, dianders@google.com, sayalil@codeaurora.org From: Craig Message-ID: <5A5AEF0D-6996-410E-962C-43B9944F0E28@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9 October 2018 07:01:57 BST, Veerabhadrarao Badiganti wrote: >Hi > > >On 10/8/2018 12:26 PM, Bjorn Andersson wrote: >> On Sun 07 Oct 01:07 PDT 2018, Craig wrote: >> >>> Any updates on this? >>> >> FWIW I used qcom,sdhci-msm-v5 on QCS404 successfully=2E >> >> Regards, >> Bjorn > >The base address and interrupt numbers needs to be updated in your dt=2E >you can refer the below link to update interrupt number and base >address >https://android=2Egooglesource=2Ecom/kernel/msm/+/android-msm-wahoo-4=2E4= -oreo-m2/arch/arm/boot/dts/qcom/sdm660=2Edtsi They look correct, driver only uses pwr irq and the actual reg field is fi= ne, just node name wrong, which wouldn't cause issues=2E >>> On 25 September 2018 16:39:33 BST, Craig >wrote: >>>> >>>> On 25 September 2018 12:17:26 BST, Veerabhadrarao Badiganti >>>> wrote: >>>>> On 9/25/2018 1:18 AM, Craig Tatlor wrote: >>>>>> What socs have you tested this on? >>>>>> On sdm660 it seems to crash device >>>>>> when writing pwr ctl=2E >>>>> Hi >>>>> We have tested this on SDM845=2E >>>>> SDM660 also has SDCC5 controller, so you would need to define >>>>> "qcom,sdhci-msm-v5" in your platform dt=2E >>>>> Can you confirm if you have defined this? >>>>> >>>> Hi, >>>> Yes my DT entry is as follows >>>> >>>> sdhc_1: sdhci@f9824900 { >Update this address=2E This could be the reason for the crash that you >are=20 >observing=2E > >>>> =20 >>>> =20 >>>> compatible =3D "qcom,sdhci-msm-v5"; >>>> =20 >>>> reg =3D <0xc0c4000 0x1000>, <0xc0c5000 0x1000>; >>>> =20 >>>> interrupts =3D ; >>>> =20 > >Please update this interrupt map aswell=2E > >>>> interrupt-names =3D "pwr_irq"; >>>> =20 >>>> =20 > =20 >>>> bus-width =3D <8>; >>>> =20 >>>> non-removable; >>>> =20 >>>> =20 > =20 >>>> vmmc-supply =3D <&pm660l_l4>; >>>> =20 >>>> vqmmc-supply =3D <&pm660_l8>; >>>> =20 >>>> =20 > =20 >>>> pinctrl-names =3D "default"; >>>> =20 >>>> pinctrl-0 =3D <&sdc1_clk &sdc1_cmd &sdc1_data &sdc1_rclk>; >>>> =20 >>>> =20 > =20 >>>> clocks =3D <&gcc GCC_SDCC1_APPS_CLK>, <&gcc GCC_SDCC1_AHB_CLK>; >>>> =20 >>>> clock-names =3D "core", "iface"; >>>> =20 >>>> }; >>>> >>>>> BTW, can you please share few details of the platform that you are >>>>> checking? >>>>> We are not aware of any dev platform based on SDM660=2E This is just >for >>>>> my info >>>> I'm checking on the sony xperia xa2 (pioneer) smartphone=2E >>>>>> On Tue, Jun 19, 2018 at 11:09:17AM +0530, Vijay Viswanath wrote: >>>>>>> With SDCC5, the MCI register space got removed and the >offset/order >>>>> of >>>>>>> several registers have changed=2E Based on SDCC version used and >the >>>>> register, >>>>>>> we need to pick the base address and offset=2E >>>>>>> >>>>>>> Depends on patch series: "[PATCH V5 0/2] mmc: sdhci-msm: >>>> Configuring >>>>> IO_PAD support for sdhci-msm" >>>>>>> Changes since RFC: >>>>>>> Dropped voltage regulator changes in sdhci-msm >>>>>>> Split the "Register changes for sdcc V5" patch >>>>>>> Instead of checking mci removal for deciding which base addr to >>>>> use, >>>>>>> new function pointers are defined for the 2 variants of sdcc: >>>>>>> 1) MCI present >>>>>>> 2) V5 (mci removed) >>>>>>> Instead of string comparing with the compatible string from DT >>>>> file, >>>>>>> the sdhci_msm_probe will now pick the data associated with the >>>>>>> compatible entry and use it to load variant specific address >>>>> offsets >>>>>>> and msm variant specific read/write ops=2E >>>>>>> >>>>>>> Changes since V1: >>>>>>> Removed unused msm_reab & msm_writeb APIs >>>>>>> Changed certain register addresses from uppercase to lowercase >hex >>>>>>> letters >>>>>>> Removed extra lines and spaces >>>>>>> Split "[PATCH V1 0/3] Changes for SDCC5 version" patch into >two, >>>>>>> one for Documentation and other for the driver changes=2E >>>>>>> >>>>>>> Changes since V2: >>>>>>> Used lower case for macro function defenitions >>>>>>> Removed unused function pointers for msm_readb & msm_writeb >>>>>>> >>>>>>> >>>>>>> Sayali Lokhande (3): >>>>>>> mmc: sdhci-msm: Define new Register address map >>>>>>> Documentation: sdhci-msm: Add new compatible string for SDCC >v5 >>>>>>> mmc: host: Register changes for sdcc V5 >>>>>>> >>>>>>> Vijay Viswanath (1): >>>>>>> mmc: sdhci-msm: Add msm version specific ops and data >structures >>>>>>> >>>>>>> =2E=2E=2E/devicetree/bindings/mmc/sdhci-msm=2Etxt | = 7 +- >>>>>>> drivers/mmc/host/sdhci-msm=2Ec | 511 >>>>> ++++++++++++++++----- >>>>>>> 2 files changed, 391 insertions(+), 127 deletions(-) >>>>>>> >>>>>>> --=20 >>>>>>> Qualcomm India Private Limited, on behalf of Qualcomm >Innovation >>>>> Center, Inc=2E >>>>>>> Qualcomm Innovation Center, Inc=2E is a member of Code Aurora >Forum, >>>> a >>>>> Linux Foundation Collaborative Project=2E >>>>>>> -- >>>>>>> To unsubscribe from this list: send the line "unsubscribe >>>>> linux-arm-msm" in >>>>>>> the body of a message to majordomo@vger=2Ekernel=2Eorg >>>>>>> More majordomo info at=20 >http://vger=2Ekernel=2Eorg/majordomo-info=2Ehtml >>>>> Thanks, >>>>> Veera >>> --=20 >>> Sent from my Android device with K-9 Mail=2E Please excuse my brevity= =2E > >Thanks, >Veera --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E