From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 32BA4C52D7F for ; Fri, 16 Aug 2024 00:43:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:Cc:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=u2bY45nOuxIO29yl3xiZLYWOFNM2Z13NxlwmREOfWz8=; b=XVmmLoLEqvgnlyaTd/Y089JtzH I8YQwBA7X08Ecd4gY78QIUwPA0P4Eihx62KZATXmqPtDMmWgIrpHahJ3nzqTn5xAshHzhlReNSp30 meaqpcMid5UN6jJ69ydWh7See3/EfbpNb7pOKPzi6TE5MqyxhODRClS7iV/HGAzMhZNQYZX7w6fHI ZJ0h1i6CS33Euptc9LICudzmIdObxRznIt2P+oR742YTYB0xMtYDlCAtNGUor8HgexLVy9I0b7ksJ gN58poJRSxMFPkQG/+afD2D3HbgHVYPgJMlqg1cz8BHcC/YqEyxOMyWePs2V4kGDARC8iB4HLzQqM Fo7Nn7ew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sel3f-0000000BPHL-1Klz; Fri, 16 Aug 2024 00:43:11 +0000 Received: from mail-m243.xmail.ntesmail.com ([45.195.24.3]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sel2z-0000000BPEO-3vvw; Fri, 16 Aug 2024 00:42:32 +0000 DKIM-Signature: a=rsa-sha256; b=GkzPlGexYR9mpFJHzYzoQkPk0Qui3j39k078hHjhz3E2/FF8QFws9/w9CFsYwMj+L1D5FtMQQMaU03vbG16Dyz3Ottual4Ym9JDQa4CommpbGI+/l6hYDRl0GtZrRCgntsPXyBs2cuHCuu8iEjR1d2qVpNzlNTAFYc4G7iDJl44=; s=default; c=relaxed/relaxed; d=rock-chips.com; v=1; bh=u2bY45nOuxIO29yl3xiZLYWOFNM2Z13NxlwmREOfWz8=; h=date:mime-version:subject:message-id:from; Received: from [172.16.12.45] (unknown [58.22.7.114]) by smtp.qiye.163.com (Hmail) with ESMTPA id 5EE434601F5; Fri, 16 Aug 2024 08:41:59 +0800 (CST) Message-ID: <87304544-b223-4825-86a3-d0fd9eff0afe@rock-chips.com> Date: Fri, 16 Aug 2024 08:41:59 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: shawn.lin@rock-chips.com, Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaehoon Chung , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, kernel@collabora.com Subject: Re: [PATCH v3 2/3] mmc: dw_mmc-rockchip: Add v2 tuning support To: =?UTF-8?Q?Heiko_St=C3=BCbner?= , Detlev Casanova , linux-kernel@vger.kernel.org References: <20240814223555.3695-1-detlev.casanova@collabora.com> <20240814223555.3695-3-detlev.casanova@collabora.com> <5dc82aa2-82a0-4778-b598-88775d5f791c@rock-chips.com> <18146801.MNNF8PUAaN@diego> Content-Language: en-GB From: Shawn Lin In-Reply-To: <18146801.MNNF8PUAaN@diego> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFDSUNOT01LS0k3V1ktWUFJV1kPCRoVCBIfWUFZGUpMSlZMSU9DQx4eTRlNTh9WFRQJFh oXVRMBExYaEhckFA4PWVdZGBILWUFZTkNVSUlVTFVKSk9ZV1kWGg8SFR0UWUFZT0tIVUpLSU9PT0 hVSktLVUpCS0tZBg++ X-HM-Tid: 0a9158a258f203aekunm5ee434601f5 X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NBQ6Hjo4AjIwKDorGDZMARYS LzFPCUtVSlVKTElITE1DQklLTEJIVTMWGhIXVQgTGgwVVRcSFTsJFBgQVhgTEgsIVRgUFkVZV1kS C1lBWU5DVUlJVUxVSkpPWVdZCAFZQU9KSEI3Bg++ X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240815_174230_491330_E09CD990 X-CRM114-Status: GOOD ( 18.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Heiko, 在 2024/8/15 21:17, Heiko Stübner 写道: > Am Donnerstag, 15. August 2024, 02:55:37 CEST schrieb Shawn Lin: >> Hi Detlev >> >> 在 2024/8/15 6:34, Detlev Casanova 写道: >>> From: Shawn Lin >>> >>> v2 tuning will inherit pre-stage loader's phase settings for the first >>> time, and do re-tune if necessary. >>> Re-tune will still try the rough degrees, for instance, 90, 180, 270, >>> 360 but continue to do the fine tuning if sample window isn't good >>> enough. >>> >>> Signed-off-by: Shawn Lin >>> Signed-off-by: Detlev Casanova > >>> @@ -277,6 +322,10 @@ static int dw_mci_rk3288_parse_dt(struct dw_mci *host) >>> &priv->default_sample_phase)) >>> priv->default_sample_phase = 0; >>> >>> + priv->use_v2_tuning = >>> + of_device_is_compatible(host->dev->of_node, >>> + "rockchip,rk3576-dw-mshc"); >>> + >> >> v2 is a kind of software decision instead of hardware dependency. >> So in theory, any SoC can claim to use it via DT. > > which actually makes it unsuitable for dt. > Understood. > Devicetree describes hardware-properties and should _not_ be used for > software configuration. > > From the comment above, I assume the rk3576 does not need that feature > and can just work with the regular tuning? Yep, your are right. > > So there are two routes for the immediate future: > (1) rk3576 _needs_ that feature, then going with the compatible is fine > > (2) rk3576 does not need absolutely need that feature, then I'd expect > the basic rk3576 to first come without, as I'd expect a lot more explanation > on why it is actually needed, and which cases it does improve. > The commit message does not really explain that much about why this > is a great/needed feature and which areas it does improve. > Vote for the 2nd. rk3576 just need [PATCH v3 3/3] mmc: dw_mmc-rockchip: Add internal phase support > > Heiko > >