Skip to contentSkip to conversation

linux-next: manual merge of the gpio-brgl tree with the gpio-brgl-fixes tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Oct 19, 2023 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

drivers/gpio/gpio-vf610.c

between commit:

fc363413ef8e ("gpio: vf610: set value before the direction to avoid a glitch")

from the gpio-brgl-fixes tree and commit:

b57587f11f81 ("gpio: vf610: simplify code by dropping data check")

from the gpio-brgl 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 · 18 lines
Cheers,
Stephen Rothwell

diff --cc drivers/gpio/gpio-vf610.c
index 656d6b1dddb5,a89ae84a1fa0..000000000000
--- a/drivers/gpio/gpio-vf610.c
+++ b/drivers/gpio/gpio-vf610.c
@@@ -126,9 -140,7 +140,9 @@@ static int vf610_gpio_direction_output(
  	unsigned long mask = BIT(gpio);
  	u32 val;
  
 +	vf610_gpio_set(chip, gpio, value);
 +
- 	if (port->sdata && port->sdata->have_paddr) {
+ 	if (port->sdata->have_paddr) {
  		val = vf610_gpio_readl(port->gpio_base + GPIO_PDDR);
  		val |= mask;
  		vf610_gpio_writel(val, port->gpio_base + GPIO_PDDR);
#1 lore raw
Quoted 33 lines · Stephen Rothwell

Hi all,

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

drivers/gpio/gpio-vf610.c

between commit:

fc363413ef8e ("gpio: vf610: set value before the direction to avoid a glitch")

from the gpio-brgl-fixes tree and commit:

b57587f11f81 ("gpio: vf610: simplify code by dropping data check")

from the gpio-brgl 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.

--
Cheers,
Stephen Rothwell

drivers/gpio/gpio-vf610.c +0 -0
diff --cc drivers/gpio/gpio-vf610.c
index 656d6b1dddb5,a89ae84a1fa0..000000000000

drivers/gpio/gpio-vf610.c

Quoted 10 lines
drivers/gpio/gpio-vf610.c +1 -1
@@@ -126,9 -140,7 +140,9 @@@ static int vf610_gpio_direction_output(
        unsigned long mask = BIT(gpio);
        u32 val;
 
 +      vf610_gpio_set(chip, gpio, value);
 +
-       if (port->sdata && port->sdata->have_paddr) {
+       if (port->sdata->have_paddr) {
                val = vf610_gpio_readl(port->gpio_base + GPIO_PDDR);
                val |= mask;
                vf610_gpio_writel(val, port->gpio_base + GPIO_PDDR);

Thanks Stephen, this is correct.

My for-next tree is currently rebased on top of v6.6-rc1 while the fixes tree tracks Linus' master.

Once the fixes are upstream, I may just rebase my for-next tree.

Bart