From: Serge Semin <fancer.lancer@gmail.com> To: Paolo Abeni <pabeni@redhat.com> Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>, Jose Abreu <joabreu@synopsys.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Russell King <linux@armlinux.org.uk>, Yanteng Si <siyanteng@loongson.cn>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Simon Horman <horms@kernel.org>, Huacai Chen <chenhuacai@kernel.org>, Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 4/4] net: stmmac: Move MAC caps init to phylink MAC caps getter Date: Tue, 16 Apr 2024 14:01:17 +0300 [thread overview] Message-ID: <uaq3tbsogvuv6vjm7ga63boltao2vvi55yzyw75z7yido2a5zr@h26npwx3pdwa> (raw) In-Reply-To: <9644a96d17152014c8e7f91e9786dde26f67d7a5.camel@redhat.com> On Tue, Apr 16, 2024 at 12:27:29PM +0200, Paolo Abeni wrote: > On Fri, 2024-04-12 at 21:03 +0300, Serge Semin wrote: > > After a set of fixes the stmmac_phy_setup() and stmmac_reinit_queues() > > method have turned to having some duplicated code. Let's get rid from the > > duplication by moving the MAC-capabilities initialization to the PHYLINK > > MAC-capabilities getter. The getter is called during each network device > > interface open/close cycle. So the MAC-capabilities will be initialized in > > normal device functioning and in case of the Tx/Rx queues > > re-initialization as the original code semantics implies. > > > > Signed-off-by: Serge Semin <fancer.lancer@gmail.com> > > This is a net-next follow-up for the previous 3 patches > targeting 'net', right? Right. The last patch in the series is a cleanup patch which gets rid from the duplicated code by moving it to the PHYLINK MAC-capability getter. > > If so, you should have posted this one separately after the other would > have been merged back into net-next. I thought about that initially. But since this patch content is connected with the rest of patches and the maintainers/reviewers may ask to do things differently than it's provided in the initial patches, I decided to submit the entire series as is but indicating that the last patch is intended for 'net-next'. > > We can apply the first 3 to 'net', but you will have to repost 4/4 > after ~Thu. Agreed. I'll repost 4/4 after the initial 3 patches get to be merged in. Thanks -Serge(y) > > Thanks, > > Paolo >
WARNING: multiple messages have this Message-ID (diff)
From: Serge Semin <fancer.lancer@gmail.com> To: Paolo Abeni <pabeni@redhat.com> Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>, Jose Abreu <joabreu@synopsys.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Russell King <linux@armlinux.org.uk>, Yanteng Si <siyanteng@loongson.cn>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Simon Horman <horms@kernel.org>, Huacai Chen <chenhuacai@kernel.org>, Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 4/4] net: stmmac: Move MAC caps init to phylink MAC caps getter Date: Tue, 16 Apr 2024 14:01:17 +0300 [thread overview] Message-ID: <uaq3tbsogvuv6vjm7ga63boltao2vvi55yzyw75z7yido2a5zr@h26npwx3pdwa> (raw) In-Reply-To: <9644a96d17152014c8e7f91e9786dde26f67d7a5.camel@redhat.com> On Tue, Apr 16, 2024 at 12:27:29PM +0200, Paolo Abeni wrote: > On Fri, 2024-04-12 at 21:03 +0300, Serge Semin wrote: > > After a set of fixes the stmmac_phy_setup() and stmmac_reinit_queues() > > method have turned to having some duplicated code. Let's get rid from the > > duplication by moving the MAC-capabilities initialization to the PHYLINK > > MAC-capabilities getter. The getter is called during each network device > > interface open/close cycle. So the MAC-capabilities will be initialized in > > normal device functioning and in case of the Tx/Rx queues > > re-initialization as the original code semantics implies. > > > > Signed-off-by: Serge Semin <fancer.lancer@gmail.com> > > This is a net-next follow-up for the previous 3 patches > targeting 'net', right? Right. The last patch in the series is a cleanup patch which gets rid from the duplicated code by moving it to the PHYLINK MAC-capability getter. > > If so, you should have posted this one separately after the other would > have been merged back into net-next. I thought about that initially. But since this patch content is connected with the rest of patches and the maintainers/reviewers may ask to do things differently than it's provided in the initial patches, I decided to submit the entire series as is but indicating that the last patch is intended for 'net-next'. > > We can apply the first 3 to 'net', but you will have to repost 4/4 > after ~Thu. Agreed. I'll repost 4/4 after the initial 3 patches get to be merged in. Thanks -Serge(y) > > Thanks, > > Paolo > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2024-04-16 11:01 UTC|newest] Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-04-12 18:03 [PATCH net 0/4] net: stmmac: Fix MAC-capabilities procedure Serge Semin 2024-04-12 18:03 ` Serge Semin 2024-04-12 18:03 ` [PATCH net 1/4] net: stmmac: Apply half-duplex-less constraint for DW QoS Eth only Serge Semin 2024-04-12 18:03 ` Serge Semin 2024-04-16 7:39 ` Romain Gantois 2024-04-16 7:39 ` Romain Gantois 2024-04-12 18:03 ` [PATCH net 2/4] net: stmmac: Fix max-speed being ignored on queue re-init Serge Semin 2024-04-12 18:03 ` Serge Semin 2024-04-16 7:33 ` Romain Gantois 2024-04-16 7:33 ` Romain Gantois 2024-04-12 18:03 ` [PATCH net 3/4] net: stmmac: Fix IP-cores specific MAC capabilities Serge Semin 2024-04-12 18:03 ` Serge Semin 2024-04-16 8:00 ` Romain Gantois 2024-04-16 8:00 ` Romain Gantois 2024-04-12 18:03 ` [PATCH net-next 4/4] net: stmmac: Move MAC caps init to phylink MAC caps getter Serge Semin 2024-04-12 18:03 ` Serge Semin 2024-04-16 7:56 ` Romain Gantois 2024-04-16 7:56 ` Romain Gantois 2024-04-16 11:38 ` Serge Semin 2024-04-16 11:38 ` Serge Semin 2024-04-16 13:21 ` Romain Gantois 2024-04-16 13:21 ` Romain Gantois 2024-04-16 12:01 ` Russell King (Oracle) 2024-04-16 12:01 ` Russell King (Oracle) 2024-04-16 10:27 ` Paolo Abeni 2024-04-16 10:27 ` Paolo Abeni 2024-04-16 11:01 ` Serge Semin [this message] 2024-04-16 11:01 ` Serge Semin 2024-04-16 13:30 ` [PATCH net 0/4] net: stmmac: Fix MAC-capabilities procedure patchwork-bot+netdevbpf 2024-04-16 13:30 ` patchwork-bot+netdevbpf
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=uaq3tbsogvuv6vjm7ga63boltao2vvi55yzyw75z7yido2a5zr@h26npwx3pdwa \ --to=fancer.lancer@gmail.com \ --cc=alexandre.torgue@foss.st.com \ --cc=chenhuacai@kernel.org \ --cc=davem@davemloft.net \ --cc=edumazet@google.com \ --cc=horms@kernel.org \ --cc=jernej.skrabec@gmail.com \ --cc=joabreu@synopsys.com \ --cc=kuba@kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-stm32@st-md-mailman.stormreply.com \ --cc=linux-sunxi@lists.linux.dev \ --cc=linux@armlinux.org.uk \ --cc=mcoquelin.stm32@gmail.com \ --cc=netdev@vger.kernel.org \ --cc=pabeni@redhat.com \ --cc=samuel@sholland.org \ --cc=siyanteng@loongson.cn \ --cc=wens@csie.org \ /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: linkBe 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.