Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1999084imu; Sat, 22 Dec 2018 09:49:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN4rVmZj1LYnvXMXCxzP8pKMqKAC2PvvIe6ksUf6Rw+0Q1UzbYbEXXsRC8+fNc8zc9LKSVB6 X-Received: by 2002:a63:f74f:: with SMTP id f15mr6889091pgk.190.1545500974555; Sat, 22 Dec 2018 09:49:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545500974; cv=none; d=google.com; s=arc-20160816; b=D5FaimwCVbTkCNjobS5lVT4VoQAHVIL/2XEGxNt7Q2E22AG7fhexIewLyCd9/s+MAJ 0bXWt4SSBgJcHabDR9jMVDPT9go8QZSWxAlohDTeAcI263mRnlcTWr+pScOiIfLdcyt0 J8Ba3VpIZY9Gcle6vnpcuBjkWu3ERjTiwZKNDbl33BQ40ETcbM5/t7FZOST6tHK2eFe9 g/eYR+z4VZhYIgLAFWsyoeztl6ok1gE6O8EJiAevf7LIr232pf1MVmmWIytRhuNmZUix ztf0GJFoWFe4+vMxGDm+iV2tv3lnl1JQ2l1PfiQP/EIvc/RLOewTikac2tG+tTjOKGcW aW0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:references:user-agent :in-reply-to:from:to:cc:subject:content-transfer-encoding :mime-version:dkim-signature; bh=iZDYs+olWmN9eCoPKHeGY8ZUD2dKpZjzUrJxmh5HCkw=; b=nDkXy9YHllGXrb+R8GE3OisVxPnYTOtBr+uW7v7XFIV/qt2z61Tt0/1TCatovCujn9 n52GwsQpvVS4Cv6ggdacavreCGonZo9DhxyuX7PJewzaBvEhtmBhKWq6hnmB6k26ISv4 7O4ptDrW2fxsYtkZnsTnBIaDPAHV31YP5T0B4vsyVdJsPx1KK47baznUyp5SwSWKAibE LVU5wxrMOfhY4edhmI5NRhw9jITTyd9PElSAggKHAJPzX+g2+684WWAWGfEcrF4V+Xsw PPNt/CcaM1gwbyZVwRWM1HTrWE5YuEjfEgPhMpzY00hVQQxw4D/w5o7d00OfYkjoMXXi 2FmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="g1DjJ/A5"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4si3655145pgv.512.2018.12.22.09.49.19; Sat, 22 Dec 2018 09:49:34 -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=@kernel.org header.s=default header.b="g1DjJ/A5"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390511AbeLUUoj (ORCPT + 99 others); Fri, 21 Dec 2018 15:44:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:57912 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388218AbeLUUoj (ORCPT ); Fri, 21 Dec 2018 15:44:39 -0500 Received: from localhost (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3934A21906; Fri, 21 Dec 2018 20:44:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545425078; bh=g942pk09EJ1iGKMMOHXnbS57mF70xjkbIi8RYZsDTkg=; h=Subject:Cc:To:From:In-Reply-To:References:Date:From; b=g1DjJ/A5I04U20IDH4yJq3T9oeyTabOOdqCXVrQhp54B/Lk+DwOM7o/sO/LJptBKL yxOQatou3sWXHP43kD03f+8B3+kEXPnEZVim8BMvKvjHGiXV/n33OahD6GJ7jxNBVP 9vZ8B8tPVy+b3yhTf1AAiUUNYoBA0MZWsyxkrdfM= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v5 7/8] clk: lochnagar: Add support for the Cirrus Logic Lochnagar Cc: broonie@kernel.org, lee.jones@linaro.org, linus.walleij@linaro.org, mturquette@baylibre.com, robh+dt@kernel.org, mark.rutland@arm.com, lgirdwood@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, patches@opensource.cirrus.com, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org To: Charles Keepax From: Stephen Boyd In-Reply-To: <20181221135037.GH16508@imbe.wolfsonmicro.main> User-Agent: alot/0.8 References: <20181120141631.18949-1-ckeepax@opensource.cirrus.com> <20181120141631.18949-7-ckeepax@opensource.cirrus.com> <154356443157.88331.15749597863624143993@swboyd.mtv.corp.google.com> <20181221135037.GH16508@imbe.wolfsonmicro.main> Message-ID: <154542507738.13075.5210584076841559233@swboyd.mtv.corp.google.com> Date: Fri, 21 Dec 2018 12:44:37 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Charles Keepax (2018-12-21 05:50:37) > On Thu, Nov 29, 2018 at 11:53:51PM -0800, Stephen Boyd wrote: > > Quoting Charles Keepax (2018-11-20 06:16:30) >=20 > > > + break; > > > + default: > > > + dev_err(priv->dev, "Unknown Lochnagar type: %d\n", pr= iv->type); > > > + return -EINVAL; > > > + } > > > + > > > + if (!priv->parents) > > > + return -ENOMEM; > > > + > > > + for (i =3D 0; i < priv->nparents; i++) { > > > + j =3D of_property_match_string(np, "clock-names", > > > + priv->parents[i]); > > > + if (j >=3D 0) > > > + priv->parents[i] =3D of_clk_get_parent_name(n= p, j); > >=20 > > Isn't this of_clk_parent_fill()? But there are holes or something? > >=20 >=20 > I guess rather than a fill, this is perhaps more of a name and > replace. I could make this a core function if you prefer? I think > there are a couple of other drivers that could also use it, > although might be worth doing that as a separate series rather > than holding this one up. No worries. I'm actively changing the parent_names design anyway so this is fine. >=20 >=20 > > > +static struct platform_driver lochnagar_clk_driver =3D { > > > + .driver =3D { > > > + .name =3D "lochnagar-clk", > > > + .of_match_table =3D of_match_ptr(lochnagar_of_match), > >=20 > > I suspect of_match_ptr() makes the build complain about unused match > > table when CONFIG_OF=3DN. Can you try building it that way? > >=20 >=20 > The driver depends on the MFD which in turn depends on CONFIG_OF > so that shouldn't be a problem. Ok. Then it's really not needed and it's better to drop the usage of of_match_ptr() then. >=20