Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp823535qtx; Mon, 31 Oct 2022 15:00:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Q3Et6LYRoTDMiDk18BnkmuE6rQc7+Zz2CpxREhyfkt/j2WTFz7JewoZHnPeI5OrYMh4R9 X-Received: by 2002:a17:906:8a6c:b0:7a8:2f09:d88d with SMTP id hy12-20020a1709068a6c00b007a82f09d88dmr14823856ejc.49.1667253613578; Mon, 31 Oct 2022 15:00:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667253613; cv=none; d=google.com; s=arc-20160816; b=FnezUoZES48Cyrz+YpxQiQrR00mg7GuaZlAkA4Agcmgf377Bm3qoVfTU5BLTi4Mtjm cK73Js3qdpNuI6JR7YMSXsUBpn0tmIOBCL8397X/exBbGyd7yhZCLDM2sS8fRxT85qUG r8zAAw60om9OT/fs6DkpbbWnY/qdKsohFwv2K7JUJB3dgwNoGjOpupguycxuY0pHIkZv fbGROY4Wo7gneH3dsL2b7Bh/mnVbgtjht8DzeOGfwvlhphas9rpyUw2E4dJVfCq737XA kzEtW6Ld6IahMldGybTs6MGQNVPM9/DY7ckya6NvTZ1sQaRCP6X8uWcjiuQHEVj1Fe7c G5YQ== 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; bh=yAvP/2cHydh3qT/vvFbHOpB3TWitx9PemQGGo1kf8F4=; b=kAxtlmnPUPlphle9qnyu7FYyqOXBAPkup3xazm7Ra3OBhc+IkPJbELSlb0jORnupYC XxrJnXXVGAWHx5M7988A62JWiiCuIC2Lqd8EeXH1czWuZhIcbL07LlMy4JTu669JKxOQ ojqlLGEgecPU3V7d8Rkv/Dee67uhv6Khbvf4SD6fSgN9QB3OeGsGI8CnyAY5d/KW2WL0 //gIjxR2z5ezFCPzpj7Sd7LyMVxZxl1qLCLofOAHW7bIOdkkDsCmoazRx0XpkH0mgV5R agFEKQ0VrM5TUgoDXZw+I4ixprwCMDY0aQyqj69J1de4r//lI9DbMaXQv0o5O507Rf/L 0jGg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp41-20020a1709073e2900b0078db517075fsi8514931ejc.659.2022.10.31.14.59.48; Mon, 31 Oct 2022 15:00:13 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230150AbiJaVMP (ORCPT + 98 others); Mon, 31 Oct 2022 17:12:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229874AbiJaVMM (ORCPT ); Mon, 31 Oct 2022 17:12:12 -0400 Received: from relay05.th.seeweb.it (relay05.th.seeweb.it [IPv6:2001:4b7a:2000:18::166]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DCE91402D; Mon, 31 Oct 2022 14:12:11 -0700 (PDT) Received: from [192.168.1.101] (95.49.29.156.neoplus.adsl.tpnet.pl [95.49.29.156]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id DA59E3EBDD; Mon, 31 Oct 2022 22:12:08 +0100 (CET) Message-ID: Date: Mon, 31 Oct 2022 22:12:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH 01/10] arm64: dts: qcom: sm6350: Add resets for SDHCI 1/2 Content-Language: en-US To: Marijn Suijten , phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Martin Botka , Jami Kettunen , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Luca Weiss , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221030073232.22726-1-marijn.suijten@somainline.org> <20221030073232.22726-2-marijn.suijten@somainline.org> From: Konrad Dybcio In-Reply-To: <20221030073232.22726-2-marijn.suijten@somainline.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 30.10.2022 08:32, Marijn Suijten wrote: > Make sure the SDHCI hardware is properly reset before interacting with > it, to protect against any possibly indeterminate state left by the > bootloader. > > Suggested-by: Konrad Dybcio > Signed-off-by: Marijn Suijten > --- Reviewed-by: Konrad Dybcio Konrad > arch/arm64/boot/dts/qcom/sm6350.dtsi | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi > index c39de7d3ace0..a3ae765d9781 100644 > --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi > @@ -490,6 +490,7 @@ sdhc_1: mmc@7c4000 { > <&gcc GCC_SDCC1_APPS_CLK>, > <&rpmhcc RPMH_CXO_CLK>; > clock-names = "iface", "core", "xo"; > + resets = <&gcc GCC_SDCC1_BCR>; > qcom,dll-config = <0x000f642c>; > qcom,ddr-config = <0x80040868>; > power-domains = <&rpmhpd SM6350_CX>; > @@ -1068,6 +1069,7 @@ sdhc_2: mmc@8804000 { > <&gcc GCC_SDCC2_APPS_CLK>, > <&rpmhcc RPMH_CXO_CLK>; > clock-names = "iface", "core", "xo"; > + resets = <&gcc GCC_SDCC2_BCR>; > interconnects = <&aggre2_noc MASTER_SDCC_2 0 &clk_virt SLAVE_EBI_CH0 0>, > <&gem_noc MASTER_AMPSS_M0 0 &config_noc SLAVE_SDCC_2 0>; > interconnect-names = "sdhc-ddr", "cpu-sdhc";