Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp38859ybj; Mon, 4 May 2020 15:38:03 -0700 (PDT) X-Google-Smtp-Source: APiQypJH5CetmDHVfm0Yi5f7i3rSkJxFmMfggfq7bfZe7Fs3Fq+fU3fxS8EW5lWvCLVaHe60Z+vs X-Received: by 2002:aa7:c5d1:: with SMTP id h17mr227865eds.109.1588631883512; Mon, 04 May 2020 15:38:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588631883; cv=none; d=google.com; s=arc-20160816; b=aLOZE1U5McJ9VvqyUwAZoz1fZQNRKnqdiJnY+3pjKyoH4wL+BTWYVESFZ4xpd1acUc EbxLPpHOHlNjFvnlCzyyF+Pd7vxwrbqg1Y4Q51ZG3oMu+SASglCS3hOilGSAREiKroUs mgnFuAEAM3bnyQaKCiNUb2z9QUMOEBF5cJ4pmi6PpBzCUmvfzoXW7TqaHnitzS14wVYq 429OCFCwbAWNSmEqc2JKkseq+30SHcSZ+6biezuuYVxkCe+jDSnjpFz8TKA+YhGA1UyH HBkWzYORAiEYMuGFE+9u6U+ZTxuBbNgxpXgBXbxy5Ccy8CORixLoAitCn9SM7wGvEHaI P8lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZB0v9QH2n/gkPkW++B5wHT8GzAfpugmeGQ4ErwWPXw0=; b=PF7KZD1EHYQpM/tmXYmqvEh7DXWC2t3UNNgVZPvPQgf31tKvP++YHacSoB/aFVTxIi kCHxo+BGr6D5amU/TseKawRixh12gcxVKp3nkiPjRx87HJEP4UathiRh+QFBTSfoKQb8 cwSqHUhXVwZR3NiyxuywSBWhayx/P0PiQ4OpshViKFxP6XTi9DhGYhy3sfVcl/jtnJaJ 9WmZAEw+uyiXSqSLnc945HcIX0Y4+VAGnHR15ztmv709BhuScayEhT9HHOm7+WCNpPSv fH2dG5ps5V1hazgyAuGcFLiAC1nx8ZuL7ewHqLozPYGYIy4Oc5LBlhZ5gX+4kmmzzPuv AGlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=eDpXtSDz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si185738edt.393.2020.05.04.15.37.40; Mon, 04 May 2020 15:38:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=eDpXtSDz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728170AbgEDWgJ (ORCPT + 99 others); Mon, 4 May 2020 18:36:09 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:30039 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726419AbgEDWgJ (ORCPT ); Mon, 4 May 2020 18:36:09 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 49GHks2CQ0z8r; Tue, 5 May 2020 00:36:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1588631766; bh=r9Ra0YsTNI47z6MEyzSs2RXlk4X+BQLFr0esPWmvCXg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eDpXtSDzNBSoyYdFn2P0bsWoUvPEC9Um/JcPWFcXE0GRu5RqGFbwQ3WVQCIvasKj/ ezBtzKnZHmBd4lbrfJp0Iy8KuEWGqxK67p2cywxnPWQFSyUK/cQwvrI6zPlCPqLFrX nf5HbWEGPa8+5u6gbVOo0duiz+GqulhBTx6zSG3HpEyQoVEZr7dqi1XSCnW4MrgZF1 i2y92nuXpIpcfsBqLJg9iBbKW1t8iNacBP2ILye/1C7wsCrHrmzbPPWFfDlui0iQWP UHPObRQevE9wXlMf8WjCsBtYCxqKEsrxNTTjaHm2X0HVQaTmnQM+jIsuyxFH8MufYs 7X1mcVCx41/sQ== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail Date: Tue, 5 May 2020 00:36:04 +0200 From: =?iso-8859-2?Q?Micha=B3_Miros=B3aw?= To: Alexandre Belloni Cc: Ludovic Desroches , Michael Turquette , Nicolas Ferre , Rob Herring , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 2/3] clk: at91: allow setting PCKx parent via DT Message-ID: <20200504223604.GA16549@qmqm.qmqm.pl> References: <20200504204447.GL34497@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200504204447.GL34497@piout.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 04, 2020 at 10:44:47PM +0200, Alexandre Belloni wrote: > On 04/05/2020 22:19:17+0200, Micha? Miros?aw wrote: > > This exposes PROGx clocks for use in assigned-clocks DeviceTree property > > for selecting PCKx parent clock. > > > > Signed-off-by: Micha? Miros?aw > > Acked-by: Alexandre Belloni > > --- > > v2: rebase and update to clk/clk-at91 branch > > v3: rebase > > v4: no changes > > v5: no changes > > v6: no changes > > --- > > drivers/clk/at91/at91rm9200.c | 6 ++++-- > > drivers/clk/at91/at91sam9260.c | 5 ++++- > > drivers/clk/at91/at91sam9g45.c | 6 ++++-- > > drivers/clk/at91/at91sam9n12.c | 6 ++++-- > > drivers/clk/at91/at91sam9rl.c | 4 +++- > > drivers/clk/at91/at91sam9x5.c | 4 +++- > > drivers/clk/at91/pmc.c | 12 ++++++++++-- > > drivers/clk/at91/pmc.h | 5 ++++- > > drivers/clk/at91/sam9x60.c | 4 +++- > > drivers/clk/at91/sama5d2.c | 4 +++- > > drivers/clk/at91/sama5d3.c | 6 ++++-- > > drivers/clk/at91/sama5d4.c | 4 +++- > > include/dt-bindings/clock/at91.h | 1 + > > 13 files changed, 50 insertions(+), 17 deletions(-) > > > > diff --git a/drivers/clk/at91/at91rm9200.c b/drivers/clk/at91/at91rm9200.c > > index c44a431b6c97..8da88e9a95d8 100644 > > --- a/drivers/clk/at91/at91rm9200.c > > +++ b/drivers/clk/at91/at91rm9200.c > > @@ -100,7 +100,7 @@ static void __init at91rm9200_pmc_setup(struct device_node *np) > > > > at91rm9200_pmc = pmc_data_allocate(PMC_MAIN + 1, > > nck(at91rm9200_systemck), > > - nck(at91rm9200_periphck), 0); > > + nck(at91rm9200_periphck), 0, 4); > > if (!at91rm9200_pmc) > > return; > > > > @@ -159,6 +159,8 @@ static void __init at91rm9200_pmc_setup(struct device_node *np) > > &at91rm9200_programmable_layout); > > if (IS_ERR(hw)) > > goto err_free; > > + > > + at91rm9200_pmc->pchws[i] = hw; > > } > > > > for (i = 0; i < ARRAY_SIZE(at91rm9200_systemck); i++) { > > @@ -187,7 +189,7 @@ static void __init at91rm9200_pmc_setup(struct device_node *np) > > return; > > > > err_free: > > - pmc_data_free(at91rm9200_pmc); > > + kfree(at91rm9200_pmc); > > I missed that in the previous review but shouldn't that change be part > of the previous patch for bisectability ? I was sure I already pushed all of them to the first patch... Fixed in v7. Best Regards Micha??Miros?aw