Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3540568imu; Mon, 10 Dec 2018 04:02:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/VTZhHBbMfgyyv+21mYnQl/dd1z1lZqmD7OmYjzxxdFFZ2ve9n9toklZB4zfmzDPZmB8Z4i X-Received: by 2002:a17:902:b595:: with SMTP id a21mr11443439pls.120.1544443370463; Mon, 10 Dec 2018 04:02:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544443370; cv=none; d=google.com; s=arc-20160816; b=l/dtmQiCS2AGiO14+MGrKhd2h6VuRR77imxs5MStb/pM0jZw/M9WYaTmS1g1mPt8QE TXFLHGg1eLw4mq8fEDctHRK06afk81gYtPeECXlM+bvcWgb5HpOBJHq/2DSafVyPfzn0 MqFUInK9KN60OkIOySZi5Jps78Bolorcx4yyx8F3dRRrWBzW54B0c3TERfN4dDUlHQtK X3R2mN9YjjGCuFAU3gfNpevxJqDCAlWsCUmxVxVZMkKziRSqkLGeE2JVmvFNQnavhILx JdZY4U7qdifgni2iuZxhuiIv4pJPDz0+00v7CKmL82RCuXqZiILV/LEDYh9ox1FRK6wa Cm/w== 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:from:references:cc:to:subject:dkim-signature; bh=BXSauysFtSHnUqgxpsB1VhuLgfyEVffNcruP+e9gkxI=; b=okeTB2PuPUcHROuPQXMNtzXKWeXz5XYfywWPXgwY6EbD1ewd43oAeHRNx+JgoN7ji3 B88qLCMuE+zUatTXCtzJXd7tvhmMyx4Ed2RSlsuGuz0iz3IJPmI7RR5EAUfaotx6Ubo+ CQzQdkYW59WSMtX7dKzQlZBh5wyKcbXpVFT9haPxkMNIFOnxumqacKO1kXbcoU1VqhuA ocqfibDCRRayR45D5F20idFpzVA2H3IqBLcVweeRPOeeIqURno/2/BOuhcA6KzI44xcp nFg5V/m1MxPM7tCMvi91zHSVksdS4nEsbFnc09bq/Tx0QfTdIzlxM/k2DYgjFV03AgFk QdXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YhubCNfb; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si10088625ply.409.2018.12.10.04.02.34; Mon, 10 Dec 2018 04:02:50 -0800 (PST) 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=@ti.com header.s=ti-com-17Q1 header.b=YhubCNfb; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727395AbeLJMB7 (ORCPT + 99 others); Mon, 10 Dec 2018 07:01:59 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:39018 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726871AbeLJMB7 (ORCPT ); Mon, 10 Dec 2018 07:01:59 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id wBAC1arI059664; Mon, 10 Dec 2018 06:01:36 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1544443296; bh=BXSauysFtSHnUqgxpsB1VhuLgfyEVffNcruP+e9gkxI=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=YhubCNfbyD1LX6Gt+wYdzYEEqgeP8eq59x8ogkEHljSdyEtlQZFJ+VnttMRbANDlG ln1AmbX3MQnsAhY6KZJ/bijVuq11cmYHXzPxRVF7AB9Uhu92sZWyDJHyVaYjW/cjXo 08zK4BTRIGFz+fAO0Mlm7tJPndssmZd5Kvbwv5dg= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wBAC1atT050620 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Dec 2018 06:01:36 -0600 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Mon, 10 Dec 2018 06:01:36 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Mon, 10 Dec 2018 06:01:36 -0600 Received: from [172.24.190.215] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id wBAC1WIF025102; Mon, 10 Dec 2018 06:01:33 -0600 Subject: Re: [PATCH 3/3] mmc: sdhci_am654: Add Initial Support for AM654 SDHCI driver To: Adrian Hunter , , , , CC: , , , , References: <20181129161513.31734-1-faiz_abbas@ti.com> <20181129161513.31734-4-faiz_abbas@ti.com> <2618ec91-09d1-26f3-361e-34a073b1e5ea@intel.com> <970c3531-5d7d-fe94-55c1-13603735b43a@intel.com> From: Faiz Abbas Message-ID: <94794998-2c22-1b7f-946c-7887116ee55b@ti.com> Date: Mon, 10 Dec 2018 17:34:20 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <970c3531-5d7d-fe94-55c1-13603735b43a@intel.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Adrian, On 07/12/18 7:02 PM, Adrian Hunter wrote: > On 5/12/18 5:07 PM, Faiz Abbas wrote: >> Hi Adrian, >> >> On 05/12/18 7:12 PM, Adrian Hunter wrote: >>> On 29/11/18 6:15 PM, Faiz Abbas wrote: >>>> The host controllers on TI's AM654 SOCs are not compatible with >>>> the phy and consumer model of the sdhci-of-arasan driver. It turns out >>>> that for optimal operation at higher speeds, a special tuning procedure >>>> needs to be implemented which involves configuration of platform >>>> specific phy registers. >>>> >>>> Therefore, branch out to a new sdhci_am654 driver and add the phy >>>> register space with all phy configurations to it. Populate AM654 >>>> specific callbacks to sdhci_ops and add SDHCI_QUIRKS wherever >>>> applicable. >>>> >>>> Only add support for upto High Speed for SD card and upto DDR52 speed >>>> mode for eMMC. Higher speeds will be added in subsequent patches. >>>> ... >>>> + >>>> + sdhci_am654->clk_ahb = devm_clk_get(dev, "clk_ahb"); >>>> + if (IS_ERR(sdhci_am654->clk_ahb)) { >>>> + dev_err(dev, "clk_ahb clock not found.\n"); >>>> + ret = PTR_ERR(sdhci_am654->clk_ahb); >>>> + goto err_pltfm_free; >>>> + } >>> >>> Did you intend not to enable clks? >> >> Yes. Clocks get enabled as a part of pm_runtime calls. > > Ok, but that could use an explanatory comment. Also why get a reference to > clk_ahb if that reference is never used? > You're right. It was being used in sdhci-of-arasan because other users needed to call enable() and disable(). I missed out on removing it when porting over. Will remove it and add the comment. Thanks, Faiz