Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3547235pxj; Mon, 24 May 2021 09:06:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxC25k3Lcj+vyCMhDq4LnO0EpOB91ORRJxGku7kG1efIK0Zz2Po209LAO16D899Sfrzx3Wa X-Received: by 2002:a6b:f815:: with SMTP id o21mr14064737ioh.0.1621872402789; Mon, 24 May 2021 09:06:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621872402; cv=none; d=google.com; s=arc-20160816; b=Ju0KP6B2ZgBM+1jDoXQBkP1jPrw3YfoGjL6wV8wcqwW02+5xbTM3sIGc4JNfGfKPI5 hxs9Jxs3f5ku89Wo951k030ZWJWhaEJkzopMiv94/1d3c/pCk2YBnhSDN0rhmfwe+LiI vEtSjVffOczXAEbAVY+TXk3bUjH/JtVlDNtHD7a5QGKhkJqjYx6Ip7t48/2Jb1UP6Zuy L2KdoOSqJ72kTPn7rHSJ14F4XgCnH2iS857/YK3/XzcbJ5tzWKNYbVABYFX10lOFaDb6 E1mgOuZxaBV11n80ZSJt9v8qgwbsqUGoR2hzniCxvr324P83tsoQ8bD1t8+xNQhjZ2/P bFEw== 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=az3UvVovpvlf+OjOqm8tiBnptKHIMu38io/8kVWUWsI=; b=y+FEihePIQN7m+IldfrHMKYODEgrKXm8BwB9x7rhsRO5RJtD0xW5fRvREim4og8dW7 6OzQHv+jYAJHGeKTM+wPYJH/eH3XujkRrHVOUYcVGIV4ECOMsKWmhBHBmDktAW4Fd5NM ywvK0Z/wamsTYgoPBNH8/8sTifbeqsDYgSf1TXidD+ph5rGlW8RFAU65vzjsRSelo8vT LiFd/7638yJ6GMPxulTjd8sqovzKfF5JTHOTwRuLThTZj9dYqrfKmq2NrBiI/ygGEXEq fW05FMJS8/iYvPvPZ67xGVZavNEZKk7zVPfkiSnp7YNlq6B0M2EAcMeGE2WQkgnqLSGP yJfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gx2HaHpV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l8si15766048iln.109.2021.05.24.09.06.20; Mon, 24 May 2021 09:06:42 -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=@linuxfoundation.org header.s=korg header.b=gx2HaHpV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236190AbhEXQGj (ORCPT + 99 others); Mon, 24 May 2021 12:06:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:41102 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235019AbhEXP7b (ORCPT ); Mon, 24 May 2021 11:59:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2E6F461958; Mon, 24 May 2021 15:45:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621871124; bh=LPbeGpCqLz1Y2TTNZqKPz7NOYf4T32EvHiO5n8/3NGs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gx2HaHpVAKl3axcVqOiNSyLmhLicRb7qfsDJ7ufR5r1uSB+Kl+U+jx/2i+Nm+U9aJ 0s/agf3YKFhhrGM0nwvEtYiUzyWtYaKOtDsiOwdiqTnxqQg/94bm+Q5RpWqyacUtqF TFKWgm+TcqNBrHe7SYjyjmYD74U+O75QvxpZiyJk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Daniel Beer , Ben Chuang , Ulf Hansson Subject: [PATCH 5.12 084/127] mmc: sdhci-pci-gli: increase 1.8V regulator wait Date: Mon, 24 May 2021 17:26:41 +0200 Message-Id: <20210524152337.696764546@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152334.857620285@linuxfoundation.org> References: <20210524152334.857620285@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Beer commit a1149a6c06ee094a6e62886b0c0e8e66967a728a upstream. Inserting an SD-card on an Intel NUC10i3FNK4 (which contains a GL9755) results in the message: mmc0: 1.8V regulator output did not become stable Following this message, some cards work (sometimes), but most cards fail with EILSEQ. This behaviour is observed on Debian 10 running kernel 4.19.188, but also with 5.8.18 and 5.11.15. The driver currently waits 5ms after switching on the 1.8V regulator for it to become stable. Increasing this to 10ms gets rid of the warning about stability, but most cards still fail. Increasing it to 20ms gets some cards working (a 32GB Samsung micro SD works, a 128GB ADATA doesn't). At 50ms, the ADATA works most of the time, and at 100ms both cards work reliably. Signed-off-by: Daniel Beer Acked-by: Ben Chuang Fixes: e51df6ce668a ("mmc: host: sdhci-pci: Add Genesys Logic GL975x support") Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20210424081652.GA16047@nyquist.nev Signed-off-by: Ulf Hansson Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/host/sdhci-pci-gli.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- a/drivers/mmc/host/sdhci-pci-gli.c +++ b/drivers/mmc/host/sdhci-pci-gli.c @@ -587,8 +587,13 @@ static void sdhci_gli_voltage_switch(str * * Wait 5ms after set 1.8V signal enable in Host Control 2 register * to ensure 1.8V signal enable bit is set by GL9750/GL9755. + * + * ...however, the controller in the NUC10i3FNK4 (a 9755) requires + * slightly longer than 5ms before the control register reports that + * 1.8V is ready, and far longer still before the card will actually + * work reliably. */ - usleep_range(5000, 5500); + usleep_range(100000, 110000); } static void sdhci_gl9750_reset(struct sdhci_host *host, u8 mask)