Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp586963ybl; Thu, 22 Aug 2019 01:36:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXw/Vb5jYW2oudIW7z754VdPZcx42eqN+4wechAS98YvnAgED2oMnnpG8XE36v5X2ko30g X-Received: by 2002:a17:902:7c10:: with SMTP id x16mr30337308pll.31.1566462972164; Thu, 22 Aug 2019 01:36:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566462972; cv=none; d=google.com; s=arc-20160816; b=fP14Tiuc3xZ7aG56/aZgZCDRoH7bmwHJP27k3zdO3EuH6f7PCGAKmG1Nu7KiiJR+lP BIa4WuxyX4q2EkDqmscu6dtAjbYdhR3iHEI/AqPeliuU9mVPWiTRqBuMuLTipV4mH7WI veZv5vioBpxzNMTi2DAv6DwkN1K4/YUiqR8IXsBnzhxjSCc79ALJtKnY7UB6yZOqDcbQ 9FI/+cElFEs07aC6MmP2bfsE4a0HWBg2+Cc0xZV+96UxPNYIvm1ZKRPATe0WWU3N7hPm HBf3s1/wW61wCE/BNwwr9y+YWNmUlwKhsN+ijFnq2XL7HX8Exkl3DRZNQwg2ZSH/HP+L s3EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=IwHbN7K9WNoWFIODPJd/LOcMSmAlr9hcJh3qC++gdiw=; b=dSu/eBozRrka1wXlaBxPJ+9M3p7Fpy7GoNzNzBmCvdqxXKlZ41XWQX6yc4RewESX7e hFf96knS95yrc3x3PeTw3jcNriw8m1w+IRMbVtpP0rzSGDKZEcbSmIhSLmhw3rGupz1b bZjk3G+gMgQNh8e9N6SqfwDN2OrgJjCzRmwrfqN5RDebGm1AevlY87Gow+xaIhF+7HhS 7IYxY5Xo7pQEerppOHnERlJS1bt7HE7EdXP9hOAKCzHYycwnASQOlh/fY2bN0+n014GA 1+vOa+hvqlPnMxr9PimE2B2BBYgmxEhQlrxPTFdrUwjBR2NXrperJFzyG+NZfuJ/u/TU SNwQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 12si16177874pgu.469.2019.08.22.01.35.55; Thu, 22 Aug 2019 01:36:12 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730420AbfHVGyz (ORCPT + 99 others); Thu, 22 Aug 2019 02:54:55 -0400 Received: from mga11.intel.com ([192.55.52.93]:23674 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725793AbfHVGyz (ORCPT ); Thu, 22 Aug 2019 02:54:55 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Aug 2019 23:54:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,415,1559545200"; d="scan'208";a="183780244" Received: from linux.intel.com ([10.54.29.200]) by orsmga006.jf.intel.com with ESMTP; 21 Aug 2019 23:54:54 -0700 Received: from [10.226.38.19] (vramuthx-mobl1.gar.corp.intel.com [10.226.38.19]) by linux.intel.com (Postfix) with ESMTP id 2F071580258; Wed, 21 Aug 2019 23:54:52 -0700 (PDT) Subject: Re: [PATCH v3 2/2] phy: intel-lgm-emmc: Add support for eMMC PHY To: Andy Shevchenko Cc: kishon@ti.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, cheol.yong.kim@intel.com, qi-ming.wu@intel.com, peter.harliman.liem@intel.com References: <20190821101118.42774-1-vadivel.muruganx.ramuthevar@linux.intel.com> <20190821101118.42774-2-vadivel.muruganx.ramuthevar@linux.intel.com> <20190821120142.GX30120@smile.fi.intel.com> From: "Ramuthevar, Vadivel MuruganX" Message-ID: Date: Thu, 22 Aug 2019 14:54:52 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190821120142.GX30120@smile.fi.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, On 21/8/2019 8:01 PM, Andy Shevchenko wrote: > On Wed, Aug 21, 2019 at 06:11:18PM +0800, Ramuthevar,Vadivel MuruganX wrote: >> From: Ramuthevar Vadivel Murugan >> >> Add support for eMMC PHY on Intel's Lightning Mountain SoC. >> --- /dev/null >> +++ b/drivers/phy/intel/Kconfig >> @@ -0,0 +1,8 @@ > Missed licence tag Thank you so much for the review comments, will update. >> +# >> +# Phy drivers for Intel X86 LGM platform >> +# >> +#define EMMC_PHYCTRL2_REG 0xb0 >> +#define FRQSEL_25M 0 > I would still leave 1 and 2 with corresponding names for sake of documentation. Ok, will add for the sake of documentation. >> +#define FRQSEL_150M 3 >> +#define FRQSEL_MASK GENMASK(24, 22) >> +#define FRQSEL_SHIFT(x) (((x) << 22) & FRQSEL_MASK) >> + unsigned int freqsel = 0; > Redundant assignment. Noted, will update. >> + udelay(5); > + blank line Noted, will update > >> + regmap_update_bits(priv->syscfg, EMMC_PHYCTRL1_REG, PDB_MASK, 1); > And here missed to address one of my comments. Yes, will update. >> + /* >> + * We purposely get the clock here and not in probe to avoid the >> + * circular dependency problem. We expect: > We don't use double space Noted, will update. >> + * - PHY driver to probe >> + * - SDHCI driver to start probe >> + * - SDHCI driver to register it's clock >> + * - SDHCI driver to get the PHY >> + * - SDHCI driver to init the PHY >> + * >> + * The clock is optional, so upon any error just return it like >> + * any other error to user. >> + * >> + */ >> + struct device *dev = &pdev->dev; >> + struct intel_emmc_phy *priv; >> + struct phy *generic_phy; >> + struct phy_provider *phy_provider; >> + struct device_node *np = dev->of_node; > Group it with other assignment(s), i.e. dev = ... above. > > struct device *dev = ...; > struct device_node *np = ...; agree, will update. --- With Best Regards Vadivel Murugan