RE: linux-next: manual merge of the net-next tree with the net tree

From: Claudiu Manoil
Date: Fri Jul 24 2020 - 05:56:51 EST

>-----Original Message-----
>From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
>Sent: Friday, July 24, 2020 5:24 AM
>Subject: linux-next: manual merge of the net-next tree with the net tree
>Hi all,
>Today's linux-next merge of the net-next tree got a conflict in:
> drivers/net/ethernet/freescale/enetc/enetc_pf.c
>between commit:
> 26cb7085c898 ("enetc: Remove the mdio bus on PF probe bailout")
>from the net tree and commits:
> 07095c025ac2 ("net: enetc: Use DT protocol information to set up the ports")
> c6dd6488acd1 ("enetc: Remove the imdio bus on PF probe bailout")
>from the net-next tree.
>I fixed it up (see below) and can carry the fix as necessary. This
>is now fixed as far as linux-next is concerned, but any non trivial
>conflicts should be mentioned to your upstream maintainer when your tree
>is submitted for merging. You may also want to consider cooperating
>with the maintainer of the conflicting tree to minimise any particularly
>complex conflicts.

It's unfortunate, but I think the conflict was unavoidable at this stage.
The net-next commit 07095c025ac2 uncovers an older bug making it worse
by modifying code around it, introducing a regression for a use case that worked
before. That prompted the 'net' tree fix 26cb7085c898, which inevitably got into conflict
with 'net-next'. The conflict is simple AFAIC, it's about one line, one function call on the
bailout path.

If you're asking me, you can go on with the resolution you consider to be the safest.
Then I can send a follow up patch after 'net-next' gets merged into 'net',
to make the necessary corrections if needed.
The bailout path after merging the patches should be as below, the tricky line
being marked as "==>":

==> enetc_mdio_remove(pf);