Skip to contentSkip to conversation

linux-next: manual merge of the net-next tree with Linus' tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Sep 21, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi all,

Today's linux-next merge of the net-next tree got a conflict in:

drivers/pinctrl/pinctrl-ocelot.c

between commit:

c297561bc98a ("pinctrl: ocelot: Fix interrupt controller")

from Linus' tree and commit:

181f604b33cd ("pinctrl: ocelot: add ability to be used in a non-mmio configuration")

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.

Signature · 25 lines
Cheers,
Stephen Rothwell

diff --cc drivers/pinctrl/pinctrl-ocelot.c
index c7df8c5fe585,340ca2373429..000000000000
--- a/drivers/pinctrl/pinctrl-ocelot.c
+++ b/drivers/pinctrl/pinctrl-ocelot.c
@@@ -2086,12 -2008,11 +2081,11 @@@ static int ocelot_pinctrl_probe(struct 
  
  	regmap_config.max_register = OCELOT_GPIO_SD_MAP * info->stride + 15 * 4;
  
- 	info->map = devm_regmap_init_mmio(dev, base, &regmap_config);
- 	if (IS_ERR(info->map)) {
- 		dev_err(dev, "Failed to create regmap\n");
- 		return PTR_ERR(info->map);
- 	}
+ 	info->map = ocelot_regmap_from_resource(pdev, 0, &regmap_config);
+ 	if (IS_ERR(info->map))
+ 		return dev_err_probe(dev, PTR_ERR(info->map),
+ 				     "Failed to create regmap\n");
 -	dev_set_drvdata(dev, info->map);
 +	dev_set_drvdata(dev, info);
  	info->dev = dev;
  
  	/* Pinconf registers */
#1 lore raw
Quoted 14 lines · Stephen Rothwell

Hi all,

Today's linux-next merge of the net-next tree got a conflict in:

drivers/pinctrl/pinctrl-ocelot.c

between commit:

c297561bc98a ("pinctrl: ocelot: Fix interrupt controller")

from Linus' tree and commit:

181f604b33cd ("pinctrl: ocelot: add ability to be used in a non-mmio configuration")

Quoted 8 lines

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.

Hi Stephen,

I can see how this conflict came about. If there is anything specific I can do to try to recognize and avoid these in the future, please let me know. And other subsystem maintainers, please let me know if there is anything I have to do / should have done.

Thanks, and apologies.

Colin Foster