From: Vladimir Oltean <olteanv@gmail.com>
To: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
Cc: Ansuel Smith <ansuelsmth@gmail.com>, Andrew Lunn <andrew@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Florian Fainelli <f.fainelli@gmail.com>,
Jakub Kicinski <kuba@kernel.org>,
netdev@vger.kernel.org, Vivien Didelot <vivien.didelot@gmail.com>
Subject: Re: [PATCH net-next 1/6] net: dsa: add support for phylink mac_select_pcs()
Date: Wed, 16 Feb 2022 17:43:02 +0200 [thread overview]
Message-ID: <20220216154302.7g7kjbhfchuwzeef@skbuf> (raw)
In-Reply-To: <E1nKLsX-009NMX-2e@rmk-PC.armlinux.org.uk>
On Wed, Feb 16, 2022 at 03:06:01PM +0000, Russell King (Oracle) wrote:
> diff --git a/net/dsa/port.c b/net/dsa/port.c
> index bd78192e0e47..1138d40f7897 100644
> --- a/net/dsa/port.c
> +++ b/net/dsa/port.c
> @@ -1011,6 +1011,20 @@ static void dsa_port_phylink_mac_pcs_get_state(struct phylink_config *config,
> }
> }
>
> +static struct phylink_pcs *dsa_port_phylink_mac_select_pcs(
> + struct phylink_config *config,
> + phy_interface_t interface)
Would be nice to align the arguments to the open parenthesis if possible:
static struct phylink_pcs *
dsa_port_phylink_mac_select_pcs(struct phylink_config *config,
phy_interface_t interface)
Same 3 lines consumed in both cases, but it's more in line to what was
done for other functions - dsa_slave_fdb_dump, dsa_slave_vlan_check_for_8021q_uppers,
dsa_find_designated_bridge_port_by_vid, etc.
> +{
> + struct dsa_port *dp = container_of(config, struct dsa_port, pl_config);
> + struct dsa_switch *ds = dp->ds;
> + struct phylink_pcs *pcs = NULL;
> +
> + if (ds->ops->phylink_mac_select_pcs)
> + pcs = ds->ops->phylink_mac_select_pcs(ds, dp->index, interface);
> +
> + return pcs;
> +}
next prev parent reply other threads:[~2022-02-16 15:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-16 15:04 [PATCH net-next 0/6] net: dsa: qca8k: convert to phylink_pcs and mark as non-legacy Russell King (Oracle)
2022-02-16 15:06 ` [PATCH net-next 1/6] net: dsa: add support for phylink mac_select_pcs() Russell King (Oracle)
2022-02-16 15:43 ` Vladimir Oltean [this message]
2022-02-16 15:06 ` [PATCH net-next 2/6] net: dsa: qca8k: move qca8k_setup() Russell King (Oracle)
2022-02-16 15:06 ` [PATCH net-next 3/6] net: dsa: qca8k: move qca8k_phylink_mac_link_state() Russell King (Oracle)
2022-02-16 15:06 ` [PATCH net-next 4/6] net: dsa: qca8k: convert to use phylink_pcs Russell King (Oracle)
2022-02-16 15:06 ` [PATCH net-next 5/6] net: dsa: qca8k: move pcs configuration Russell King (Oracle)
2022-02-16 15:45 ` Vladimir Oltean
2022-02-16 15:06 ` [PATCH net-next 6/6] net: dsa: qca8k: mark as non-legacy Russell King (Oracle)
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=20220216154302.7g7kjbhfchuwzeef@skbuf \
--to=olteanv@gmail.com \
--cc=andrew@lunn.ch \
--cc=ansuelsmth@gmail.com \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=rmk+kernel@armlinux.org.uk \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox