Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3688579lfo; Mon, 23 May 2022 11:29:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXdRcUMdI651EOw+LHxeBS99Xk0MmAdPNYiy1WhQ0EeIDdNhurzl8wS4/JXDMsq1vZfzGU X-Received: by 2002:a17:90b:3e8b:b0:1e0:582d:fc23 with SMTP id rj11-20020a17090b3e8b00b001e0582dfc23mr323157pjb.228.1653330595274; Mon, 23 May 2022 11:29:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653330595; cv=none; d=google.com; s=arc-20160816; b=Dxxv03ZKabw5QgvU0XKeVCarS0/FfW62EqBHs+h9N8eLsUFar+tWO3TK7vbEDZf904 8viH7SAQiha7+82LzxVAfna2uPfMoGcMMoVt5/TfYorEYSaAver1s3EfoCPybhb9mhyQ Dr1cVBUahv9jiLaxg8KkypJ3rWaeBQki14lyfEQrucSRP7Zbi7AnYsj4/t0GbiSBkL9V ozHdYy2ZP/YLL0S3Qtse0VnngJSbPZnjlwCWPy4uBFuwYdjChU/lRPQQl+tfrYesqsuA VjosPYoF9+1VBy7uWUsGsr8YRo8eC9H1nY7kNUVD0HdUnxqnAeMKS2H8LL/5WRisUBYf HJwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mwrJGJKSoCYnQ4ytDPIMvm7K8uvaJ4ZHR8P/wU7Wp9g=; b=ndHZQSau6VU1z+DUh5MdNo4FS2WB7MVfREAdOxQ5s7AVPcjV1DkxhtqpzDxC7NXuI7 vXIcQvGaoWf6cA6H8RJgoAWxoTgE8aILQLHBtlQm+89i2UoFYDk/Zep7+pvsmdoQt9o5 uUhxsGH8wTtzsFj6a7/aNxFuk6iKlHawomGAGzf8ZS6VifjrGogA8LydwzWLmOfCcfU1 3XsSewHNEoJ1yi76COYeLTC/VIMd7ZKrM8kDsb3fh/8rSbm/t+NN2NohADUKnSR/mdUZ zwGhagVBkF9dXrQdU0r/bwPnP53NqzOaLK+BRcXNXgb8PhIPjNVssmN52BJQA0DZObVF gggA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IBmxYySB; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s9-20020a056a00194900b0050d20bfc382si16666963pfk.194.2022.05.23.11.29.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 11:29:55 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IBmxYySB; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 96B57135685; Mon, 23 May 2022 11:29:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242368AbiEWSAy (ORCPT + 99 others); Mon, 23 May 2022 14:00:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241220AbiEWRcs (ORCPT ); Mon, 23 May 2022 13:32:48 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21E9471DBC; Mon, 23 May 2022 10:27:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 396F4B81202; Mon, 23 May 2022 17:27:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C4F6C385A9; Mon, 23 May 2022 17:27:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653326851; bh=hHwpGVFOCzcAb6kK80DX/WytmbzrJxxdTixdRTHd6co=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IBmxYySBBylRMvYVrBJfwXsD8QWtR6K0K8PXsedc/Vd06yo/IJ/tDnx6UP9M4W2P4 BKABpS+gvXoQa4oMOEhe2OVtfsj32RJKP8lAU/OWRj600jYUuOJ0F7VFJ/Gm7RY430 npwqsbEil49zwQMp98jhJsTXG9wSS/Gaa6GrKe6A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jean Rene Dawin , Ulf Hansson Subject: [PATCH 5.17 061/158] mmc: core: Fix busy polling for MMC_SEND_OP_COND again Date: Mon, 23 May 2022 19:03:38 +0200 Message-Id: <20220523165840.951671796@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220523165830.581652127@linuxfoundation.org> References: <20220523165830.581652127@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ulf Hansson commit e949dee3625e1b0ef2e40d9aa09c2995281b12f6 upstream. It turned out that polling period for MMC_SEND_OP_COND, that currently is set to 1ms, still isn't sufficient. In particular a Micron eMMC on a Beaglebone platform, is reported to sometimes fail to initialize. Additional test, shows that extending the period to 4ms is working fine, so let's make that change. Reported-by: Jean Rene Dawin Tested-by: Jean Rene Dawin Fixes: 1760fdb6fe9f (mmc: core: Restore (almost) the busy polling for MMC_SEND_OP_COND") Fixes: 76bfc7ccc2fa ("mmc: core: adjust polling interval for CMD1") Cc: stable@vger.kernel.org Signed-off-by: Ulf Hansson Link: https://lore.kernel.org/r/20220517101046.27512-1-ulf.hansson@linaro.org Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/core/mmc_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/mmc/core/mmc_ops.c +++ b/drivers/mmc/core/mmc_ops.c @@ -21,7 +21,7 @@ #define MMC_BKOPS_TIMEOUT_MS (120 * 1000) /* 120s */ #define MMC_SANITIZE_TIMEOUT_MS (240 * 1000) /* 240s */ -#define MMC_OP_COND_PERIOD_US (1 * 1000) /* 1ms */ +#define MMC_OP_COND_PERIOD_US (4 * 1000) /* 4ms */ #define MMC_OP_COND_TIMEOUT_MS 1000 /* 1s */ static const u8 tuning_blk_pattern_4bit[] = {