[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMhs-H9q=hP2GMU5QEU5791HfcCchrek6m9L4UdKzMyLg4nZBw@mail.gmail.com>
Date: Mon, 10 Jan 2022 12:41:28 +0100
From: Sergio Paracuellos <sergio.paracuellos@...il.com>
To: Philipp Zabel <p.zabel@...gutronix.de>
Cc: "open list:COMMON CLK FRAMEWORK" <linux-clk@...r.kernel.org>,
John Crispin <john@...ozen.org>, linux-staging@...ts.linux.dev,
Greg KH <gregkh@...uxfoundation.org>,
NeilBrown <neil@...wn.name>,
linux-kernel <linux-kernel@...r.kernel.org>,
Stephen Boyd <sboyd@...nel.org>
Subject: Re: [PATCH v7 3/4] clk: ralink: make system controller node a reset provider
On Mon, Jan 10, 2022 at 12:37 PM Philipp Zabel <p.zabel@...gutronix.de> wrote:
>
> On Mon, 2022-01-10 at 12:10 +0100, Sergio Paracuellos wrote:
> [...]
> > +static int mt7621_rst_xlate(struct reset_controller_dev *rcdev,
> > + const struct of_phandle_args *reset_spec)
> > +{
> > + unsigned long id = reset_spec->args[0];
> > +
> > + if (id == MT7621_RST_SYS)
>
> if (id == MT7621_RST_SYS || id >= rcdev->nr_resets)
>
> I forgot to mention that with .of_xlate set, the driver needs to check
> whether id < nr_resets on its own.
Oh, ok. I checked 'drivers/reset/reset-k210.c' as example and there
was only a similar check that I sent. Let me add this also and send
v8.
Best regards,
Sergio Paracuellos
>
> regards
> Philipp
Powered by blists - more mailing lists