Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp408489pxu; Tue, 1 Dec 2020 14:31:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwARU/e9BuNcfJvdnt0/KSKREuc26NNiCAJH69EWBteD2nZHtoLD0CoDFkHoki436btYyp9 X-Received: by 2002:a17:906:2582:: with SMTP id m2mr5139783ejb.271.1606861900302; Tue, 01 Dec 2020 14:31:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606861900; cv=none; d=google.com; s=arc-20160816; b=xPgP+cwSNCFWa1PsKHReFMl31J4CrrU85jjU1bFrjggUvtA/6252XgZWUkRHXLb9Be kpwILL/7mBKI0h5njKdo9ehXqC3sHqDqMs54EtCpux2vDsFV6KvqsFVYacpo7Os++6vC uuRwFmOuh7z6OqS+xtaesbMroXJ9wxDqKt7LheOJzLxn+ARWI4oGTj62Mbsa5LR97QoV DJLAManykpMTOXusqgILQrrH4TOBzxRzeU8hnouEFUSaHSm++BHBQQRJwStORAQ0Xifj U//g4xO8oj1k5q9JnXSugP+c+1qJ1KRGK4Tg4kNOzNPHOlNfTIOGWrAJMKLwYhoxVR0w rRKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=NKG6AkUy3eFmcBOtrblcOS8SlZUpDQUCP43qML3AjQk=; b=MKB6wmPpbTo/FiOP3s4bRVFg5AuxLCiJuVGe21hXva69TejtAhBo7pZozEY2Y8H55w HXvPsWAid3dXnxEwwxWOafNG0bw7G5Yvl+iGSRqg/8JTQb/GETuURYgUyKH+tSwTHI9Z /sn2NgQyKugWgGLblBPgw4tG9cdGc8DmhHtS2LIP7YsVVDPCGq85lH7mZzGq1z2dHSbB qXJxzV3Mk809OPNWL8Ugozkz8mw1PA7jfuqyr9vFvI8BGXVtJcY+tOl5WPl65bqqOWpp LjIM7rPu5IUhhDGGgFOUqYU7ggf+EdcHmt1kSPjYulQhBzFGMY9xWkhSfxlfN7JqoZqZ d9gQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n25si797823edy.231.2020.12.01.14.31.17; Tue, 01 Dec 2020 14:31:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389915AbgLAJVN (ORCPT + 99 others); Tue, 1 Dec 2020 04:21:13 -0500 Received: from server-x.ipv4.hkg02.ds.network ([27.111.83.178]:39890 "EHLO mail.gtsys.com.hk" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1729287AbgLAJJl (ORCPT ); Tue, 1 Dec 2020 04:09:41 -0500 X-Greylist: delayed 542 seconds by postgrey-1.27 at vger.kernel.org; Tue, 01 Dec 2020 04:09:41 EST Received: from localhost (localhost [127.0.0.1]) by mail.gtsys.com.hk (Postfix) with ESMTP id 09D65200E20A; Tue, 1 Dec 2020 16:59:35 +0800 (HKT) X-Virus-Scanned: Debian amavisd-new at gtsys.com.hk Received: from mail.gtsys.com.hk ([127.0.0.1]) by localhost (mail.gtsys.com.hk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6Fl7dA4AyUbw; Tue, 1 Dec 2020 16:59:34 +0800 (HKT) Received: from s01.gtsys.com.hk (unknown [10.128.4.2]) by mail.gtsys.com.hk (Postfix) with ESMTP id D8F2A200E233; Tue, 1 Dec 2020 16:59:34 +0800 (HKT) Received: from [10.128.2.32] (unknown [124.217.188.227]) by s01.gtsys.com.hk (Postfix) with ESMTPSA id 653CEC019E2; Tue, 1 Dec 2020 16:59:34 +0800 (HKT) Subject: Re: [PATCH] mmc: core: MMC_CAP2_HS200_1_8V_SDR with mmc-hs400-1_8v To: Avri Altman Cc: Ulf Hansson , =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , "Gustavo A. R. Silva" , Yoshihiro Shimoda , Veerabhadrarao Badiganti , Matthias Schiffer , Chris Ball , Seungwon Jeon , "linux-mmc@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20201127044044.1127-1-chris.ruehl@gtsys.com.hk> From: Chris Ruehl Message-ID: <788655aa-ac05-54c4-a5ee-d2b08f464d66@gtsys.com.hk> Date: Tue, 1 Dec 2020 16:59:33 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=iso-8859-2; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I have to callback my patch, The mmc.c logic needs the MMC_CAP2_HS200_1_8V_SDR in the current implementation. If I want to precise use mmc-hs400-1_8v or mmc-hs200-1_8v have their explicit code-path its needs a bigger effort. On it. @Avri Altman , I have to reject your ACK. :) Chris On 29/11/2020 8:28 pm, Avri Altman wrote: > >> This patch remove the MMC_CAP2_HS200_1_8V_SDR capacity from >> host->cap2 when the dt property mmc-hs400-1v8 set. It cause >> error and occasionally hang on boot and reboot. >> Board with this issue: rk3399 with SanDisk DG4008 eMMC. >> >> This patch did not change the mmc-hs400-1_2v host->cap2 >> added the MMC_CAP2_HS200_1_2V_SDR. >> >> Log shows a boot process with a HS400 5.1 capable SanDisk 8G >> with mmc-hs400-1_8v dt property and the MMC_CAP2_HS200_1_8V_SDR >> append to the host->cap2. >> >> [ 1.775721] mmc1: CQHCI version 5.10 >> [ 1.802342] mmc1: SDHCI controller on fe330000.sdhci [fe330000.sdhci] >> using ADMA >> [ 2.007581] mmc1: mmc_select_hs200 failed, error -110 >> [ 2.007589] mmc1: error -110 whilst initialising MMC card >> [ 2.413559] mmc1: mmc_select_hs200 failed, error -110 >> [ 2.413562] mmc1: error -110 whilst initialising MMC card >> [ 3.183343] mmc1: Command Queue Engine enabled >> [ 3.183355] mmc1: new HS400 MMC card at address 0001 >> [ 3.197163] mmcblk1: mmc1:0001 DG4008 7.28 GiB >> [ 3.197256] mmcblk1boot0: mmc1:0001 DG4008 partition 1 4.00 MiB >> [ 3.197360] mmcblk1boot1: mmc1:0001 DG4008 partition 2 4.00 MiB >> [ 3.197479] mmcblk1rpmb: mmc1:0001 DG4008 partition 3 4.00 MiB, chardev >> (242:0) >> >> after patch applied >> [ 1.746691] mmc1: CQHCI version 5.10 >> [ 1.773316] mmc1: SDHCI controller on fe330000.sdhci [fe330000.sdhci] >> using ADMA >> [ 1.858410] mmc1: Command Queue Engine enabled >> [ 1.858418] mmc1: new HS400 MMC card at address 0001 >> [ 1.858897] mmcblk1: mmc1:0001 DG4008 7.28 GiB >> [ 1.859002] mmcblk1boot0: mmc1:0001 DG4008 partition 1 4.00 MiB >> [ 1.859097] mmcblk1boot1: mmc1:0001 DG4008 partition 2 4.00 MiB >> [ 1.859182] mmcblk1rpmb: mmc1:0001 DG4008 partition 3 4.00 MiB, chardev >> (242:0) >> >> Fixes: c373eb489b27b mmc: core: add DT bindings for eMMC HS400 1.8/1.2V >> >> Signed-off-by: Chris Ruehl > Acked-by: Avri Altman > -- GTSYS Limited RFID Technology 9/F, Unit E, R07, Kwai Shing Industrial Building Phase 2, 42-46 Tai Lin Pai Road, Kwai Chung, N.T., Hong Kong Tel (852) 9079 9521 Disclaimer: https://www.gtsys.com.hk/email/classified.html