[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAL_JsqKL2fb+PObe_Soopf2JDFbaQZyu-k_CQrQTGU4tONQvUA@mail.gmail.com>
Date: Wed, 22 Sep 2021 16:14:49 -0500
From: Rob Herring <robh+dt@...nel.org>
To: Sven Peter <sven@...npeter.dev>
Cc: Marc Zyngier <maz@...nel.org>, devicetree@...r.kernel.org,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
PCI <linux-pci@...r.kernel.org>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Lorenzo Pieralisi <lorenzo.pieralisi@....com>,
Krzysztof WilczyĆski <kw@...ux.com>,
Alyssa Rosenzweig <alyssa@...enzweig.io>,
Stan Skowronek <stan@...ellium.com>,
Mark Kettenis <kettenis@...nbsd.org>,
Hector Martin <marcan@...can.st>,
Robin Murphy <Robin.Murphy@....com>,
Android Kernel Team <kernel-team@...roid.com>
Subject: Re: [PATCH v4 04/10] PCI: apple: Add initial hardware bring-up
On Wed, Sep 22, 2021 at 4:08 PM Sven Peter <sven@...npeter.dev> wrote:
>
> Hi,
>
>
> On Wed, Sep 22, 2021, at 22:54, Marc Zyngier wrote:
> > From: Alyssa Rosenzweig <alyssa@...enzweig.io>
> >
> [...]
> > +
> > + /* Use the first reg entry to work out the port index */
> > + port->idx = idx >> 11;
> > + port->pcie = pcie;
> > + port->np = np;
> > +
> > + port->base = devm_platform_ioremap_resource(platform, port->idx + 2);
> > + if (IS_ERR(port->base))
> > + return -ENODEV;
Don't change error codes.
> > +
> > + rmw_set(PORT_APPCLK_EN, port + PORT_APPCLK);
>
> I think this should be
>
> rmw_set(PORT_APPCLK_EN, port->base + PORT_APPCLK);
Or just removed if this was tested and worked.
Rob
Powered by blists - more mailing lists