Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp386898ybl; Fri, 30 Aug 2019 01:04:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqyCqS1rkgn7kb2SRvPNXW2WRw5GFyo/M+GgZLvILDmdsQ/aN+Y90Kk4pcESohwqy2u59cFU X-Received: by 2002:a63:29c4:: with SMTP id p187mr12151411pgp.330.1567152241082; Fri, 30 Aug 2019 01:04:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567152241; cv=none; d=google.com; s=arc-20160816; b=zvLPtME/36kodKnzzbkWCqJEwDyQZjAF5s1sD9VfloAbbGxqItVfL+z1/D0iY6k10o UW4fI0NS88VVm1wPvVim758RUG1qS3lmLFz4mbZ7cFrIxQ620GiuuMwshtIO5fmvrVMO +NHZ1CS3XteORNnFEB4TDKuRMHjE+mLy18Ig3xLY3Edk+hCAQGac8rEBbXFLfFfby8wF n5tb1ayjZhhF2/LlZkfvfrqYegRPI+vSZU41gZv7SVBpzS9g8msyfnq10XzLyIusGI9Z zn2g8Jaq2/0tYcqZ4COnNcMRoJHcWXgGZiyvQ0u/VnsC0CnondVQOBskhC5jlNNGD3+F WY7A== 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=zSReTBR+21k+gQlfPIxdDjT6LtoW1ARQm0j/COjHJ9U=; b=YXFRfjEJQRQJHr3ec+Jgdo5Xv4FwG4Ds1ti7lXCSjsIW7FqV094Zm3Yv8G2c27xiZa RnanMbmGbZ9yqm7KYFaCRLzUGT1NyZBT9krnr6WXqRWKSsPUvbOQ7k8LzeeQ29u8o9tB bRw5uwgkpt2A10f8WnHJEgowmUwDVEuy3krnZKD14h/h0RXcTVpu6KYLOpXH6Xmez/6w 9qeyckzhQ9vGVw+YIANJxEHwgnLXLB+BCAA81Gwd734ipwhq/LiQ9ord0Mb9Zyt0Zjx/ c9SGBe8usiADi5yGfeR7dFZiODAnIv38hQDByJpxW2A74KDB4UnAah5y5lT4jkxYaqK2 k0fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qp8yU+LP; 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 7si4067758ple.224.2019.08.30.01.03.45; Fri, 30 Aug 2019 01:04:01 -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=qp8yU+LP; 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 S1728288AbfH3ICF (ORCPT + 99 others); Fri, 30 Aug 2019 04:02:05 -0400 Received: from mail-vs1-f68.google.com ([209.85.217.68]:40662 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727234AbfH3ICF (ORCPT ); Fri, 30 Aug 2019 04:02:05 -0400 Received: by mail-vs1-f68.google.com with SMTP id i128so4210474vsc.7 for ; Fri, 30 Aug 2019 01:02:04 -0700 (PDT) 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=zSReTBR+21k+gQlfPIxdDjT6LtoW1ARQm0j/COjHJ9U=; b=qp8yU+LPUcX/mAFN/tdWTbxE8ZDUp2Z8cCy/SKuHHj80GZtnQ3tQP7JQDmbyIBAWoy ZePqJezkftPXgjaRJ7H2pFtF5ZnZOQZy4N5kyyN4o2HhEhsa410M5iWSyc0l/Ynzaktm YOSy3tWjasqTapLStwH3UrO5al31vEt96KXMWgXhv2YXTynO/2BcGjuL+2uj+TX6vHDJ UVwmxzPe4wEYqJUHp6HIsvv7G9ymY37avF2pBFZHYsAo8M6r54t/hRz3V8vqsvpuFx4x JuYF9njW9ZhqiqYVZqFshkjVEd+qOApUqzk1gOe47O82ybxuy80NG/F0a3bmeO2YRwQJ 8eEA== 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=zSReTBR+21k+gQlfPIxdDjT6LtoW1ARQm0j/COjHJ9U=; b=ZENfahYofYJgJbK/fz4iNcBPicODw4HwoN2DANkmyncNiqn/Sgks7VkoKv0eyXwbKS duwn8Kekk4eMsON4XFR401tjkfMxFWzn2hvhmuzVVadw2Z63QBNTCZmgTG/nn+LBrUMx ZGOwx3MeSgTZTNG635SJwejF0Ra6lTNzIwVj4iGrTGWzIzAKlxQcm1ndJjqc7iLaWg8B dUMvYl5P1SskXkroshB7OZtkjRfHCxZy9pFhtDu3jLIXPa2L8Y5vE6VQj2MR1gdliztD 543tkqIdEMqCcK0KoTnczVqBRasRXYHuWgPg5tyF0r4+qbIah6e81OHlAZ+BlERhYKad XNxQ== X-Gm-Message-State: APjAAAWWwWH5pldDsLu3gvKP7U3c3XaSzeJO+53wrPreIR26801vjvKz jgV4n3QQ0Rle897+5L05+QUS1Bj1gcmN3Pjg9JPklA== X-Received: by 2002:a67:983:: with SMTP id 125mr2338906vsj.191.1567152124259; Fri, 30 Aug 2019 01:02:04 -0700 (PDT) MIME-Version: 1.0 References: <20190830074644.10936-1-andrew@aj.id.au> <20190830074644.10936-2-andrew@aj.id.au> In-Reply-To: <20190830074644.10936-2-andrew@aj.id.au> From: Ulf Hansson Date: Fri, 30 Aug 2019 10:01:27 +0200 Message-ID: Subject: Re: [PATCH 1/2] mmc: sdhci-of-aspeed: Uphold clocks-on post-condition of set_clock() To: Andrew Jeffery Cc: "linux-mmc@vger.kernel.org" , Adrian Hunter , Joel Stanley , Ryan Chen , openbmc@lists.ozlabs.org, Linux ARM , linux-aspeed , 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 Fri, 30 Aug 2019 at 09:46, Andrew Jeffery wrote: > > The early-exit didn't seem to matter on the AST2500, but on the AST2600 > the SD clock genuinely may not be running on entry to > aspeed_sdhci_set_clock(). Remove the early exit to ensure we always run > sdhci_enable_clk(). > > Signed-off-by: Andrew Jeffery > --- > drivers/mmc/host/sdhci-of-aspeed.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/mmc/host/sdhci-of-aspeed.c b/drivers/mmc/host/sdhci-of-aspeed.c > index d5acb5afc50f..a9175ca85696 100644 > --- a/drivers/mmc/host/sdhci-of-aspeed.c > +++ b/drivers/mmc/host/sdhci-of-aspeed.c > @@ -55,9 +55,6 @@ static void aspeed_sdhci_set_clock(struct sdhci_host *host, unsigned int clock) > int div; > u16 clk; > > - if (clock == host->clock) > - return; > - > sdhci_writew(host, 0, SDHCI_CLOCK_CONTROL); > > if (clock == 0) > -- > 2.20.1 > Further down in aspeed_sdhci_set_clock() you should probably also remove the assignment of host->clock = clock, as that is already managed by sdhci_set_ios(). Kind regards Uffe