Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp1464019rwj; Sun, 30 Oct 2022 00:53:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4DMk7o7PplGIHHNuBoOtEGVdJFLjm1RZpVmEynKEKFAgVyX1H2bG0P3E96lGkxG1WU4qna X-Received: by 2002:a05:6a00:2409:b0:54e:a3ad:d32d with SMTP id z9-20020a056a00240900b0054ea3add32dmr7953661pfh.70.1667116409892; Sun, 30 Oct 2022 00:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667116409; cv=none; d=google.com; s=arc-20160816; b=HbLSnGlViQAlmMoD9BMKgwwzU7xM37wcRqsKF/knbRrcLQvUSsoJFo/MihjzVclgT5 M0leL/0IL0pEBwjGW3Dw+gcLI3zdvPGCdroc1DqxZU26XkrgCW48qsdkAlyHBu4iHSNH E92QbDBaqO+nD5RPE1e6DatYijcSUpeVzlCobAR7g4UYXIXDnvTSF0OwaUlEvBKlNKxZ jS9KiJTvfLxQXiZ3u1Us7FxUcmP8nynhg2Qw5ASDUI2YzTZsGmTrycyMYo3eKSHi50s/ GoeGGQLByiHSYIdjU89Wq2T6h7m3VnHnEPn1npMBs1CXsa8uc1WwbDKwcvRXCT+WIees H1iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=XghxjIu37G0QdslXOBzmfOXdpqR7HlcYw6n/7d5tT/8=; b=lgaul4HdqQQiujd+i2RM4r4h8XzbNM7OPklW1lVmSH/XETO3OSkq2wMynmYCwwkrzR m7rVD81R4H8U1/aSQ1emPq70M7lvQrgC6Vx/BfeU0pKVOEJqo0lwYqDrbE6CYZL2pDee JoeqRnC6AWaCXXs/Sq3vqbeitNiHeA2MjjosMo8/AQXKOpcfL1QD+NiHkvcmVW5O+fIh foK3Fi0OoO5zyIRC9aiNmp8Zr5fcu76VBXgEDhjf5+P4I1s/DYe1WPUVogo0lMy6FS/A Zmaoifv10IHPUXM/IJ1vPnmtQoGJY8FmRjELR0Y/rkoM5a2fjRPdjS5w6sX203hBkZJU AMvg== 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 b7-20020a170902b60700b0018554535de8si4321616pls.83.2022.10.30.00.53.17; Sun, 30 Oct 2022 00:53:29 -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 S230003AbiJ3Hcy (ORCPT + 99 others); Sun, 30 Oct 2022 03:32:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229728AbiJ3Hcs (ORCPT ); Sun, 30 Oct 2022 03:32:48 -0400 Received: from relay04.th.seeweb.it (relay04.th.seeweb.it [IPv6:2001:4b7a:2000:18::165]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2583F301; Sun, 30 Oct 2022 00:32:44 -0700 (PDT) Received: from localhost.localdomain (94-209-172-39.cable.dynamic.v4.ziggo.nl [94.209.172.39]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 240B41F948; Sun, 30 Oct 2022 08:32:42 +0100 (CET) From: Marijn Suijten To: phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Marijn Suijten , 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 Subject: [PATCH 01/10] arm64: dts: qcom: sm6350: Add resets for SDHCI 1/2 Date: Sun, 30 Oct 2022 08:32:23 +0100 Message-Id: <20221030073232.22726-2-marijn.suijten@somainline.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221030073232.22726-1-marijn.suijten@somainline.org> References: <20221030073232.22726-1-marijn.suijten@somainline.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 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 --- 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"; -- 2.38.1