Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2248862pxm; Fri, 4 Mar 2022 12:17:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8ZedMBmOXQBQGWc1H8Q9AMDqlM9dD4n+ftcJ8nWnJFVdqDSlivCHtCjBPjjphGHvlCyI3 X-Received: by 2002:a17:902:e882:b0:151:a56d:eb7b with SMTP id w2-20020a170902e88200b00151a56deb7bmr74897plg.154.1646425065952; Fri, 04 Mar 2022 12:17:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646425065; cv=none; d=google.com; s=arc-20160816; b=eQhPbDcc5nv9A/7Lj9KXkHNq4iwqcLAgmOv1ZZAr3BG/bZYv16hxa8IpjjIAyE0cx7 iNgZZfkHrqbsuN3+HGzGzkOGYrQv/lJ4JyD3pxMwsvvBEAAJ9XMC6rLpLUJaC8GtXAgy uBdp+EIKZEDkblQ7kP9P345+hkLz1U3BPfS+4NgdTOxIpOBCu1/lHUzLfJeSVz2zbN0b e8jKO5nYZOonUjWsgBAKRwOt/e86Ki2v6OdzUKHQZqaQe8oWN/hU7bC7beJBKORQeBOy VpCY/TDN02sErdqoCqixjmAe11QRX+jOBx/wiHUciQQPj884hmIs/+C5x1dgOcxaj7Fh bL9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=1bvjDaZxvlxoSbDQ72OoKDAUOk0VzRpJOK2f/Cl8NJg=; b=gmgDtNXVnbsSvdoMZtgsdx4h2UiAQ0+o+BQ4NCMfhPo6aTa5WMVKAc/Oj1dpKSc9pe isZVA9q3l7JJXHqxl3IgEcLitKqYaN+I9FGFJ4SkK7r5MOYkTTKzME41GnsCUivgiNwh CMH2Te8gBPYt/HWcTRPfh72ecMsSqA8NBV7RIfiMYVyXt8L6wRgU2Gyn/G96zE8Oq26I F2OG/mqeGzqKqsEggc1P1ZIkeKKd1JLxPC2GFNrvwm2byeiaoXeskfcYWkzIUUEDmsOr KWv0zEquwAxkE/q9KKQ4DyVYAqT8zYZv7e+zat8U0q/6KSLIVZu1rNcJTIA3Y53mnVAA u4pg== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j63-20020a638042000000b0037db6832c08si1612890pgd.378.2022.03.04.12.17.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 12:17:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 482DD211EC8; Fri, 4 Mar 2022 11:29:41 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232859AbiCDQGH (ORCPT + 99 others); Fri, 4 Mar 2022 11:06:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231278AbiCDQGG (ORCPT ); Fri, 4 Mar 2022 11:06:06 -0500 Received: from smtp2.math.uni-bielefeld.de (smtp2.math.uni-bielefeld.de [129.70.45.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BD8947387; Fri, 4 Mar 2022 08:05:18 -0800 (PST) Received: from math.uni-bielefeld.de (kvm01.math.uni-bielefeld.de [129.70.45.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by smtp2.math.uni-bielefeld.de (Postfix) with ESMTPSA id 48F3D60179; Fri, 4 Mar 2022 17:05:15 +0100 (CET) Date: Fri, 4 Mar 2022 17:05:14 +0100 From: Jean Rene Dawin To: Ulf Hansson Cc: linux-mmc@vger.kernel.org, "H . Nikolaus Schaller" , Huijin Park , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mmc: core: Restore (almost) the busy polling for MMC_SEND_OP_COND Message-ID: <20220304160513.GA1361@math.uni-bielefeld.de> References: <20220304105656.149281-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220304105656.149281-1-ulf.hansson@linaro.org> User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Ulf Hansson wrote on Fri 4/03/22 11:56: > Commit 76bfc7ccc2fa ("mmc: core: adjust polling interval for CMD1"), > significantly decreased the polling period from ~10-12ms into just a couple > of us. The purpose was to decrease the total time spent in the busy polling > loop, but unfortunate it has lead to problems, that causes eMMC cards to > never gets out busy and thus fails to be initialized. > > To fix the problem, but also to try to keep some of the new improved > behaviour, let's start by using a polling period of 1-2ms, which then > increases for each loop, according to common polling loop in > __mmc_poll_for_busy(). > > Reported-by: Jean Rene Dawin > Reported-by: H. Nikolaus Schaller > Cc: Huijin Park > Fixes: 76bfc7ccc2fa ("mmc: core: adjust polling interval for CMD1") > Signed-off-by: Ulf Hansson > --- > > Jean Rene and H. Nikolaus, if this doesn't work, please try extending the > the MMC_OP_COND_PERIOD_US a bit, to so see if we can find a value that always > works. > > Kind regards > Uffe > > --- > drivers/mmc/core/block.c | 2 +- > drivers/mmc/core/mmc.c | 2 +- > drivers/mmc/core/mmc_ops.c | 13 +++++++++---- > drivers/mmc/core/mmc_ops.h | 3 ++- > drivers/mmc/core/sd.c | 2 +- > 5 files changed, 14 insertions(+), 8 deletions(-) Hi, thanks, this works fine. Regads, Jean Rene Dawin