Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5185612ybl; Tue, 10 Dec 2019 01:52:57 -0800 (PST) X-Google-Smtp-Source: APXvYqwnB7bqUNmd4tmBNTJIhmuTIbP6d7wbmkf5dACxSOcTSgcM0uaVl7v2r2xOEJn1Ak0EjGeZ X-Received: by 2002:a05:6830:1149:: with SMTP id x9mr25814265otq.156.1575971577631; Tue, 10 Dec 2019 01:52:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575971577; cv=none; d=google.com; s=arc-20160816; b=zFtydIDNPmakFOC11qHTSLbTO1fgV3JcxgbBYQAx/e6LNbxgG7flUB1p+MRImDF8Xr 4dmL7jk6MIq5O+KVMROUUHoTj+EveCqBZpY8DFBJq4BKXvdGxDp6WMCoHrEJqyNDvIky /pcmsjWrZEnKpAFc1lEi0yhdo7KjA/FRjoYGhEFYhAHOE4bpVTcTWVP2NC6Ld04Dw2Ol Gvk/zFCnooYqbKGY9dVwtYVOAg+04spMEotOQ66Y2V7E1HJb/XePz2h56k3m9dezFqx6 rI1QVhUFCYO3QQi+35dsBB+oBDUOTDQqWPBNMsALYwSWWTDLONAvdzbZg94kZM8A4G/c NqUw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=kQDpaNJuTuBCwjRi4ZnQZs7rqwTgBbG2PPToht2ip2k=; b=MKhuhhptqmm7OdaEiJXqjPy0DnzCyVnRQYBNXwcTd5YuWqMrj/biQmKyfbgjea6ee/ pKq3aFiQTKJjsEjdD1wZb0uk7BJhVNYrBXsu11xgn0SU8mIkuqsaBECSWtp/8e2OfpJS 5H5+wUTBo3MBH91oWCL7QiP/havyhsX9lESjcO2sJ73gFMZtKo72gVVB1uufic7dFXol HKgULR3eb4QYa7nP0Nc95UoMHkaodRM9XO/2+tHBcfIdDuGollcxWpDE9PXldQ7T7Q85 W2aHwLscqWsYoSPLemQjmmlGq+AI5UbQaLF7hYiUnkSxuBev2NnqOb6f3rNcNdsnjcd4 EXyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vLSXt+0D; 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 i8si1595738otp.254.2019.12.10.01.52.45; Tue, 10 Dec 2019 01:52:57 -0800 (PST) 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=vLSXt+0D; 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 S1727551AbfLJJvi (ORCPT + 99 others); Tue, 10 Dec 2019 04:51:38 -0500 Received: from mail-vs1-f65.google.com ([209.85.217.65]:44470 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727541AbfLJJvh (ORCPT ); Tue, 10 Dec 2019 04:51:37 -0500 Received: by mail-vs1-f65.google.com with SMTP id p6so12541460vsj.11 for ; Tue, 10 Dec 2019 01:51:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kQDpaNJuTuBCwjRi4ZnQZs7rqwTgBbG2PPToht2ip2k=; b=vLSXt+0DuDKITzK3SqmZRrGE5FDWu0InRt15eBUNJ0X20O1kjN9pH9n+E14Yfx+C08 4qa4xgrg/WCYkwz5zm9rCafjbNNxEsFYcfIgIeKyNiP9qiAk9bXWIUVUI11kKR7PF2SU K0xhbqD1TW6QuAkV5pa9VHY4XCnoDktTOhRY9baV7BSYyERUlS1fBTR52DpdamphlyyL HdvmaILtNwnX2pqbIJPt0a7g5DAxyVyeG2u0isQftIhovS0a6gHORpWe6p+q+P9uaVkz qxWvNIj3uXa9d2JVvwOlYHSI6okmZsH+LDNjji2iJSRc0lxQQeI/CHCyVsB7lnrJay4l Qnjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kQDpaNJuTuBCwjRi4ZnQZs7rqwTgBbG2PPToht2ip2k=; b=TcjIqzvu42KkskCb/xmYylgoMq+fdLtcg2ZW3y5g/EBto3spWQ1XtR/GjJ0BNsGgPt nVgtHJv3RoGY+rne6WRdqFpBAc7iaHC9YKQGAcMPfCvNjPvFhicwuDUjcl4z9TcCrbOa UOkNA8w9szx52Zqhh97an3zJypuP+rG7Hy9eOjDyO+0i99VegC7Ky+raKFwdGKneWv7Q HvQXrQtW0Qfw/+eRMZyc3n/JOEgyiLEgkOxZa9IzCIe3obrEYgzPASi73+smfhTBNI+F 4OTOACIF6AiDG0BJso0qR43aY0Nt2G4iSEBYxOJIaZVbCax6oLK/aLzWDb7918QVCnQj baCg== X-Gm-Message-State: APjAAAW1r9LRd/5iAnCmEAJs+v3545lE/u4gSqW/qL5U5CquwOFcB7sI 7OHD/+6Z9xpm/Db96ovjnRhrMhvzwQmtnSuZHDgHcrIn X-Received: by 2002:a67:ff82:: with SMTP id v2mr23145347vsq.35.1575971496164; Tue, 10 Dec 2019 01:51:36 -0800 (PST) MIME-Version: 1.0 References: <20191128110422.25917-1-faiz_abbas@ti.com> In-Reply-To: <20191128110422.25917-1-faiz_abbas@ti.com> From: Ulf Hansson Date: Tue, 10 Dec 2019 10:51:00 +0100 Message-ID: Subject: Re: [PATCH] Revert "mmc: sdhci: Fix incorrect switch to HS mode" To: Faiz Abbas Cc: Linux Kernel Mailing List , "linux-mmc@vger.kernel.org" , Adrian Hunter , Al Cooper 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 Thu, 28 Nov 2019 at 12:03, Faiz Abbas wrote: > > This reverts commit c894e33ddc1910e14d6f2a2016f60ab613fd8b37. > > This commit aims to treat SD High speed and SDR25 as the same while > setting UHS Timings in HOST_CONTROL2 which leads to failures with some > SD cards in AM65x. Revert this commit. > > The issue this commit was trying to fix can be implemented in a platform > specific callback instead of common sdhci code. > > Cc: > Signed-off-by: Faiz Abbas Applied for fixes, thanks! Kind regards Uffe > --- > drivers/mmc/host/sdhci.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c > index 3140fe2e5dba..296d955ede59 100644 > --- a/drivers/mmc/host/sdhci.c > +++ b/drivers/mmc/host/sdhci.c > @@ -1882,9 +1882,7 @@ void sdhci_set_uhs_signaling(struct sdhci_host *host, unsigned timing) > ctrl_2 |= SDHCI_CTRL_UHS_SDR104; > else if (timing == MMC_TIMING_UHS_SDR12) > ctrl_2 |= SDHCI_CTRL_UHS_SDR12; > - else if (timing == MMC_TIMING_SD_HS || > - timing == MMC_TIMING_MMC_HS || > - timing == MMC_TIMING_UHS_SDR25) > + else if (timing == MMC_TIMING_UHS_SDR25) > ctrl_2 |= SDHCI_CTRL_UHS_SDR25; > else if (timing == MMC_TIMING_UHS_SDR50) > ctrl_2 |= SDHCI_CTRL_UHS_SDR50; > -- > 2.19.2 >