Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp747324ybl; Wed, 21 Aug 2019 05:04:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPu+Zdxgph6sSv2/ppgNaEbShAp77Jeo/HGxkHvLH7h8s/Mp9Q0VjP7oy//4jLMyNWhAyA X-Received: by 2002:a17:90a:32a3:: with SMTP id l32mr5044904pjb.14.1566389091037; Wed, 21 Aug 2019 05:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566389091; cv=none; d=google.com; s=arc-20160816; b=neEahfhIyRb9DMI2ZX/WrWX27KXA/l57gmu5Ztzr9QWoa8O79Hn7cn71xiQ7WGy6yl aSYGiuAHGvM1/kKT9/OiCNp39RRUmT4Ow6wtc+y5JfDtHyMRkHZcxy19su9pDOWz4Oeq w92/nkJNYPeTw2lPRhXD4THyfktJoDyN6Cu1332jP8n41g8tKEAhgLipolG23y8cyzGP g+aPGXSBvDmWnXLepJXXtX5UyxUdx2U30O6BzkdSxBRcal1ytoHjTLbgJADQhaNzb7I5 RQWezWytUMU1yFuziEXpQcCXg3U0SqPUOTzxteI3orwhRIfM04W1oNFYnzj2gW+ZhlZ5 vIRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=FqdAW+SpBsQVGBH/BJ/zEWOflcD6t6CrHovkWRJNIqg=; b=lqrUpklO95Dz2wH1AjMra0YfA1R3vr8L7XLeRzPkZy1yRijpSF9sAosugD+0d8IOqJ ThF3yeJ71CCT3vO6G43pwvt5eMlSda0VIvbtQPRt313KEym2Z29n5dH0FJfgceV3rmaN vURrqzaxobUtSbrB6INVr+mCY2oA1XMZ7XwxrIsPeC147YQQehb4oNoNFhyszTZ7Lq7I iGCtysHh3RZFr/ny6TwRIA8D4L0v5Dq/DDFPNaRhg7NznvrEP4nXz2o6xvmBrNqNLFLu EuMQRspnuSvTtiMN6qPA15NEad9z/npjfEvGJdc+m1j65+Nq4h5CWJtq9BeBg/rjgKAI 0g6A== 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 m22si14128292pgh.190.2019.08.21.05.04.34; Wed, 21 Aug 2019 05:04:51 -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 S1727484AbfHUMBq (ORCPT + 99 others); Wed, 21 Aug 2019 08:01:46 -0400 Received: from mga05.intel.com ([192.55.52.43]:27218 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbfHUMBq (ORCPT ); Wed, 21 Aug 2019 08:01:46 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Aug 2019 05:01:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,412,1559545200"; d="scan'208";a="178483430" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.145]) by fmsmga008.fm.intel.com with ESMTP; 21 Aug 2019 05:01:44 -0700 Received: from andy by smile with local (Exim 4.92.1) (envelope-from ) id 1i0PJ8-0007BJ-Av; Wed, 21 Aug 2019 15:01:42 +0300 Date: Wed, 21 Aug 2019 15:01:42 +0300 From: Andy Shevchenko To: "Ramuthevar,Vadivel MuruganX" 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 Subject: Re: [PATCH v3 2/2] phy: intel-lgm-emmc: Add support for eMMC PHY Message-ID: <20190821120142.GX30120@smile.fi.intel.com> References: <20190821101118.42774-1-vadivel.muruganx.ramuthevar@linux.intel.com> <20190821101118.42774-2-vadivel.muruganx.ramuthevar@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190821101118.42774-2-vadivel.muruganx.ramuthevar@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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, 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 > +# > +# 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. > +#define FRQSEL_150M 3 > +#define FRQSEL_MASK GENMASK(24, 22) > +#define FRQSEL_SHIFT(x) (((x) << 22) & FRQSEL_MASK) > + unsigned int freqsel = 0; Redundant assignment. > + udelay(5); + blank line > + regmap_update_bits(priv->syscfg, EMMC_PHYCTRL1_REG, PDB_MASK, 1); And here missed to address one of my comments. > + /* > + * We purposely get the clock here and not in probe to avoid the > + * circular dependency problem. We expect: We don't use double space > + * - 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 = ...; -- With Best Regards, Andy Shevchenko