Thread (31 messages) 31 messages, 4 authors, 2021-02-16

Re: [net-next PATCH v5 15/15] net: dpaa2-mac: Add ACPI support for DPAA2 MAC driver

From: Andy Shevchenko <hidden>
Date: 2021-02-15 15:21:25
Also in: linux-acpi, lkml, netdev

On Mon, Feb 15, 2021 at 5:13 PM Andy Shevchenko
[off-list ref] wrote:
On Mon, Feb 15, 2021 at 2:33 PM Calvin Johnson
[off-list ref] wrote:
quoted
On Mon, Feb 08, 2021 at 04:28:31PM +0000, Russell King - ARM Linux admin wrote:
...
quoted
I think of_phy_is_fixed_link() needs to be fixed. I'll add below fix.
--- a/drivers/net/mdio/of_mdio.c
+++ b/drivers/net/mdio/of_mdio.c
@@ -439,6 +439,9 @@ bool of_phy_is_fixed_link(struct device_node *np)
        int len, err;
        const char *managed;

+       if (!np)
+               return false;
AFAICS this doesn't add anything: all of the of_* APIs should handle
OF nodes being NULL below.
quoted
        /* New binding */
        dn = of_get_child_by_name(np, "fixed-link");
        if (dn) {
Yes, of_get_next_child() and of_get_property() are NULL aware.

So, the check is redundant.

-- 
With Best Regards,
Andy Shevchenko

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help