All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Vladimir Oltean <olteanv@gmail.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org,
	f.fainelli@gmail.com, vivien.didelot@gmail.com
Subject: Re: [PATCH net-next 1/2] net: dsa: add a dsa_port_is_enabled helper function
Date: Thu, 19 Mar 2020 20:10:59 +0100	[thread overview]
Message-ID: <20200319191059.GL27807@lunn.ch> (raw)
In-Reply-To: <20200319185620.1581-1-olteanv@gmail.com>

On Thu, Mar 19, 2020 at 08:56:19PM +0200, Vladimir Oltean wrote:
> From: Vladimir Oltean <vladimir.oltean@nxp.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

  parent reply	other threads:[~2020-03-19 19:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-19 18:56 [PATCH net-next 1/2] net: dsa: add a dsa_port_is_enabled helper function Vladimir Oltean
2020-03-19 18:56 ` [PATCH net-next 2/2] net: dsa: sja1105: Avoid error message for unknown PHY mode on disabled ports Vladimir Oltean
2020-03-19 19:10 ` Andrew Lunn [this message]
2020-03-19 19:17 ` [PATCH net-next 1/2] net: dsa: add a dsa_port_is_enabled helper function Vivien Didelot
2020-03-19 20:14   ` Vladimir Oltean

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200319191059.GL27807@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=f.fainelli@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=vivien.didelot@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.