Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7796888rwl; Tue, 10 Jan 2023 05:37:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXuT3eFcC4cO4j19OYBX8oynyAOLu2/x9iegQMBtwZoAuoth7seTQdnCF7nzuf2KNFrttcVQ X-Received: by 2002:a17:907:1b8f:b0:7c0:d2b2:eb07 with SMTP id mz15-20020a1709071b8f00b007c0d2b2eb07mr55830144ejc.26.1673357874542; Tue, 10 Jan 2023 05:37:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673357874; cv=none; d=google.com; s=arc-20160816; b=fLkcIJ93+oxzW4jqWgHmhwn282ixDWBGINb5XY5mtcW+waXyzw7pcrWCG5M49Zk6yc o9bfBJJuTJluiwU5JkFms2Rbtyl6OVrp3DmBFKl4vqryXKvG3ZPfaUm5iRw22l+VEYBp d2F3ijZjVXBD0YrevjVQsF7HgCQ7wu8ObXrSgphwrfq1kdo7tAntrJkTDRQq84cPNtpx 6+Q1H6HxOxFNcmeR16Y1cqNRhPdpksu7/1IM7D7cJyv9Lh1AyWtBiaeJD1W/VPWR/hO3 gQyZ43xO+X7uVDqVEdeJbZsvKueSmNDcDhLcvFKeUVeBfGWLjqfz+Av2z7SD1rWZmKOw sL1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=RnE4fpLbcTktxDgKOw5o5AykRDw1ELTBr8AeZCuOMxk=; b=elFCCEaqDFBjmmZC3hjY42mQ+ByznldvLeEroYi4cekbbgL55Hm3kb02WOT2XhA+Xz zuNZrManDWCFoofaQ8Ip6s/NuBdnXtO6/KN7M9nnAzMljwW8JogyL6fVouLThLr+vHKs WBHYd/J6XsW6HOMoOtIBZUnp4XV5nkTIJhFqckU41JCpBAhWQi8OzpTHsfAACjava0aL x/xNv1aG7bSaTcDhl6vIJC7ht6KitinjNM7sGVjHXNgS3YeInldvQtvOHzSIFGcJovO5 r++ybCKczowbUvQ0k6ufmu9i89ozWXRu+HLf5HRC7OAC3JqZAeIXfwOWFiwMQ4QxKC9L iCuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RYF+dwJS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz40-20020a1709077da800b007c0b7b5ff5csi12270702ejc.646.2023.01.10.05.37.41; Tue, 10 Jan 2023 05:37:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RYF+dwJS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S231767AbjAJNO3 (ORCPT + 53 others); Tue, 10 Jan 2023 08:14:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231776AbjAJNO0 (ORCPT ); Tue, 10 Jan 2023 08:14:26 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 332CB3FA1F for ; Tue, 10 Jan 2023 05:14:25 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id h16so11677549wrz.12 for ; Tue, 10 Jan 2023 05:14:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=RnE4fpLbcTktxDgKOw5o5AykRDw1ELTBr8AeZCuOMxk=; b=RYF+dwJScInqtksjXi7CaKi6U0QmKWIc1MT/7tNys0Mdjiz7BVq58Zac4iiBwdWnAH ZQRMVsQQkYsqH3fiNe+xKk90MtFLKybMVy1YMoEx9/myhqNsztTMmn/lLTkCZa0JOn/y 8UGgzUH34CxT4ZFc4xlcxoFTFf75Yh7qjjBcgw18NzIOM3nwKfQ4UID7jZC+0+jCmkFf t1zy+B1we1oOq98ybkJGRSDg6XlzQDyEgNZiJG1fLR/fWY0+6cKYuERbnAbVYJiBzIbo KS7USHehvufu0YKmfxmkMqDO7r4GZw3HlkrVmeAIYOld93vNVB15Rcla38USWTCvMf0D pWjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RnE4fpLbcTktxDgKOw5o5AykRDw1ELTBr8AeZCuOMxk=; b=KIZFEbg/J8oqU0DeyB0/gOe7aiK3U7coK8kdkFKvUIysgZgBXbi4WfWdVkvmTKC+yb pE73eTKiN0jj1WEqWIbcfUCQbMDZ7Enz8WeVUOozW0Hf+mXSTRF5aEd7oLvPkp+vVHS7 kv6b/xXE3ArqHLtPnkbWUFVjM3LowSKAcX1vTxTxISRVaWtRvCxVNoROdPlSWWe05lF5 iH54BsSZADr564bGhKegDzlAUg+uGx55eeuYhgpYPDPZQoCBQ9NXlglqI6DjVV8F0pmE tmu9a/YMhNRXXXLblxUcTWKa5ehbt2t/1UdGEVV+X8gAx9vRYjE+Akxq9NtwN+R8BVsr vuiw== X-Gm-Message-State: AFqh2kqBDVXOxJltBjH2JJzlmRZOnEagKZ+h5HIoD0xfCGEFQ0fLDjrD vwRkpSq+KwKT4N8qxsil9+zZlQ== X-Received: by 2002:a05:6000:12c2:b0:2bc:5e1:6ff1 with SMTP id l2-20020a05600012c200b002bc05e16ff1mr4842047wrx.10.1673356463750; Tue, 10 Jan 2023 05:14:23 -0800 (PST) Received: from [192.168.0.162] (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id f3-20020adfdb43000000b00236883f2f5csm11400187wrj.94.2023.01.10.05.14.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Jan 2023 05:14:23 -0800 (PST) Message-ID: <88d66834-ca80-888b-e56e-7694e84b6eae@linaro.org> Date: Tue, 10 Jan 2023 13:14:22 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v2 4/7] arm64: dts: qcom: Add msm8939 SoC Content-Language: en-US To: Krzysztof Kozlowski , agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, djakov@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, benl@squareup.com, shawn.guo@linaro.org, fabien.parent@linaro.org, leo.yan@linaro.org, dmitry.baryshkov@linaro.org, Jun Nie , James Willcox , Joseph Gates , Max Chen , Zac Crosby , Vincent Knecht , Stephan Gerhold References: <20230103010904.3201835-1-bryan.odonoghue@linaro.org> <20230103010904.3201835-5-bryan.odonoghue@linaro.org> <6e594438-843a-d03e-5276-d6316a9dc2c0@linaro.org> From: Bryan O'Donoghue In-Reply-To: <6e594438-843a-d03e-5276-d6316a9dc2c0@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/01/2023 09:14, Krzysztof Kozlowski wrote: > ../arch/arm64/boot/dts/qcom/msm8939.dtsi:1825.23-1842.5: Warning > (simple_bus_reg): /soc@0/mmc@7824000: simple-bus unit address format > error, expected "7824900 For the record the driver consuming this dt entry requires the host regs to come first followed by the core sdhc_1: mmc@7824000 { compatible = "qcom,msm8916-sdhci", "qcom,sdhci-msm-v4"; reg = <0x07824900 0x11c>, <0x07824000 0x800>; reg-names = "hc", "core"; } If I change this and the msm8916 to sdhc_1: mmc@7824000 { compatible = "qcom,msm8916-sdhci", "qcom,sdhci-msm-v4"; reg = <0x07824000 0x800>, <0x07824900 0x11c>; reg-names = "core", "hc"; } the warning goes away but then this code won't work as intended anymore. drivers/mmc/host/sdhci-msm.c: msm_host->core_mem = devm_platform_ioremap_resource(pdev, 1); Weirdly when I change the ordering of the registers in the dts the SD seems to work just fine, which is at variance to my reading of the code. Converting the sdhci driver to use the register name, instead of a static ordering of the regs feels like something to be done in a separate series. --- bod