Thread (46 messages) 46 messages, 7 authors, 2024-01-10

Re: [PATCH net-next 03/10] net: dsa: lantiq_gswip: ignore MDIO buses disabled in OF

flat view

From: Florian Fainelli <florian.fainelli@broadcom.com>
Date: 2024-01-04 17:36:39

On 1/4/24 06:00, Vladimir Oltean wrote:
If the "lantiq,xrx200-mdio" child has status = "disabled", the MDIO bus
creation should be avoided. Use of_device_is_available() to check for
that, and take advantage of 2 facts:

- of_device_is_available(NULL) returns false
- of_node_put(NULL) is a no-op

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
-- 
Florian

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help