Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2151893imm; Mon, 16 Jul 2018 03:12:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfdUB4O+x+5ts0QpSomMmKPn/m5TSpY3n8bEsvbDDPZrGVIMj4LeNS6f2wrl3hOY/FrWwJE X-Received: by 2002:a17:902:8b86:: with SMTP id ay6-v6mr16133953plb.295.1531735933304; Mon, 16 Jul 2018 03:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531735933; cv=none; d=google.com; s=arc-20160816; b=1Fxu01h3hX+J/ekJv/LN+9dYjK0RoMAOR4T78SAchrZRZd/wC5RIic4HaEq2EYhCJQ dqT5QhwhiekbGyeHeRi9MEiD6tbed9TaixDZ9NAnFslMnbpHbe8ygKM+W7qldngRgzms mePUoAGhMcxgQ7fv/+zElhWCVAy7ugiHxUE6HcIADXT8PUW65FMasLrEmuyAr8ylw6Wu 22/F4zV9FABYA5YVKp8aHZg9+g3wNSVBh+LwHe6ZAv7YSssaiaXeAYz6RJL2NEAIjMbT YDsKCDLHUW0EsXNDQelJEg3e5xdh3Ui0cX3WzfrvgCVjFHll8OSRUZ3IjpzAkfPyhGSX 4BCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=9q1WaT/2V+uxn0Yztk64P6o3fEZdTOj0JElUDP6oULs=; b=dHGBdWbZXgc5OCBpwiDARWqUS7sp0Qv6yWtk9IW9jVHNBjWevgi+Y1FWX8WesUJFYr qwJdFO27aHINoNOEyFZl4HTyifm+SdeCBtVvDpYQXLb/Mk7V9tOyHWlB7ARBplptPKkH 6ijMpBD/+DwzRn8tg2SI9J2/pXB+Kacmtx+BvFaou5uCZK/yHStmgFCK+uuu0vftYenJ VonSGWsTTPZwetri50NQ8nqwjlZUXLC3xuUfgFvo8EMckh4mU95IqEv8X3xFp6/v1Pb5 hBsneoGfIBqs8bwevTaQM5wDBzUSIlOYwBtrri+KH8ZBE9n5FWXxsiBsl/vixvouxdlC nq8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AaK6lya1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o4-v6si33234558pfh.168.2018.07.16.03.11.58; Mon, 16 Jul 2018 03:12:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AaK6lya1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730828AbeGPKh4 (ORCPT + 99 others); Mon, 16 Jul 2018 06:37:56 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:39861 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730092AbeGPKh4 (ORCPT ); Mon, 16 Jul 2018 06:37:56 -0400 Received: by mail-io0-f196.google.com with SMTP id e13-v6so37236768iof.6 for ; Mon, 16 Jul 2018 03:11:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9q1WaT/2V+uxn0Yztk64P6o3fEZdTOj0JElUDP6oULs=; b=AaK6lya1U9rZEcQ2ORk4hlQJ2aScX4U+VK3M1Ywys0m8Dhdup81bOwxR6e7J5/Dxpj CB/pJQ/DULTHtnYF9ekBkonRyVrcveWf3zeup61VyctGWJp/ZhHfxEDk1lWgydka8agg 02Crs67KJiw0hWy8b1oRl5m6jReBDPRAuQXfk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=9q1WaT/2V+uxn0Yztk64P6o3fEZdTOj0JElUDP6oULs=; b=LFVAbd09Jjzh1XULtS1tdAt8GTmU/8722axGwOeN3tFk/UJVknF88jMT94J+kCSlEm sgzZrn/Dbz/ksvhd+TmQubEmX0tNKlJQrR75sw+Smf0Lv/n7hNyA1PYJUTjN+WZW1qQu eV1IVCmQ38F/xz5aR+8Ao9lkZWwvrvXAsfePdyz9oyIk1BaKR/5PO7w9E7+by5gNF3MK e8JuFJPPbU5jY08GaTbSb69RrQtR8fAJTa/VXk1CNpouLBZ/MLujyO0iJjRZ66Y1sUPa 96Kx5xR9gDr1psa0WjMd8F1QaJ0FN2tDvodKFCjge9mx/RF+BHDttx76rLFNNmcvZmzJ 9D+w== X-Gm-Message-State: AOUpUlHeGXQMAdSRHZEvjJSIfQk6VlT9G8+N+LhjWTDSy66J+O0VqklQ QWEj4bG9LXj+chw/DQn/XZWFmzkiwBEok5G3gkwcBA== X-Received: by 2002:a6b:c997:: with SMTP id z145-v6mr40392167iof.266.1531735875254; Mon, 16 Jul 2018 03:11:15 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:2b03:0:0:0:0:0 with HTTP; Mon, 16 Jul 2018 03:11:14 -0700 (PDT) In-Reply-To: <20180712073904.4705-1-stefan@agner.ch> References: <20180712073904.4705-1-stefan@agner.ch> From: Ulf Hansson Date: Mon, 16 Jul 2018 12:11:14 +0200 Message-ID: Subject: Re: [PATCH 1/3] mmc: tegra: prevent HS200 on Tegra 3 To: Stefan Agner Cc: Adrian Hunter , Thierry Reding , Jon Hunter , Marcel Ziswiler , "linux-mmc@vger.kernel.org" , linux-tegra@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12 July 2018 at 09:39, Stefan Agner wrote: > The stack assumes that SDHC controller which support SD3.0 (SDR104) do > support HS200. This is not the case for Tegra 3, which does support SD > 3.0 > but only supports eMMC spec 4.41. > > Use SDHCI_QUIRK2_BROKEN_HS200 to indicate that the controller does not > support HS200. > > Note that commit 156e14b126ff ("mmc: sdhci: fix caps2 for HS200") added > the tie between SD3.0 (SDR104) and HS200. I don't think that this is > necessarly true. It is fully legitimate to support SD3.0 and not support > HS200. The quirk naming suggests something is broken in the controller, > but this is not the case: The controller simply does not support HS200. > > Fixes: 7ad2ed1dfcbe ("mmc: tegra: enable UHS-I modes") > Signed-off-by: Stefan Agner Thanks, applied all three patches for next! Kind regards Uffe > --- > drivers/mmc/host/sdhci-tegra.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c > index 970d38f68939..137df06b9b6e 100644 > --- a/drivers/mmc/host/sdhci-tegra.c > +++ b/drivers/mmc/host/sdhci-tegra.c > @@ -334,7 +334,8 @@ static const struct sdhci_pltfm_data sdhci_tegra30_pdata = { > SDHCI_QUIRK_NO_HISPD_BIT | > SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC | > SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN, > - .quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN, > + .quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN | > + SDHCI_QUIRK2_BROKEN_HS200, > .ops = &tegra_sdhci_ops, > }; > > -- > 2.18.0 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-mmc" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html