Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp14436534ybl; Mon, 30 Dec 2019 10:05:34 -0800 (PST) X-Google-Smtp-Source: APXvYqxcElMx+vAbpbsz+0PE9kcyXMtArCF4H8ADwmacex9acPiY+s4onyBwjQgXstkaJab05UL+ X-Received: by 2002:a9d:32f:: with SMTP id 44mr27336204otv.234.1577729134418; Mon, 30 Dec 2019 10:05:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577729134; cv=none; d=google.com; s=arc-20160816; b=UchqVI/+gydFOAnUHU/COJbcXKxz7CWMZr1i3w0BtGoG6cUk9Tx6fRIgd9utV8RAyc gKu7obP/pf7KX8e0BPWo0lwC4PZALbGDPdLUp+4WBQqsZffuvRfi+DgQZX8oSUTlG2a7 PsiBtloEYwwWzov1at8NwQQfTW+rG5HCdZvoQtb/YGUTL6ZNuXbnlaDBamQmz0rt37q2 o6jJ1dr2N16cWZaTymp3VmieOI6DXHEuBv96mrQtuQ+WabGdJ7nWvq8BZcpi499rs42N 0xQKSNH0sq2Zyb5/oE8gg+9tEAG5USyYc6GQtQzcnVzuST3nl0/XKV+udokq/Y1KP4Al 4Hlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:user-agent:subject:to:cc :from:references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=y9T43FT9hh0/tQWCWocRqUk4waZ994tBZUmtRw+nPN8=; b=r148Ua/xNh5rsYXXAcTdZYKz8Ebhi90BJxXljVM01z9wLax3wpWZNqHfNDGmDsEdRb GczCSPFgsuuTFfIU6WIwnOBOVGeGIodsBoIDttys6qt25oNhEoO+5NXKf/Y6momExmUF hvp35p27h6CPhqkOElW0yJN1XgiwaGi9vza9rwlZC0ve3y2uAiIDlhaH5ac8S5kEubOx bBb0/TyJ3u4SxwAJNRzIM8Rkc7DaGU1xmctI9T6+aqRZVcTYaneUiXFEJHE2N/FR2IJQ JPV339CVbfdd8UKZJDuf0SmXiIpxKpH+bN+iu7brADq3gXQVhw5/srH+KTA9GyaI8XhR tQ2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2GV3WUJ2; 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 g9si22838719otq.68.2019.12.30.10.05.23; Mon, 30 Dec 2019 10:05: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=2GV3WUJ2; 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 S1727520AbfL3SEp (ORCPT + 99 others); Mon, 30 Dec 2019 13:04:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:33888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726602AbfL3SEo (ORCPT ); Mon, 30 Dec 2019 13:04:44 -0500 Received: from kernel.org (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 9E700206CB; Mon, 30 Dec 2019 18:04:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577729083; bh=PefIuhleT62reL1BGXQA1Kqd0QhpZCj1UPeZANIHGDk=; h=In-Reply-To:References:From:Cc:To:Subject:Date:From; b=2GV3WUJ23FqwRWHpgiNTl/gBeW2YfcgSVFxrhVmsATo0HkEcGXIFzRiHNrw/mD+nn YVjGFZcFxWf/f/ZPcBKC2THggoyc9dhBrI+6IDzx1apM7yhOzsTUVmNRaJXTM6l/J4 UARnIv23D82aqMx8vuY2SOVWGOoXcnCThVfdc6pc= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20191227022652.GH1908628@ripper> References: <20191125135910.679310-1-niklas.cassel@linaro.org> <20191125135910.679310-8-niklas.cassel@linaro.org> <20191219062339.DC0DE21582@mail.kernel.org> <20191220175616.3wdslb7hm773zb22@flawful.org> <20191224021636.CF47E20643@mail.kernel.org> <20191227022652.GH1908628@ripper> From: Stephen Boyd Cc: Niklas Cassel , Andy Gross , Niklas Cassel , linux-arm-msm@vger.kernel.org, amit.kucheria@linaro.org, Michael Turquette , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org To: Bjorn Andersson Subject: Re: [PATCH v3 7/7] clk: qcom: apcs-msm8916: use clk_parent_data to specify the parent User-Agent: alot/0.8.1 Date: Mon, 30 Dec 2019 10:04:42 -0800 Message-Id: <20191230180443.9E700206CB@mail.kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Bjorn Andersson (2019-12-26 18:26:52) > On Mon 23 Dec 18:16 PST 2019, Stephen Boyd wrote: >=20 > > Quoting Niklas Cassel (2019-12-20 09:56:16) > > > On Wed, Dec 18, 2019 at 10:23:39PM -0800, Stephen Boyd wrote: > > > > This is odd. The clks could be registered with of_clk_hw_register()= but > > > > then we lose the device provider information. Maybe we should searc= h up > > > > one level to the parent node and if that has a DT node but the > > > > clk controller device doesn't we should use that instead? > > >=20 > > > Hello Stephen, > > >=20 > > > Having this in the clk core is totally fine with me, > > > since it solves my problem. > > >=20 > > > Will you cook up a patch, or do you want me to do it? > > >=20 > >=20 > > Can you try the patch I appended to my previous mail? I can write > > something up more proper later this week. > >=20 >=20 > Unfortunately we have clocks with no dev, so this fail as below. Adding > a second check for dev !=3D NULL to your oneliner works fine though. >=20 > I.e. this ugly hack works fine: > core->of_node =3D np ? : (dev ? dev_of_node(dev->parent) : NULL); >=20 Ok, thanks for testing!