[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAEev2e_6PePu3omq-Zf1R-8TYikgz9V1cp6cwn0nZ8LaPHaJ2A@mail.gmail.com>
Date: Fri, 23 Jan 2026 10:15:15 -0600
From: Anirudh Srinivasan <asrinivasan@....tenstorrent.com>
To: Philipp Zabel <p.zabel@...gutronix.de>
Cc: Drew Fustini <dfustini@....tenstorrent.com>, Joel Stanley <jms@....tenstorrent.com>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Michael Turquette <mturquette@...libre.com>, Stephen Boyd <sboyd@...nel.org>,
linux-riscv@...ts.infradead.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-clk@...r.kernel.org, joel@....id.au,
fustini@...nel.org, mpe@...nel.org, mpe@....tenstorrent.com,
npiggin@....tenstorrent.com, agross@...nel.org, agross@....tenstorrent.com,
bmasney@...hat.com
Subject: Re: [PATCH v2 2/3] reset: tenstorrent: Add reset controller for Atlantis
Hi Philipp,
On Fri, Jan 23, 2026 at 7:00 AM Philipp Zabel <p.zabel@...gutronix.de> wrote:
>
> On Do, 2026-01-22 at 16:36 -0600, Anirudh Srinivasan wrote:
> > Adds Atlantis Reset Controller and auxiliary device definitions for
> > reset to share same regmap interface as clock controller.
> >
> > + if (data->active_low ^ assert)
> > + val = mask;
> > + else
> > + val = ~mask;
>
> val = 0;
>
> The ~mask bits will be ignored anyway.
Ack. Will change.
>
> struct regmap;
>
> > +
> > +struct atlantis_ccu_adev {
> > + struct auxiliary_device adev;
> > + struct regmap *regmap;
> > +};
> > +
> > +#define to_atlantis_ccu_adev(_adev) \
> > + container_of((_adev), struct atlantis_ccu_adev, adev)
>
> Please use an inline function instead of a macro.
Ack.
>
> > +
> > +/* RCPU Reset Register Offsets */
> > +#define RCPU_BLK_RST_REG 0x001c
> > +#define LSIO_BLK_RST_REG 0x0020
> > +#define HSIO_BLK_RST_REG 0x000c
> > +#define PCIE_SUBS_RST_REG 0x0000
> > +#define MM_RSTN_REG 0x0014
>
> Why not move these into reset-tenstorrent-atlantis.c, they are not part
> of the interface between clock and reset drivers.
We were considering putting register offsets like this in separate
header files that are dual licensed. In that case, is it okay to put
it here?
>
> regards
> Philipp
Powered by blists - more mailing lists