Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp392445ybl; Fri, 30 Aug 2019 01:09:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzh2KS9s/nAscKGMvqWRAQgt5/VssVnfaFnvV9KR9R+tNB/w+ZO3N7cfHTbTnBEXrlUp416 X-Received: by 2002:a63:eb51:: with SMTP id b17mr11656491pgk.384.1567152551614; Fri, 30 Aug 2019 01:09:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567152551; cv=none; d=google.com; s=arc-20160816; b=qwwzuewUu2grqH0FN9tJ+K/0cl0sjRiXNW3KA/2XPxvc5ST1mdmWKycgeD4NrBis+O +mdQnssQ7aq6bca3IEG117i/f6fIFK/JnqdC9QlzkPn4KGAU7m0ZB1SUbrjPxWvBq3mh lIRmLOaaxoSweSOC7gv2AJ4n2/EFC4a+aPSDzxZPBu9lRGEsCZSqKC7EbpqRzrq6r/lD JXd7PSVL/AQxwo8Iurqqe69HKMziPIUq6nvgiOTne+UL/gqBF79pn0wknuF09bHMHb8I sWpK12EEcYVeCKDAaiF72idEI5VRWCUBM34pMULY5498ZEb3wmIZJDUf8HhAXxa37TfH v6yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:user-agent:dkim-signature :dkim-signature; bh=mo3FGA/ipO1SkoDh6reUgvlvk0/ODycGbN5cHOI6jnw=; b=WsNFYwAVX33avSadwb4M1mZlvRVSMts8/sL1RuMA+y6Occ2+Mb66CwkT0W7C0dCGU8 vUhcaEsfSa1hxg9dMNQcqewsNiCdjW8B0DqiqdP5JZJ1QlZ9ikGyIl0hS821DEtDR8u5 45hW3c5p2esEjqHqt/FK8hKMCo+UkXVPyIjWYlJT4kky3IIwhbhB2DWFpcyYASuDE01o 9jUadWsleG6E6IeNUaOKi+sy6qAYXp2W02/0qQK2ayjNoAWUNNCzNKx0MgwB/JsojgZk JmMzVnAaHg3lH/cnbVux/BeuSSHVBs1Kctn5cbtG7yh9ZpHTM1dF6kXJ/sYtyRD7WAh9 /N/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm3 header.b=n0aPpAgu; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=mzkzZvd0; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v27si4227634pgn.14.2019.08.30.01.08.55; Fri, 30 Aug 2019 01:09:11 -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=@aj.id.au header.s=fm3 header.b=n0aPpAgu; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=mzkzZvd0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728368AbfH3IHO (ORCPT + 99 others); Fri, 30 Aug 2019 04:07:14 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:51249 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727242AbfH3IHO (ORCPT ); Fri, 30 Aug 2019 04:07:14 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id D576521F85; Fri, 30 Aug 2019 04:07:13 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute4.internal (MEProxy); Fri, 30 Aug 2019 04:07:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm3; bh=mo3FGA/ipO1SkoDh6reUgvlvk0/ODyc GbN5cHOI6jnw=; b=n0aPpAguaYco15CyvLywybHNtVAc7mwuO0pzWP7wvOL4Fmd OHnEHaQlsdNU43xwYceWhMfk0QCz/vRpljxyPR10myZhHJVk1Gr7/KPCeBw5+CB4 rsIfQB2bGMlSGIbOzvzO7vyDNrcKKDaPmgLmiH7MG+t/IxiusWysKBHZ029vMFcN S0Krms1cHcWwhachZ/SpXZzfkmlkZF79rP4Qr8E27Q3n/Z1j98vaCGU6p79BPDR9 YW4gOcuI7qdImGvS8MxiEbUtER2pPj407Y70L9vm7zalsX0X89TSMuUzW3duN31X Xfw1iYF40TOZLCIUFXCq+eaK5gC5HLZOeg/97eQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=mo3FGA /ipO1SkoDh6reUgvlvk0/ODycGbN5cHOI6jnw=; b=mzkzZvd0ilqrs1ghrHg095 4/hgqzJqavdRgmvLYcfAaOMtjE21M6bmrY8A/BqbnnO7QQL9hvuA5TecsbcOfe/V YZKBAdep8xDUafpohYs2i9/D5XRepasXcqyTCbd0K/eAQLBxjxzkIJknsY7GW5O2 0N0mDb965foTBJlGEkAl+iOuj2rCcHh8y6StPCCCHky2JP0vrae2plX8QDxSElVz 253LLLn8I4cVWNb2iXN6ynFFrVDF6I6sfTLAMjVhM+qft/OTohxwxCer6uRxOygk UOdiBZIc+QqdHxumWzsNMRE1Fu2ZFSPpZEpAo+kxlAOkC/Jp0kLg1ofv9vb4XplQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudeifedguddvhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderreejnecuhfhrohhmpedftehn ughrvgifucflvghffhgvrhihfdcuoegrnhgurhgvfiesrghjrdhiugdrrghuqeenucfrrg hrrghmpehmrghilhhfrhhomheprghnughrvgifsegrjhdrihgurdgruhenucevlhhushht vghrufhiiigvpedt X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id B2443E00A3; Fri, 30 Aug 2019 04:07:12 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-154-gfa7592a-fmstable-20190829v1 Mime-Version: 1.0 Message-Id: <6feca359-34ce-445e-87bf-62fa063d785f@www.fastmail.com> In-Reply-To: References: <20190830074644.10936-1-andrew@aj.id.au> <20190830074644.10936-2-andrew@aj.id.au> Date: Fri, 30 Aug 2019 17:37:34 +0930 From: "Andrew Jeffery" To: "Ulf Hansson" Cc: linux-mmc , "Adrian Hunter" , "Joel Stanley" , "Ryan Chen" , openbmc@lists.ozlabs.org, "Linux ARM" , linux-aspeed , "Linux Kernel Mailing List" Subject: =?UTF-8?Q?Re:_[PATCH_1/2]_mmc:_sdhci-of-aspeed:_Uphold_clocks-on_post-co?= =?UTF-8?Q?ndition_of_set=5Fclock()?= Content-Type: text/plain 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 17:31, Ulf Hansson wrote: > 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(). Ah, I'll fix that in a v2 once I have your thoughts on patch 2/2. Thanks for the lightning quick feedback! Andrew