Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp716854ybz; Wed, 15 Apr 2020 17:23:28 -0700 (PDT) X-Google-Smtp-Source: APiQypItZAcY8E8h3fPWYBpaz4QYd3+gGg4PRiVSouc6xYlYKIs89Ys6EnBoHoQMRxr71YIgnyTj X-Received: by 2002:a17:907:414d:: with SMTP id od21mr7703829ejb.178.1586996608552; Wed, 15 Apr 2020 17:23:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586996608; cv=none; d=google.com; s=arc-20160816; b=SEEc8TGtKT7rSmVkHhh1sGy+K7BuwefCzWIxy5iWeZKDHBwDKLRhZz+5kddkZqDLYo o2Gmm0zQLTdwsOCKiDvM5qvaNd5RjTiEpqMdC0sRbGtP2vIzBvWn2wB9WKt9kYydOIaB 85ACc9375wOjDWwjPqepeNnali4OebpK2GVV9P/iXsb4oXrG4QGm7eaMv0C1ZlxxqMYx y+c3IWMDT/+MqhJYI7mv4qiuvKR8PooJIFhScmDmm14PuItKmjm2K9fAAp/2McvdhVo8 VBjpIxWJuhwJXbRdPtueo+jgMDnHc1mcCL+O9w5Dnpq9zvq9FJrLGscpr8fLRz6AN+dw AgAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hvBT9ZwOerYz9WtV6lec1UujeikVT7vcex0ZuT5zmJg=; b=wrkWW+ZXgjvpAaOC63fJjx81o/PYxAjVo5xNo2IDcI2tM3XCephvV7zU/z6gle0Zzm 0aMDOHtsIKFa7dJtSP+XYGJCLNdmolkK8teFywLL/XaFmSdAiWwsHt9GYM72xB8Z42ji bDbF+FCutM6trjS0zs6qa8b3NHsN2YIFkLjNQKNWY2uGCKnFG6vfmUnv0ry1Xn0T1LcS ZWiX8I3qDkPV/xL2t68CZlEXXmPxNKWJr3NUXCyXMvorUnF7CxIAH1OzEDIY9qNTlqr0 a+AB67ao1wr46vfWAehdJGWADVFjhLGc3ods5OhWmvFDUViMfACZg32upb72DPplQem4 AZ6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=PAbQsHWp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jr5si11295010ejb.378.2020.04.15.17.23.05; Wed, 15 Apr 2020 17:23:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=PAbQsHWp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1416027AbgDOQ3A (ORCPT + 99 others); Wed, 15 Apr 2020 12:29:00 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:12688 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1415786AbgDOQ2n (ORCPT ); Wed, 15 Apr 2020 12:28:43 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 492STj0yyrzCQ; Wed, 15 Apr 2020 18:28:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1586968121; bh=Rsasm2lhH1ZJqFeV4sB6sJTDdBy82LDRARlwkGNJNWs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PAbQsHWpbLD2Fo46RRsCnjnjAl/uJZvNeVFbsI4Dn2X8xsLouAhK+Nm42rC+0RS1l ryd81UC0NcB2qSWxgV7cNM+luxbeNGj2KwDhTEk13m5zrRKZ+UMOjI46fCnKyBOSdg 4Ft6jkgljR6fRaSKTHT8lPTCkxCqZLnjDCjGtwv5kxQpQG3VtQ3UReeSbhooagqJ3t BNmvdT0zjOxdhqRDWj1T9QszgHlYKtDKFRsELBhHc7cdgvilIuzkHnVjBJ+XmxDql8 NJloG6QxssZVgVZ/vCwgoxSyeloGRA5rhw7K8ot+1Gb2Jb8IAdc5xJmKzBoexgWKeR 6EBa6MjRMorcw== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail Date: Wed, 15 Apr 2020 18:28:39 +0200 From: =?iso-8859-2?Q?Micha=B3_Miros=B3aw?= To: Adrian Hunter Cc: Ulf Hansson , Kevin Liu , Michal Simek , Suneel Garapati , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/7] mmc: sdhci: fix base clock usage in preset value Message-ID: <20200415162839.GD19897@qmqm.qmqm.pl> References: <23c3fe72b0ff0eabdbf3a45023a76da1b18a7e90.1585827904.git.mirq-linux@rere.qmqm.pl> <218dd61b-48cc-a161-240f-b3823e8f48cb@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <218dd61b-48cc-a161-240f-b3823e8f48cb@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 15, 2020 at 03:25:52PM +0300, Adrian Hunter wrote: > On 2/04/20 2:54 pm, Micha? Miros?aw wrote: > > Fixed commit added an unnecessary read of CLOCK_CONTROL. The value read > > is overwritten for programmable clock preset, but is carried over for > > divided clock preset. This can confuse sdhci_enable_clk() if the register > > has enable bits set for some reason at time time of clock calculation. > > value to be ORed with enable flags. Remove the read. > > The read is not needed, but drivers usually manage the enable bits, > especially disabling the clock before changing the frequency. What driver > is it? Hopefully no driver requires this. It's just removing a trap. Best Regards, Micha? Miros?aw