[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aB0iEHqYmNxXQd8c@apocalypse>
Date: Thu, 8 May 2025 23:28:48 +0200
From: Andrea della Porta <andrea.porta@...e.com>
To: Stephen Boyd <sboyd@...nel.org>
Cc: Andrea della Porta <andrea.porta@...e.com>,
Andrew Lunn <andrew@...n.ch>, Arnd Bergmann <arnd@...db.de>,
Bartosz Golaszewski <brgl@...ev.pl>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Broadcom internal kernel review list <bcm-kernel-feedback-list@...adcom.com>,
Catalin Marinas <catalin.marinas@....com>,
Conor Dooley <conor+dt@...nel.org>,
Dave Stevenson <dave.stevenson@...pberrypi.com>,
Derek Kiernan <derek.kiernan@....com>,
Dragan Cvetic <dragan.cvetic@....com>,
Florian Fainelli <florian.fainelli@...adcom.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Herve Codina <herve.codina@...tlin.com>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Krzysztof Wilczynski <kw@...ux.com>,
Linus Walleij <linus.walleij@...aro.org>,
Lorenzo Pieralisi <lpieralisi@...nel.org>,
Luca Ceresoli <luca.ceresoli@...tlin.com>,
Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>,
Masahiro Yamada <masahiroy@...nel.org>,
Matthias Brugger <mbrugger@...e.com>,
Michael Turquette <mturquette@...libre.com>,
Phi l Elwell <phil@...pberrypi.com>, Rob Herring <robh@...nel.org>,
Saravana Kannan <saravanak@...gle.com>,
Stefan Wahren <wahrenst@....net>,
Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
Will Deacon <will@...nel.org>, devicetree@...r.kernel.org,
kernel-list@...pberrypi.com, linux-arm-kernel@...ts.infradead.org,
linux-clk@...r.kernel.org, linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-pci@...r.kernel.org
Subject: Re: [PATCH v9 -next 04/12] clk: rp1: Add support for clocks provided
by RP1
Hi Stephen,
On 13:01 Wed 07 May , Stephen Boyd wrote:
> Quoting Andrea della Porta (2025-04-22 11:53:13)
> > diff --git a/drivers/clk/clk-rp1.c b/drivers/clk/clk-rp1.c
> > new file mode 100644
...
> > +
> > + /* There must be a gap for the AUX selector */
> > + if (WARN_ON_ONCE(clock_data->num_std_parents > AUX_SEL &&
> > + desc->hw.init->parent_data[AUX_SEL].index != -1))
>
> Why is there a gap? Can't the parents that the clk framework sees be
>
> [0, num_std_parents) + [num_std_parents, num_aux_parents + num_std_parents)
>
> without an empty parent in the middle?
>
The pos 1 in the parent index array is used to select one of the AUX clocks.
Besides this, the index maps directly to the value that should be written in hw,
avoiding remapping. It's possible to use a numbering scheme like the one you
proposed, but in this case we need to complicate the code adding the renumbering
where the index is written in hw.
...
> > +
> > +static const struct clk_parent_data clk_sys_parents[] = {
> > + { .index = 0 },
> > + { .index = -1 },
>
> Why is there a gap here?
>
Same answer as above.
Many thanks,
Andrea
Powered by blists - more mailing lists