Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp627165imm; Tue, 15 May 2018 06:53:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrdt57luS5b6bgrC68Ffx2wBVK1UND/IwHvs7JGriunsRUBF7MTGCYwM9NkvVljjZvZgJ4y X-Received: by 2002:a17:902:848e:: with SMTP id c14-v6mr14580951plo.129.1526392438032; Tue, 15 May 2018 06:53:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526392437; cv=none; d=google.com; s=arc-20160816; b=tMjxh5WbUN3vAJwxSn+2qeKZGS8Bh3860bMGjeGkkHkK7r98KBKsjGDjyFELhpiSgj XdBE0FWm0UCX3F7wyEvvftGUCi3iCBAq0STvFDEE5RTzNeBkWhm1WvXe6O/Zf4YsdCuF 61iTCKlqX0MY69aaxVbe2kpbrk5yyv+aOVc2F09dS6fnCkNhUfKdXUiGicaCD7+mM5jA 4JoaZFcsF18R5NEwei1Lb0v0zyNtngrBdcTfERfCmni8Zv4ahkf39nq5M2kMzll7AQlY wk1ddxDEfko+vw+GPV0dj5IjXHlxe7GTvsBXjMwoxcJHMibftzJRVXgAH9aY7wyno9+t qfsA== 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 :arc-authentication-results; bh=V9fUw3qLiR55TdCO9qDDrgOuKmRXpJTOCGwqXvCaBcw=; b=nqQpXnRQ/wHzGsHAbx1gfFBTn8VjDqzAYFBS2RMTKAJIKh7At25ZHptvfakZz6ptVv UXiq4PTAs87Fny/ysNxNnmew+DWHIrWhaPf5JcAx0Q9gOBMU8/HjBFwLNSytsSHND+cF ApCXyWt66QWjeWaEJfU6dglpa7en3Lx4a+W7CLANtYZs19nhKyNBZaMDBiuJ+N9vXIvQ tCC2izI+0sWzVnzvB7aLg1qofhpdrgn1O/JcW8Tm9xHyv37YqM706sMS4WUDpHBWZTzV QMagKJZWWssHFG0YExDMuI1H2cCEGQNp/UPjB3E71ZV7BO+IHjL4WsaP1Pij2jDHXWqH q3og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=iUMjwdIB; 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 x10-v6si88405pgr.45.2018.05.15.06.53.24; Tue, 15 May 2018 06:53:57 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=iUMjwdIB; 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 S1752863AbeEONdG (ORCPT + 99 others); Tue, 15 May 2018 09:33:06 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:28424 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752115AbeEONdF (ORCPT ); Tue, 15 May 2018 09:33:05 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w4FDVxuQ018124; Tue, 15 May 2018 08:31:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1526391119; bh=V9fUw3qLiR55TdCO9qDDrgOuKmRXpJTOCGwqXvCaBcw=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=iUMjwdIBzvQk1PcUYcyuWwxIFwrgrw5W2OjNIYkQsheH7VnxpjOApqCw0K5BI4uBK Fg16MAK2ZwrsO6y0kjNq5GEZMHrDhXeYjx5HqzUrBEXtVLb+KPf1FCzeZCah/+n5wf PZo1oqhiL4hRgiHSy4xQzzsydPLxDbA6aAHncBjw= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4FDVxia004327; Tue, 15 May 2018 08:31:59 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 15 May 2018 08:31:59 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 15 May 2018 08:31:59 -0500 Received: from [172.24.190.172] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4FDVqvm032296; Tue, 15 May 2018 08:31:55 -0500 Subject: Re: [PATCH v10 02/27] clk: davinci: da850-pll: change PLL0 to CLK_OF_DECLARE To: David Lechner , , , CC: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Kevin Hilman , Bartosz Golaszewski , Adam Ford , References: <20180509172606.29387-1-david@lechnology.com> <20180509172606.29387-3-david@lechnology.com> From: Sekhar Nori Message-ID: <9203489d-0a5a-103a-67ea-d3e89bb7ebc4@ti.com> Date: Tue, 15 May 2018 19:01:52 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180509172606.29387-3-david@lechnology.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 On Wednesday 09 May 2018 10:55 PM, David Lechner wrote: > +void of_da850_pll0_init(struct device_node *node) > { > - return of_davinci_pll_init(dev, dev->of_node, &da850_pll0_info, > - &da850_pll0_obsclk_info, > - da850_pll0_sysclk_info, 7, base, cfgchip); > + void __iomem *base; > + struct regmap *cfgchip; > + > + base = of_iomap(node, 0); > + if (!base) { > + pr_err("%s: ioremap failed\n", __func__); > + return; > + } > + > + cfgchip = syscon_regmap_lookup_by_compatible("ti,da830-cfgchip"); It will be nice to handle the error case here. > + > + of_davinci_pll_init(NULL, node, &da850_pll0_info, > + &da850_pll0_obsclk_info, > + da850_pll0_sysclk_info, 7, base, cfgchip); Apart from that, it looks good to me. Reviewed-by: Sekhar Nori Thanks, Sekhar