Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp558916rdf; Fri, 3 Nov 2023 08:23:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEj6VsEvHFieGU/EoIwAZ/cqP6QAOu/Q3ScGrtCimbkjAbrfeGFOWVqelydUK6OQfKKdPGD X-Received: by 2002:a05:6a21:7983:b0:181:293f:a78c with SMTP id bh3-20020a056a21798300b00181293fa78cmr9016577pzc.57.1699024984811; Fri, 03 Nov 2023 08:23:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1699024984; cv=pass; d=google.com; s=arc-20160816; b=o5hYcVVNhgN4u4JWTZ6lVZYSBK2iZzRlbw41f9cDqni5MyNpIw1IlRgB1C7e0HQrh/ LrO3XrePadZTijG6RXDAarBJzEhMS7sS5NDFvNCjij6+YD7k6iRDDE4xKgvHXTdnbmKn LhRlAicv7jgwgATon4FgKjMiUet4xfHfbS9Nov8yRtmygGqqh9H+Pd4Lfw0wyEaOkj2+ 0KLItm2kTyrCD5on2LL9SXH52fKhiPfiAvdoJ7zmRlQ/JIiCshtjwGtND+ZUHXHq7wDf rS8PJvY1B5aVRKh4Kz52PCLvaOR7gg8gj79t5qM2lGPDn8OMFkS8fAuEorvoDgu+HAzN N/KQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:subject:user-agent:date :message-id:dkim-signature; bh=8s07GJj0xohj7k67Moqvk1YfVm0rcmdlGXiUQoLNw7M=; fh=zDZOuAWScPSqxKSVY2PfDPA3K4Sz9tWeZoHbR0aDu+A=; b=w6P5e6lZfaHa3pti2zzDErC+xR68oWK/EfZl0UXAW3IwFcKqarD7SUc/wg6GPKwre8 QXkeBDaT04oL6c3GWZ/T3o5uaV57+i9QNNzbCzDZBi6PVuTvu/harrdW95YktpcYlGdZ OT66hzHTBcTZ8dyFnzrIy095J7lPhOuZKrJlRYeuchil/dvaInUtOlZ8xhMYMDyXZ5tC +n/clfJ4oH/Onfl3Ll3AiH5E7hlWg23j89dONqNgSoS5n55R0KUc0rEjIEgOYMx4bxZY PzeiMkw4/5f8nAWVjeXxtv/MFTTMqx/z77EEQZnPWkhZDajXdgAkgSs9IkeqKvB1gakr 8OtA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=MBS0mHDa; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id y12-20020a056a00180c00b006b7560385efsi1706868pfa.203.2023.11.03.08.23.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 08:23:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=MBS0mHDa; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 5332A81EE2C7; Fri, 3 Nov 2023 08:23:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233860AbjKCPWy (ORCPT + 99 others); Fri, 3 Nov 2023 11:22:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbjKCPWx (ORCPT ); Fri, 3 Nov 2023 11:22:53 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01olkn2074.outbound.protection.outlook.com [40.92.52.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCE411B2; Fri, 3 Nov 2023 08:22:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a9Nl2TRMYSCcrhdMi0sTG6f4C7t5qh8+V8RuaGOVqlD7UMuvBXFIrqypk0lGufXotr3cbQfZrJLc7y6KqttB70VzW+VKP3ZJaINvoLrMToFSSaEket3kXjHaJAWS9vuaJijcJQbZ5eqjMqADg0zprJlb21FdTMZ0EYIkzVp/nx68H/b3KEOjC7ekTfYXGJK3A6+UzEinjKitvbX7nKQ0k/qBy9xHD098zEAf3Bo7h2/rp3rv7wKujok6xwgzKkOaVYX/kt7rG9njD6e0jlkV5yTWKxrq0Lzn4RYHtAtbdLKXwQoJBS+VGTWTypudjMJnf04xGSmfV+fimC4okZ8VZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8s07GJj0xohj7k67Moqvk1YfVm0rcmdlGXiUQoLNw7M=; b=C65jLIHAfvkmu1cG/xi1Qkmk0klt53DcLjVy89HUMlj2bPUvCfB9S6kJi01TUdAPmrOLpVTd1eF8uA/X4ECRxUHOR2D4UtrFWk+F2zDo8oHOBEiEdflt3BiZrrusEK8P9Wqp0NjmVYvxrvOjqNHD1FQyfUwvZLlFZWp7rl/bAIMYyPlDN9LagwD0tO/k9uBqtUcVnsYLLWgIe0AYwCVX5QuGd9B0VgHienBMOqnmgYs1y6n8MNN/10Uw2i0VykVwaK7zHeCmEhJ1Pgl8gGd5DhC1Qh6ny0VwPDKqGrTbnTFCa3FokU/ireiBibUlJeeHFPTu87llygCX6ccD4sE9KA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8s07GJj0xohj7k67Moqvk1YfVm0rcmdlGXiUQoLNw7M=; b=MBS0mHDauB0fgAxhaRCtZGutcxeF1bulP8aEFu4XXk4+rMtG5c8MwUgiEbYd3kwRulAqoWSLeWDgmm4NQn0aPvxrxGodB9qDyYLOkngIiGXYvTdcjbUelVAUD+mcjUeMLpDY4CYA8T57u/ulWKjmnc1oNP7rn5RwH0fNUFT8ldRSFjATZ4Qk1/0xhwrDG+lWvJeVFwHmOuE3yqdUkG/9DPMJJefnKgpn/njD5TMi9SFeCxP1tTvORreOujQuHz1ISli0Q2JJ5sE/4ZCy8r3W60kEXmOEAzPvX3U1GVFaHFEbSGCHi7IfrMH9AI1Yo10St3InUaXzR2hd6Q2lMm1R4Q== Received: from TYZPR01MB5556.apcprd01.prod.exchangelabs.com (2603:1096:400:363::9) by SI2PR01MB4300.apcprd01.prod.exchangelabs.com (2603:1096:4:1af::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.21; Fri, 3 Nov 2023 15:22:45 +0000 Received: from TYZPR01MB5556.apcprd01.prod.exchangelabs.com ([fe80::d870:7910:448d:fb6d]) by TYZPR01MB5556.apcprd01.prod.exchangelabs.com ([fe80::d870:7910:448d:fb6d%6]) with mapi id 15.20.6954.024; Fri, 3 Nov 2023 15:22:45 +0000 Message-ID: Date: Fri, 3 Nov 2023 23:22:39 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v2] mmc: meson-mx-sdhc: Fix initialization frozen issue To: Ulf Hansson Cc: neil.armstrong@linaro.org, khilman@baylibre.com, jbrunet@baylibre.com, martin.blumenstingl@googlemail.com, yinxin_1989@aliyun.com, regressions@leemhuis.info, briannorris@chromium.org, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Anand Moon References: From: Ziyang Huang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TMN: [OGBCUR1kPoODALTAZI1HKLlO3Bz9MvLm] X-ClientProxiedBy: TYCP286CA0072.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:31a::20) To TYZPR01MB5556.apcprd01.prod.exchangelabs.com (2603:1096:400:363::9) X-Microsoft-Original-Message-ID: <67a9127b-0e69-f528-44bd-307436320008@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR01MB5556:EE_|SI2PR01MB4300:EE_ X-MS-Office365-Filtering-Correlation-Id: e47a38cf-3064-4de2-96de-08dbdc80bab2 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jYbBJaqiytFpei9rd8/7KxbcuevHBpDYWsC508gufjUtXJoL8sB6R6UCcN5PhBwaFP5aQYFHxkImlZhtZf0dSXDYAs1077Sc+561es+kgBqHDZYIUZxtLpA0tpDaRiIqJMwP2jn4UuadFyAZ0I0WTiDow+E7uOanPgRiR9wySgZppI5FZvMNAbe6bNdKA28iH8Ght3l6KCa6jP8ZDWc5PIt87FmkmlfvVA/uvyo6boOTxGf3WFbRszbKixkeDurXybqeHKEXGWmrGYCji0dJ/tNvpZc9yo5my3YpS6P3vr1qllkiqzuXGxsbd6lEhw5IdEzmlPcMvSyl0nZmxTRctmwd5aUd2kfvbKGkeFjkJ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eXdON1RlQkFpMkxkeFRt?= =?utf-8?B?NEZUM0VOOUZ4OG9ncGJrTXJuQVFQM3Q3d2pTd2JieURnZi9ZR3poZ2w4QTNT?= =?utf-8?B?RTFDZDEySXAwNTVjdVZDWTczL2tQVFE9PQ==?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e47a38cf-3064-4de2-96de-08dbdc80bab2 X-MS-Exchange-CrossTenant-AuthSource: TYZPR01MB5556.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2023 15:22:45.0912 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR01MB4300 X-Spam-Status: No, score=-3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FORGED_MUA_MOZILLA,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 03 Nov 2023 08:23:02 -0700 (PDT) 在 2023/11/3 19:15, Ulf Hansson 写道: > + Anand > > On Tue, 10 Oct 2023 at 18:44, Ziyang Huang wrote: >> >> Commit 4bc31edebde5 ("mmc: core: Set HS clock speed before sending >> HS CMD13") set HS clock (52MHz) before switching to HS mode. For this >> freq, FCLK_DIV5 will be selected and div value is 10 (reg value is 9). >> Then we set rx_clk_phase to 11 or 15 which is out of range and make >> hardware frozen. After we send command request, no irq will be >> interrupted and the mmc driver will keep to wait for request finished, >> even durning rebooting. >> >> So let's set it to Phase 90 which should work in most cases. Then let >> meson_mx_sdhc_execute_tuning() to find the accurate value for data >> transfer. >> >> If this doesn't work, maybe need to define a factor in dts. >> >> Fixes: e4bf1b0970ef ("mmc: host: meson-mx-sdhc: new driver for the Amlogic Meson SDHC host") >> Signed-off-by: Ziyang Huang > > Let's give this a try! Although, rather than queuing it as a fix for > v6.7, I am picking it for v6.8 and adding a stable tag, this should > allow it to become a bit more tested first. > > Kind regards > Uffe > > Yes, I think any fixes better than now since it's broken and can't work.