Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2732704imu; Mon, 19 Nov 2018 05:20:31 -0800 (PST) X-Google-Smtp-Source: AJdET5cwV3sQvibSYJ1UHu2leNVc3SDZ5H9CpEBf1InRWxXO3EY6aZA7ByUPHAKIY7I5BgGt5jbR X-Received: by 2002:a63:111c:: with SMTP id g28mr19882518pgl.85.1542633631184; Mon, 19 Nov 2018 05:20:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542633631; cv=none; d=google.com; s=arc-20160816; b=0SJCbOnzdz4fQ0oVx0k/e2snnULNXvLSeMOhttA6Y2kawZZJhXFerfTy555Q83DzuV mGdI8nO06Yyz2MWhiBm4Wv7KkiyFyAlWxXUVPduzsuTh/MhbkSXtIpJjw3Ijc61/7rqG 5sp64QjDMd8hlFjZuRp6CPnjnFDuyQVzvg5qL9x8sNi493x1DqdMXFUnUJL1a5EsIGfV Vc86pcNSHgIUwwofK7DJT7iZBTFxxE+jZaWB+BIRpwBGt7ot9JAVUsK8Mpsd/UE+o1cq GmHEmIvndUUSCNDWlFTbE8MYIomBZ99W/QRxUuHPzzLb7U5nYe7apOAJmco7IRK+WYFV XU/A== 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; bh=X1hwbqHB8wj5zSjDLM3U/OJpi7dx7f2yxpPkG9WM/Qk=; b=nzv2S4deeoBw2vGR0SjGdV0ixnDFdkP0deOxeA/DX1+8Q4YZ2VXjTvHVx9Wn4bpN4r bLFAqsa7P/Z/k5Zb/nNgJv0b40w/XpC3wi6tJmz1lQsuoa64jXugYizFCMEBljE+YQZu xsGiHbrTMLoADe71dyXtadWl8n157aHZUjmuL+PYjCGUXLtkUkJpcWS0QarhD8KAr2hF IOpA4Gisx2HDv6NB1hYfLL2QdIM9UNeDYNixDW/U0l9N8UHtiNxaiEDpjrvrhZJOaFJA kHvQCuilkPtkykp0swk01uuWk3zRlhN7aOJYaXjogqI9WN8Wu5NwnaXdz0JnjElw2isp 8viw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GduGwELN; 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 d189si27813734pgc.393.2018.11.19.05.20.16; Mon, 19 Nov 2018 05:20:31 -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=GduGwELN; 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 S1729350AbeKSXnE (ORCPT + 99 others); Mon, 19 Nov 2018 18:43:04 -0500 Received: from mail-it1-f195.google.com ([209.85.166.195]:54281 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729220AbeKSXnE (ORCPT ); Mon, 19 Nov 2018 18:43:04 -0500 Received: by mail-it1-f195.google.com with SMTP id a205-v6so8135255itd.4 for ; Mon, 19 Nov 2018 05:19:27 -0800 (PST) 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=X1hwbqHB8wj5zSjDLM3U/OJpi7dx7f2yxpPkG9WM/Qk=; b=GduGwELNI97/vFhj1G/8E6o0qLrCZ1tB1YNhb+bVPvglFr4CvbmtdKBsGpZR5cqRRB lA1TrGqpt2XFAdrHvCB+/pz2KCBR6LkM16kfpy1WKjYX0cEagHBZqLtO02VLqNbzRSXL lNasN8LyvaUuiOIGf3J3LZ0+JNPI/6o4VMbdc= 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=X1hwbqHB8wj5zSjDLM3U/OJpi7dx7f2yxpPkG9WM/Qk=; b=pfBG4v0kWYQ8GaIlKdU4YyJ225k+vh7xSmtqc5g26xBW8aK7ZdF92jSqvyNRSH52HO nFWwZGV6q2dmgi1cDLemwXja36VxZSDQhS2Bp1WL+c5C+Tue6jwIlVS+LhHRP3LRjETN F5QSIr1HFfDlkhpInYDS3AfCPvX3IYvsbDIt3TpSFKjM2pH3/xpnPUlRg9eS9nMMloVI 0dW8giscxWYgXXZXXGJvv5UlcY3QYEULv8HlzPi+NzmcBT3HuQGH3NoDsd9QQZSLKpos VJMpRB5coG8TMIm2dAhf89fh1uEdCOZ2EdDSx5QDLI4A9vmvK5OXBsag2OpYItKz8mK/ d/MA== X-Gm-Message-State: AA+aEWaTYbC9ojUJIACca7IjHttYsDoie/hK/VbFWSNqvJxdpfWvrfgM 3GGtRiPuDdzsKP5CDUmBVAUMOV0VmBs2FgOMrfBuUg== X-Received: by 2002:a24:108a:: with SMTP id 132-v6mr7821245ity.78.1542633567082; Mon, 19 Nov 2018 05:19:27 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a02:70c8:0:0:0:0:0 with HTTP; Mon, 19 Nov 2018 05:18:46 -0800 (PST) In-Reply-To: <20181119111618.2745-3-faiz_abbas@ti.com> References: <20181119111618.2745-1-faiz_abbas@ti.com> <20181119111618.2745-3-faiz_abbas@ti.com> From: Ulf Hansson Date: Mon, 19 Nov 2018 14:18:46 +0100 Message-ID: Subject: Re: [PATCH 2/4] mmc: sdhci-omap: Add variable to indicate host is tuning To: Faiz Abbas Cc: Linux Kernel Mailing List , "linux-mmc@vger.kernel.org" , Kishon , Adrian Hunter 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 19 November 2018 at 12:16, Faiz Abbas wrote: > Add a variable in sdhc_omap_host to indicate whether a tuning > operation is ongoing. > > Signed-off-by: Faiz Abbas Please squash this into patch3 as it seems a bit silly to keep this a separate change. Kind regards Uffe > --- > drivers/mmc/host/sdhci-omap.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/mmc/host/sdhci-omap.c b/drivers/mmc/host/sdhci-omap.c > index 87138067e334..cfffcf58be3f 100644 > --- a/drivers/mmc/host/sdhci-omap.c > +++ b/drivers/mmc/host/sdhci-omap.c > @@ -115,6 +115,7 @@ struct sdhci_omap_host { > > struct pinctrl *pinctrl; > struct pinctrl_state **pinctrl_state; > + bool is_tuning; > }; > > static void sdhci_omap_start_clock(struct sdhci_omap_host *omap_host); > @@ -318,6 +319,8 @@ static int sdhci_omap_execute_tuning(struct mmc_host *mmc, u32 opcode) > */ > host->ier &= ~SDHCI_INT_DATA_CRC; > > + omap_host->is_tuning = true; > + > while (phase_delay <= MAX_PHASE_DELAY) { > sdhci_omap_set_dll(omap_host, phase_delay); > > @@ -355,9 +358,12 @@ static int sdhci_omap_execute_tuning(struct mmc_host *mmc, u32 opcode) > phase_delay = max_window + 4 * (max_len >> 1); > sdhci_omap_set_dll(omap_host, phase_delay); > > + omap_host->is_tuning = false; > + > goto ret; > > tuning_error: > + omap_host->is_tuning = false; > dev_err(dev, "Tuning failed\n"); > sdhci_omap_disable_tuning(omap_host); > > -- > 2.19.1 >