Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1192694pxu; Fri, 16 Oct 2020 06:17:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6m0bpqKNUOb+JO0Xk2Dw5Og7F8zKM6sPEwdJtzEdQ5RYLtYRJGlB2yAn3J9aASwpLqd27 X-Received: by 2002:a17:907:7292:: with SMTP id dt18mr3464708ejc.265.1602854270551; Fri, 16 Oct 2020 06:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602854270; cv=none; d=google.com; s=arc-20160816; b=0Wg60dupsaerkVifXodQK/kEn3pPDrqgtlmQjO1BCVr73ngbsXxIVQ4vjCKG3DC3YN TjFJZ7Vu3Jn/TKH0lLvqJF1u7Z0JFCMI0Px03T/253SETq4pObny3D/w3icqXMBUwPXb zQ6qZ0TuEWBVVxx8u/d8e1Xce7tokh+JR5HLvwaIdfb7hTYfkXm0tCR4e286erfI5MwM Bq/tiBrp7JvHsru+4UCgdR9gJM9BrKQ2rzgAqFP+xjiDcjhxMONGvEmVPlimVoCL3SH/ IQweNH0LiPre+nEsyVC2NMhUnbcZhtEqAeSCq48781tVYHz3bb6Ic+AJRMO2on13v4Os FwEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=jP4HQaKiGyn+S5AxLUagFAJkiHjjyugeL1er/xlRrfc=; b=Q1UOAKUJIW8zQIKYGNB1N9/gA0gu8YO5bl1Kg3z7wy/Ua2EXSuMRiWwmCASTOrQZVp RCEFSQ6KUaTrNXHNZIvKBmnIoq0upwtUXx7FCFU5uiApGieW4tCaS7FKFaXYz4aB9YEb zlFdDz0kpXNteykq+JvFHEKdSw/Pt6ZUwtRymz6CFQVGnGQDQmStP72NLGiEDiMNW6pG p2T41Ui2ELsA8l2qfS7ja/n8+10DdNET4wJDytXd909MIpKARm8qY2vcaGV6MoF6YHJx z6H8b19ofgMPDS/Du5quiT1qLCUoseFe3MIIbWSmKb/G6JtbtfiwHA2DVwzeKSg8+y3l XAjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b="v/OPpudm"; 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 c23si1692394edy.388.2020.10.16.06.17.27; Fri, 16 Oct 2020 06:17:50 -0700 (PDT) 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; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b="v/OPpudm"; 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 S2407880AbgJPMu6 (ORCPT + 99 others); Fri, 16 Oct 2020 08:50:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406502AbgJPMu5 (ORCPT ); Fri, 16 Oct 2020 08:50:57 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A24B4C061755; Fri, 16 Oct 2020 05:50:57 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 7C228226F6; Fri, 16 Oct 2020 14:50:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1602852654; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jP4HQaKiGyn+S5AxLUagFAJkiHjjyugeL1er/xlRrfc=; b=v/OPpudmOdfdIc29yGVyRTAd55VBkX0Xq8D4S8O6CEz5calCWHK18jpYNJuuHAtUmtia7i VlPc0zK1812U0l6hfw1qkC9dUgiO6StIfzrWJ4hkQ3V8erw28RqUmJ61qWKxN+bEvLiym3 nm+EK8SpggZZKVPW4qcdNEbA3hLWiSg= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 16 Oct 2020 14:50:54 +0200 From: Michael Walle To: Ulf Hansson Cc: linux-mmc@vger.kernel.org, Linux Kernel Mailing List , Yangbo Lu , Adrian Hunter Subject: Re: [PATCH] mmc: sdhci-of-esdhc: set timeout to max before tuning In-Reply-To: References: <20201015231149.9333-1-michael@walle.cc> User-Agent: Roundcube Webmail/1.4.9 Message-ID: <7051c929a585bf7b1f62561f0ea91193@walle.cc> X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2020-10-16 12:53, schrieb Ulf Hansson: > On Fri, 16 Oct 2020 at 01:12, Michael Walle wrote: >> >> On rare occations there is the following error: >> >> mmc0: Tuning timeout, falling back to fixed sampling clock >> >> There are SD cards which takes a significant longer time to reply to >> the >> first CMD19 command. The eSDHC takes the data timeout value into >> account >> during the tuning period. The SDHCI core doesn't explicitly set this >> timeout for the tuning procedure. Thus on the slow cards, there might >> be >> a spurious "Buffer Read Ready" interrupt, which in turn triggers a >> wrong >> sequence of events. In the end this will lead to an unsuccessful >> tuning >> procedure and to the above error. >> >> To workaround this, set the timeout to the maximum value (which is the >> best we can do) and the SDHCI core will take care of the proper >> timeout >> handling. >> >> Signed-off-by: Michael Walle > > Sound like this should be tagged for stable, right? Yes, but I was unsure about that. I didn't find a lot of Fixes: tags in the history of this driver (eg. for errata etc.) I could repost a v2 with a fixes tag if you like. -michael