Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1045032ybz; Thu, 16 Apr 2020 01:35:36 -0700 (PDT) X-Google-Smtp-Source: APiQypLj5Gg+JEP3GX7t/lkL9u/H/n4VPUfa4Y7DEbv+SZ1BvNuC1nBdjcKLB9Wt8zSIW9QnRsB5 X-Received: by 2002:aa7:d399:: with SMTP id x25mr29555460edq.163.1587026136448; Thu, 16 Apr 2020 01:35:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587026136; cv=none; d=google.com; s=arc-20160816; b=ZL+6l1Fc9wMn7sZnbf8KSbac+p1M5m5VrPjrW5SIEkc9zgp+qu65qCXz9mKbj6Gjz4 O+Ubv0FNwKg99bZNzgXv6FMg9I71gk86+rqjmdq5GpNt5enGTADjvcG7qoQNeRSkQ8gl 6wvgkmYGsO3Qg+2kAdEpPPOncXiOu81MehecPNCnBXOVaMy5nirdO2ku65oE1G2/CN6m UcOCooC4REhKaQZ82s+6bn9Hs2+BanIentkNZAmCS3RP9khgH4KWcWCFkPwMvIZSoa0p EEtp5+xMslt5B0dGlsZU/W48GPopd5bq76TGcFIcROhBRUVKN+ap/ocyTJEvy9ef5xew 7Arg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:ironport-sdr :ironport-sdr; bh=HwWrOtomQygpQdukmCCkamKHsQ4t7isoCJm/Z102Fn4=; b=pmkPKiMGmhi0yRC71la47woK2rKPOxx3pnOL0dnBe3IuK4Znyx5XdANzMyiRyBKYhD mL/2dX0OmIKbtel9SvCJJf8gFOvxgKLyL0cLLQ5g8VpF39ZJwSKsHDtvRn0csjWiUIHh 1auFOmrxxyJVdxymVTkw1j1jZEH/iELyEU1xvJLbu3HrkmCSCxd1g57WXxXqiaBgjTUv R1hTBaqxme/qdvG3toNhQiLpN5DfLaEFdc0d+gTS2R+ZHYm/tOoS9eax8oiA4sFtxLBS homgn0FwkFFkjxibXX68FfvVuicWmO2Fs4+WNiKuPP55ah6Jf32m23Z4aGIC4m40fTcF AB+A== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b24si6796446edy.239.2020.04.16.01.35.13; Thu, 16 Apr 2020 01:35:36 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502123AbgDPIeR (ORCPT + 99 others); Thu, 16 Apr 2020 04:34:17 -0400 Received: from mga11.intel.com ([192.55.52.93]:18301 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502185AbgDPIbY (ORCPT ); Thu, 16 Apr 2020 04:31:24 -0400 IronPort-SDR: P6Li/rzeg7v+8Iq4r+KkGeBe8q5WmkA12swj9pwUEeDBaGl/NkPWmTS9X7MAX6XZHP5pPWrpVo A5QDu7/H8E7w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2020 01:27:34 -0700 IronPort-SDR: qG0NwaN6qsBa8hWHeVRPyQlV8nKbWjYEmpdj2pT06VRmTIx5tQnNTR9poWjqA0wOvSO2aHApsT FIEW39hl3jEw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,390,1580803200"; d="scan'208";a="363917386" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.87]) ([10.237.72.87]) by fmsmga001.fm.intel.com with ESMTP; 16 Apr 2020 01:27:30 -0700 Subject: Re: [PATCH 1/7] mmc: sdhci: fix base clock usage in preset value To: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= Cc: Ulf Hansson , Kevin Liu , Michal Simek , Suneel Garapati , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Al Cooper References: <23c3fe72b0ff0eabdbf3a45023a76da1b18a7e90.1585827904.git.mirq-linux@rere.qmqm.pl> <218dd61b-48cc-a161-240f-b3823e8f48cb@intel.com> <20200415162839.GD19897@qmqm.qmqm.pl> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <57b494b8-cae9-df10-2a4d-db02e7212f23@intel.com> Date: Thu, 16 Apr 2020 11:26:41 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200415162839.GD19897@qmqm.qmqm.pl> Content-Type: text/plain; charset=iso-8859-2 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/04/20 7:28 pm, Micha? Miros?aw wrote: > 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. The only driver that looks like it would benefit is sdhci-brcmstb because it does not clear enable bits in sdhci_brcmstb_set_clock(). Adding Al Cooper. Al, can you ack this?