[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200319191059.GL27807@lunn.ch>
Date: Thu, 19 Mar 2020 20:10:59 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Vladimir Oltean <olteanv@...il.com>
Cc: davem@...emloft.net, netdev@...r.kernel.org, f.fainelli@...il.com,
vivien.didelot@...il.com
Subject: Re: [PATCH net-next 1/2] net: dsa: add a dsa_port_is_enabled helper
function
On Thu, Mar 19, 2020 at 08:56:19PM +0200, Vladimir Oltean wrote:
> From: Vladimir Oltean <vladimir.oltean@....com>
>
> Sometimes drivers need to do per-port operation outside the port DSA
> methods, and in that case they typically iterate through their port list
> themselves.
>
> Give them an aid to skip ports that are disabled in the device tree
> (which the DSA core already skips).
Hi Vladimir
Why not dsa_is_unused_port()?
Andrew
Powered by blists - more mailing lists