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

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

From: Alvin Šipraga <hidden>
Date: 2024-01-04 15:53:48

On Thu, Jan 04, 2024 at 04:00:30PM +0200, 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: Alvin Šipraga <redacted>
---
 drivers/net/dsa/lantiq_gswip.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help