Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp462128rdh; Tue, 19 Dec 2023 04:29:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IGO+vzduIKNSMfDhKf39liJBVZSPYByXJVqPBVYr4qtye3Bo8gsaqNba0aQvnPJSqPDq4MR X-Received: by 2002:a17:906:2890:b0:a23:7190:86fb with SMTP id o16-20020a170906289000b00a23719086fbmr1294514ejd.8.1702988988338; Tue, 19 Dec 2023 04:29:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702988988; cv=none; d=google.com; s=arc-20160816; b=dTmZN0MSkk9J+aNtnP1+1SdaizCEYMimOP7VnuSj7GkXy5LEFXqjaLokhwM7lLSKqi JZ5wWEon9pbzDJv+xh9MEb8aLHIUfLGNEm18iatuMtVA60fPZ2XoofWKR/UacQ+xG/Yt clveycoVr6Rn9mI8t4zymEfnKTl7huxRozvlZs7+SyiG3KbS69V3jTeIK7QlgG+FhpsO rTJMswHcrfGYGUViRbVaC9Yo5MTmWLzWeJJ6QkUjRwwcAYZIU0s1Nr2oxvZXve0HFmQm h4EP7XaqTrZa51r1pXctSjf6ulN2YaIL7BppC7ZLtAf7s90TcaNcCB86/np/5JdP+jfe b27A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:cc:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=wxJCuegR00+qTeucqcxGWtpk2IAIp1Qkyb7anTpwc00=; fh=vG6B4eu3E5PamfluXBS5fWImy/mZ/jlD4gDiQp7KPuo=; b=Sxs2u+e4eQp1Kk7RN1Zlw1Nlj5hXZD0l8WdQ6WDIopSeTd6ORY57l8TKClCHxiBem5 loyeyelJ35938sxPXSevhR+i0yHYU2DfzxTzLXU7QI+1WGTE9lwdGR2keKe33U+1Mf3f q2SzXLoKiSX9x1bMYmM8k2FTLbsZcXnfqm/+E971RJNmqY+EDgD6MNk7d7jzvbKnzA9m 3QuDbiB5NL30HjWc5d1K1NrRwRLkrHhpzL5h5q+cSIiXEgjyeSW0Ascth9oCYZNbBwjK WS1y42xt2agNhHMxzSnqQnIWwSoNTR+vW53OXMQf2OVY7SSwF1JLFyKwZQgkpa8BATZG TEtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rock-chips.com header.s=default header.b=Vg1fVehV; spf=pass (google.com: domain of linux-kernel+bounces-5168-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5168-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=rock-chips.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lw17-20020a170906bcd100b00a235cd65905si1502784ejb.15.2023.12.19.04.29.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 04:29:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5168-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@rock-chips.com header.s=default header.b=Vg1fVehV; spf=pass (google.com: domain of linux-kernel+bounces-5168-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5168-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=rock-chips.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1B3431F2278A for ; Tue, 19 Dec 2023 12:29:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59C701802A; Tue, 19 Dec 2023 12:29:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com header.b="Vg1fVehV" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-m49238.qiye.163.com (mail-m49238.qiye.163.com [45.254.49.238]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0D7917999; Tue, 19 Dec 2023 12:29:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rock-chips.com DKIM-Signature: a=rsa-sha256; b=Vg1fVehVqgufqVZ0tVxwDfwc+NOpTp13wuBuQ3k4r9nofHqsGcOY/zRQxw00lc90WgNXOWNnHkKl16DXjSfwDu+rvsQ5hLqLmffoyXtDwjtKV0rsvEIWFQdJ5mzGPgTYihEqMl9o4bYRQY72eu1364+NpmeKQlKtFg38lK1F6vU=; c=relaxed/relaxed; s=default; d=rock-chips.com; v=1; bh=wxJCuegR00+qTeucqcxGWtpk2IAIp1Qkyb7anTpwc00=; h=date:mime-version:subject:message-id:from; Received: from [172.16.12.69] (unknown [58.22.7.114]) by mail-m11877.qiye.163.com (Hmail) with ESMTPA id EE7D6400543; Tue, 19 Dec 2023 18:01:23 +0800 (CST) Message-ID: <31198bf2-54c4-4483-ac31-449e5576cff8@rock-chips.com> Date: Tue, 19 Dec 2023 18:01:24 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: shawn.lin@rock-chips.com, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, zhengxing@rock-chips.com, Andy Yan , heiko@sntech.de Subject: Re: [PATCH v2 3/3] ARM: dts: rockchip: Remove rockchip,default-sample-phase from rk3036.dtsi Content-Language: en-GB To: Andy Yan References: <20231218105523.2478315-1-andyshrk@163.com> <20231218105523.2478315-4-andyshrk@163.com> From: Shawn Lin In-Reply-To: <20231218105523.2478315-4-andyshrk@163.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFDSUNOT01LS0k3V1ktWUFJV1kPCRoVCBIfWUFZQkwdSFYdTxgfGhkZSRhJSB5VEwETFh oSFyQUDg9ZV1kYEgtZQVlOQ1VJSVVMVUpKT1lXWRYaDxIVHRRZQVlPS0hVSk1PSU5JVUpLS1VKQl kG X-HM-Tid: 0a8c8185e2342eb3kusnee7d6400543 X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MS46Ejo*TTw4Ny48CC9PCQMp DEoKFDVVSlVKTEtJQkNLS0NPQ0lNVTMWGhIXVQgTGgwVVRcSFTsJFBgQVhgTEgsIVRgUFkVZV1kS C1lBWU5DVUlJVUxVSkpPWVdZCAFZQUhNQko3Bg++ On 2023/12/18 18:55, Andy Yan wrote: > From: Andy Yan > > This should be a per board property, should not be put in > a soc core dtsi. > > And when this property convert from default-sample-phase > in linux-5.7 by commit 8a385eb57296 ("ARM: dts: rockchip: fix > rockchip,default-sample-phase property names"), the emmc > on rk3036 kylin board get a initialising error: > > [ 4.512797] Freeing unused kernel memory: 8192K > [ 4.519500] mmc_host mmc1: Bus speed (slot 0) = 37125000Hz (slot req 37500000Hz, actual 37125000HZ div = 0) > [ 4.530971] mmc1: error -84 whilst initialising MMC card > [ 4.537277] Run /init as init process > [ 4.550932] mmc_host mmc1: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0) > [ 4.664717] mmc_host mmc1: Bus speed (slot 0) = 37125000Hz (slot req 37500000Hz, actual 37125000HZ div = 0) > [ 4.676156] mmc1: error -84 whilst initialising MMC card > > I think the reason why the emmc on rk3036 kylin board was able > to work before linux-5.7 was that the illegal property was not > correctly identified by the rockchip dw_mmc driver. > > Fixes: faea098e1808 ("ARM: dts: rockchip: add core rk3036 dtsi") > Signed-off-by: Andy Yan > --- > Reviewed-by: Shawn Lin > (no changes since v1) > > arch/arm/boot/dts/rockchip/rk3036.dtsi | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/arm/boot/dts/rockchip/rk3036.dtsi b/arch/arm/boot/dts/rockchip/rk3036.dtsi > index 5344803442a1..466952bf9db4 100644 > --- a/arch/arm/boot/dts/rockchip/rk3036.dtsi > +++ b/arch/arm/boot/dts/rockchip/rk3036.dtsi > @@ -287,7 +287,6 @@ emmc: mmc@1021c000 { > clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>, > <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>; > clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; > - rockchip,default-sample-phase = <158>; > disable-wp; > dmas = <&pdma 12>; > dma-names = "rx-tx";