From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751410AbdHaNJB (ORCPT ); Thu, 31 Aug 2017 09:09:01 -0400 Received: from mga06.intel.com ([134.134.136.31]:21732 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750883AbdHaNI7 (ORCPT ); Thu, 31 Aug 2017 09:08:59 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,453,1498546800"; d="scan'208";a="1212981016" Subject: Re: [PATCH 4/5] mmc: sdhci-omap: Add OMAP SDHCI driver To: Kishon Vijay Abraham I , Ulf Hansson Cc: Rob Herring , Tony Lindgren , Sekhar Nori , Russell King , Ravikumar Kattekola , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20170821074132.4622-1-kishon@ti.com> <20170821074132.4622-5-kishon@ti.com> <4f0a7225-1843-b353-1a2a-9adcb49554d3@intel.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: Date: Thu, 31 Aug 2017 16:02:23 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/08/17 16:53, Kishon Vijay Abraham I wrote: > On Monday 28 August 2017 02:36 PM, Adrian Hunter wrote: >> On 21/08/17 10:41, Kishon Vijay Abraham I wrote: >>> + >>> +static void sdhci_omap_set_clock(struct sdhci_host *host, unsigned int clock) >>> +{ >>> + struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); >>> + struct sdhci_omap_host *omap_host = sdhci_pltfm_priv(pltfm_host); >>> + unsigned long clkdiv; >>> + >>> + if (!clock) >>> + return; >> >> Are you sure you don't want to stop the clock. > > There is never a case where the MMC core sends a request to stop the clock. > Maybe this check is not required at all. It does when voltage switching e.g. mmc_set_uhs_voltage(), but host drivers should support the possibility anyway.