Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751307AbdCQRYB (ORCPT ); Fri, 17 Mar 2017 13:24:01 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:57799 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751107AbdCQRX7 (ORCPT ); Fri, 17 Mar 2017 13:23:59 -0400 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com v2HHNVLd028912 X-Nifty-SrcIP: [209.85.161.181] MIME-Version: 1.0 In-Reply-To: <1489754503-16559-1-git-send-email-piotrs@cadence.com> References: <1489754302-10996-1-git-send-email-piotrs@cadence.com> <1489754503-16559-1-git-send-email-piotrs@cadence.com> From: Masahiro Yamada Date: Sat, 18 Mar 2017 02:23:30 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [v3 3/3] mmc: sdhci-cadence: Update PHY delay configuration To: Piotr Sroka Cc: linux-mmc , Adrian Hunter , Ulf Hansson , Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1321 Lines: 58 Hi Piotr, 2017-03-17 21:41 GMT+09:00 Piotr Sroka : > DTS properties are used instead of fixed data > because PHY settings can be different for different chips/boards. > > Signed-off-by: Piotr Sroka > --- > Changes for v2: > - dts part was removed from this patch > - most delays were moved from dts file > to data associated with an SoC specific compatible > - remove unrelated changes > --- > Changes for v3: > - move all delays back to dts because they are also boards dependent > - prefix all of the Cadence-specific properties with cdns prefix > - put checking delay properties inside the for loop > instead of using a lot of single if expressions I am OK with this approach because I do not have a better idea. Only two minor comments below. > @@ -62,10 +66,33 @@ > */ > #define SDHCI_CDNS_MAX_TUNING_LOOP 40 > > +static const struct of_device_id sdhci_cdns_match[]; > + You forgot to remove this. > @@ -227,6 +267,7 @@ static int sdhci_cdns_probe(struct platform_device *pdev) > struct sdhci_cdns_priv *priv; > struct clk *clk; > int ret; > + struct device *dev = &pdev->dev; > > clk = devm_clk_get(&pdev->dev, NULL); If you add "dev", please use it for devm_clk_get, too. -- Best Regards Masahiro Yamada