netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Horman <horms@kernel.org>
To: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
Cc: "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	netdev@vger.kernel.org
Subject: Re: [PATCH net-next] net: ethernet: Switch back to struct platform_driver::remove()
Date: Wed, 25 Sep 2024 21:07:56 +0100	[thread overview]
Message-ID: <20240925200756.GB4029621@kernel.org> (raw)
In-Reply-To: <2og4furukr5fndyx3receaxr2rgao27lcuzofcvanyrt543p5p@5ckfz4373vhm>

On Wed, Sep 25, 2024 at 01:07:25PM +0200, Uwe Kleine-König wrote:
> Hello,
> 
> On Tue, Sep 24, 2024 at 01:53:47PM +0100, Simon Horman wrote:
> > On Tue, Sep 24, 2024 at 09:48:53AM +0200, Uwe Kleine-König wrote:
> > > On Tue, Sep 24, 2024 at 08:29:37AM +0100, Simon Horman wrote:
> > > > However, touching so many files does lead to a substantial risk of
> > > > conflicts. And indeed, the patch does not currently apply cleanly
> > > > to net-next (although it can trivially be made to do so). Perhaps
> > > > the maintainers can handle that, but I would suggest reposting in
> > > > a form that does apply cleanly so that automations can run.
> > > 
> > > I based it on plain next in the expectation that this matches the
> > > network tree well enough. I agree that the conflicts are not hard to
> > > resolve, but it's totally ok for me if only the parts of the patch are
> > > taken that apply without problems. I expect that I'll have to go through
> > > more than one subsystem a second time anyhow because new drivers pop up
> > > using the old idioms.
> > > 
> > > Also note that git can handle the changes just fine if you use
> > > 3-way merging:
> > > 
> > > 	uwe@taurus:~/gsrc/linux$ git checkout net-next/main 
> > > 	HEAD is now at 151ac45348af net: sparx5: Fix invalid timestamps
> > > 
> > > 	uwe@taurus:~/gsrc/linux$ b4 am -3 https://lore.kernel.org/all/20240923162202.34386-2-u.kleine-koenig@baylibre.com/
> > > 	Grabbing thread from lore.kernel.org/all/20240923162202.34386-2-u.kleine-koenig@baylibre.com/t.mbox.gz
> > > 	Analyzing 3 messages in the thread
> > > 	Analyzing 0 code-review messages
> > > 	Checking attestation on all messages, may take a moment...
> > > 	---
> > > 	  ✓ [PATCH] net: ethernet: Switch back to struct platform_driver::remove()
> > > 	    + Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> (✓ DKIM/gmail.com)
> > > 	  ---
> > > 	  ✓ Signed: openpgp/u.kleine-koenig@baylibre.com
> > > 	  ✓ Signed: DKIM/baylibre-com.20230601.gappssmtp.com (From: u.kleine-koenig@baylibre.com)
> > > 	---
> > > 	Total patches: 1
> > > 	Preared a fake commit range for 3-way merge (77e0c079ace8..198dd8fb7661)
> > > 	---
> > > 	 Link: https://lore.kernel.org/r/20240923162202.34386-2-u.kleine-koenig@baylibre.com
> > > 	 Base: using specified base-commit ef545bc03a65438cabe87beb1b9a15b0ffcb6ace
> > > 	       git checkout -b 20240923_u_kleine_koenig_baylibre_com ef545bc03a65438cabe87beb1b9a15b0ffcb6ace
> > > 	       git am -3 ./20240923_u_kleine_koenig_net_ethernet_switch_back_to_struct_platform_driver_remove.mbx
> > > 
> > > 	uwe@taurus:~/gsrc/linux$ git am -3 ./20240923_u_kleine_koenig_net_ethernet_switch_back_to_struct_platform_driver_remove.mbx
> > > 	Applying: net: ethernet: Switch back to struct platform_driver::remove()
> > > 	Using index info to reconstruct a base tree...
> > > 	M	drivers/net/ethernet/cirrus/ep93xx_eth.c
> > > 	M	drivers/net/ethernet/marvell/mvmdio.c
> > > 	M	drivers/net/ethernet/xilinx/xilinx_axienet_main.c
> > > 	Falling back to patching base and 3-way merge...
> > > 	Auto-merging drivers/net/ethernet/xilinx/xilinx_axienet_main.c
> > > 	Auto-merging drivers/net/ethernet/marvell/mvmdio.c
> > > 	Auto-merging drivers/net/ethernet/cirrus/ep93xx_eth.c
> > 
> > Understood, I agree the conflicts can trivially be resolved.
> > But as things stand the CI stopped when it couldn't apply
> > the patchset. And, IMHO, that is not the best.
> 
> So there is some room for improvement of said CI. It could use -3, or
> alternatively honor the "base-commit:" line in the footer of the mail.
> 
> (And yes, using net-next directly and getting the patch applied quickly
> works, too. And I understand that is most comfortable for your side. For
> my side however plain next is better as this is usually a good middle
> ground for all trees. And given that I have to track not only the 130+
> network drivers from this patch but also the 2000+ other drivers in the
> rest of the tree using net-next doesn't work so well.)

Yes, there is always room for improvement :)

Some input from the maintainers regarding their preferences would be welcome,
but I'll see about proposing something like that as patches for the CI.


      reply	other threads:[~2024-09-25 20:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-23 16:22 [PATCH net-next] net: ethernet: Switch back to struct platform_driver::remove() Uwe Kleine-König
2024-09-23 18:26 ` Florian Fainelli
2024-09-24  7:29 ` Simon Horman
2024-09-24  7:48   ` Uwe Kleine-König
2024-09-24 12:53     ` Simon Horman
2024-09-25 11:07       ` Uwe Kleine-König
2024-09-25 20:07         ` Simon Horman [this message]

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=20240925200756.GB4029621@kernel.org \
    --to=horms@kernel.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=u.kleine-koenig@baylibre.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;
as well as URLs for NNTP newsgroup(s).