Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5993052ybe; Tue, 10 Sep 2019 11:52:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxw9sstdaTT2FJCLRrZf3R61nMoyTVzXhMTG+NbtWz/4ijIALyXLoWxBMRObaYsMNMVWPUn X-Received: by 2002:a17:906:2929:: with SMTP id v9mr26031268ejd.108.1568141551696; Tue, 10 Sep 2019 11:52:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568141551; cv=none; d=google.com; s=arc-20160816; b=f/HL36PWEJxbWfI24570BcEtamGM0r01frGNC3uDMKQ6S+lf8CZIwGXzmx8EsMOAFh phVHTRHezX41padI11+EWTW9iR50g+D1lonwdJ9o2bqZcNajw31WWtVFecgiK6RD9QWO LTyxEonHZUdrAka/rSp3HlR0DNPScysQhQX4lTiol3bOCXaDDoBf+Tyc/dqMGVQdD2FC WbVVxWDjHlCM9XtcuNcsQMMkY3h+jK1nYyLF/RhbJQcj86akinZ8pNKlfHhBPix0oaZx xXFxEH0IuxxPoiLMdG8Ulo4Zm2sJgPGBYjuKUXoegGX97qbUoDnlnxKvtHrXwDaOFxpd WCEw== 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:from :to:cc:references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=P5rtp7PeTPfB+zNe/I+31uHjJoDzWoMIVCCwj/bBvYA=; b=WuMxH+FIVK2Eu04uDkwI/JiZSqwt50ibpXNUlUudiETcpI8pxw8VseLr+67VMlChRx aP02FVxCya6ABy/eStsyMhrvW9LJlwPTgYPyerWtQVBkCkgzjjU4SJL7GwQ6z0nWRW9g TsfVcbh1CtS692l/gGyNHO8Mt+6elsKB92hQWmbh+O/xthTqM2iBnUW04D4kytDg5eru XqGmMoL8a0Dt1DNGMpzYP+vUFj0JlpsdklKUDPsodMc56Umt0v5d/tIDJT/Op9tewuyx kfpDQ3tWT3wlHYm0g+U6PrPVMXqNUxA75SGRJQbqmdGjfOpggeieF5m4tikaFI3AHxM9 Xdnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Z4lnQ+1/"; 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 g5si11635556edb.324.2019.09.10.11.52.07; Tue, 10 Sep 2019 11:52:31 -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=@kernel.org header.s=default header.b="Z4lnQ+1/"; 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 S1728540AbfIJJOj (ORCPT + 99 others); Tue, 10 Sep 2019 05:14:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:37536 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbfIJJOi (ORCPT ); Tue, 10 Sep 2019 05:14:38 -0400 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 CCA78208E4; Tue, 10 Sep 2019 09:14:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568106877; bh=DgC/aNJtAOc1T0MEY/ZcIlzwdK2cF+tcElqdvDvsEFY=; h=In-Reply-To:References:Cc:To:From:Subject:Date:From; b=Z4lnQ+1/EKOE1cLMXP9DTuyWPWjAysbttbXZLxnHW1JWIkctquRHj9fhjR5pAfnEX /xZgGoIsd0qjQKlfl5s+Zu4PGrgR3H6M2CJOTF12qSdOlGimUf2sevwvXYjX6zZ/0g H8hIahkC2rZMZcSg+/hQNF7KLVUbjNkchVkm1Cz8= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20190909165408.GC23964@igloo> References: <20190826164510.6425-1-jorge.ramirez-ortiz@linaro.org> <20190826164510.6425-2-jorge.ramirez-ortiz@linaro.org> <20190909102117.245112089F@mail.kernel.org> <20190909141740.GA23964@igloo> <20190909161704.07FAE20640@mail.kernel.org> <20190909165408.GC23964@igloo> Cc: "Jorge Ramirez-Ortiz, Linaro" , agross@kernel.org, mturquette@baylibre.com, bjorn.andersson@linaro.org, niklas.cassel@linaro.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org To: "Jorge Ramirez-Ortiz, Linaro" From: Stephen Boyd Subject: Re: [PATCH 2/5] clk: qcom: apcs-msm8916: get parent clock names from DT User-Agent: alot/0.8.1 Date: Tue, 10 Sep 2019 02:14:36 -0700 Message-Id: <20190910091437.CCA78208E4@mail.kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Jorge Ramirez-Ortiz, Linaro (2019-09-09 09:54:08) > On 09/09/19 09:17:03, Stephen Boyd wrote: > > But now the binding is different for the same compatible. I'd prefer we > > keep using devm_clk_get() and use a device pointer here and reorder the > > map and parent arrays instead. The clocks property shouldn't change in a > > way that isn't "additive" so that we maintain backwards compatibility. > >=20 >=20 > but the backwards compatibility is fully maintained - that is the main re= ason > behind the change. the new stuff is that instead of hardcoding the > names in the source - like it is being done on the msm8916- we provide > the clocks in the dts node (a cleaner approach with the obvious > benefit of allowing new users to be added without having to modify the > sources). >=20 This is not a backwards compatible change. > > > --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi > > > +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi > > > @@ -429,7 +429,8 @@ > > > compatible =3D "qcom,msm8916-apcs-kpss-global", "syscon"; > > > reg =3D <0xb011000 0x1000>; > > > #mbox-cells =3D <1>; > > > - clocks =3D <&a53pll>; > > > + clocks =3D <&gcc GPLL0_VOTE>, <&a53pll>; > > > + clock-names =3D "aux", "pll"; > > > #clock-cells =3D <0>; > > > }; > > > = =20 Because the "clocks" property changed from <&a53pll> to <&gcc GPLL0_VOTE>, <&a53pll> and that moves pll to cell 1 instead of cell 0.