Thread (16 messages) 16 messages, 3 authors, 2021-09-22

Re: [PATCH v4 04/10] PCI: apple: Add initial hardware bring-up

From: Rob Herring <robh+dt@kernel.org>
Date: 2021-09-22 21:15:04
Also in: linux-pci, lkml

On Wed, Sep 22, 2021 at 4:08 PM Sven Peter [off-list ref] wrote:
Hi,


On Wed, Sep 22, 2021, at 22:54, Marc Zyngier wrote:
quoted
From: Alyssa Rosenzweig <redacted>
[...]
quoted
+
+     /* 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.
quoted
+
+     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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help