linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the gpio tree with the irqchip tree
@ 2019-08-21  6:03 Stephen Rothwell
  2019-08-21  8:13 ` Marc Zyngier
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Rothwell @ 2019-08-21  6:03 UTC (permalink / raw)
  To: Linus Walleij, Marc Zyngier
  Cc: Linux Next Mailing List, Linux Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 2029 bytes --]

Hi all,

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

  drivers/gpio/gpio-ixp4xx.c

between commit:

  daa19fe5b082 ("gpio/ixp4xx: Register the base PA instead of its VA in fwnode")

from the irqchip tree and commit:

  aa7d618ac65f ("gpio: ixp4xx: Convert to hierarchical GPIOLIB_IRQCHIP")

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

diff --cc drivers/gpio/gpio-ixp4xx.c
index cc72c9aca5a1,8bd23e80c61f..000000000000
--- a/drivers/gpio/gpio-ixp4xx.c
+++ b/drivers/gpio/gpio-ixp4xx.c
@@@ -326,6 -209,35 +209,35 @@@ static int ixp4xx_gpio_probe(struct pla
  		return PTR_ERR(g->base);
  	}
  
+ 	/*
+ 	 * When we convert to device tree we will simply look up the
+ 	 * parent irqdomain using irq_find_host(parent) as parent comes
+ 	 * from IRQCHIP_DECLARE(), then use of_node_to_fwnode() to get
+ 	 * the fwnode. For now we need this boardfile style code.
+ 	 */
+ 	if (np) {
+ 		struct device_node *irq_parent;
+ 
+ 		irq_parent = of_irq_find_parent(np);
+ 		if (!irq_parent) {
+ 			dev_err(dev, "no IRQ parent node\n");
+ 			return -ENODEV;
+ 		}
+ 		parent = irq_find_host(irq_parent);
+ 		if (!parent) {
+ 			dev_err(dev, "no IRQ parent domain\n");
+ 			return -ENODEV;
+ 		}
+ 		g->fwnode = of_node_to_fwnode(np);
+ 	} else {
+ 		parent = ixp4xx_get_irq_domain();
 -		g->fwnode = irq_domain_alloc_fwnode(g->base);
++		g->fwnode = irq_domain_alloc_fwnode(&res->start);
+ 		if (!g->fwnode) {
+ 			dev_err(dev, "no domain base\n");
+ 			return -ENODEV;
+ 		}
+ 	}
+ 
  	/*
  	 * Make sure GPIO 14 and 15 are NOT used as clocks but GPIO on
  	 * specific machines.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linux-next: manual merge of the gpio tree with the irqchip tree
  2019-08-21  6:03 linux-next: manual merge of the gpio tree with the irqchip tree Stephen Rothwell
@ 2019-08-21  8:13 ` Marc Zyngier
  2019-08-21 11:30   ` Linus Walleij
  0 siblings, 1 reply; 4+ messages in thread
From: Marc Zyngier @ 2019-08-21  8:13 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Linus Walleij, Linux Next Mailing List, Linux Kernel Mailing List

On Wed, 21 Aug 2019 07:03:35 +0100,
Stephen Rothwell <sfr@canb.auug.org.au> wrote:

Hi Stephen,

> 
> Hi all,
> 
> Today's linux-next merge of the gpio tree got a conflict in:
> 
>   drivers/gpio/gpio-ixp4xx.c
> 
> between commit:
> 
>   daa19fe5b082 ("gpio/ixp4xx: Register the base PA instead of its VA in fwnode")
> 
> from the irqchip tree and commit:
> 
>   aa7d618ac65f ("gpio: ixp4xx: Convert to hierarchical GPIOLIB_IRQCHIP")
> 
> from the gpio 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
> 
> diff --cc drivers/gpio/gpio-ixp4xx.c
> index cc72c9aca5a1,8bd23e80c61f..000000000000
> --- a/drivers/gpio/gpio-ixp4xx.c
> +++ b/drivers/gpio/gpio-ixp4xx.c
> @@@ -326,6 -209,35 +209,35 @@@ static int ixp4xx_gpio_probe(struct pla
>   		return PTR_ERR(g->base);
>   	}
>   
> + 	/*
> + 	 * When we convert to device tree we will simply look up the
> + 	 * parent irqdomain using irq_find_host(parent) as parent comes
> + 	 * from IRQCHIP_DECLARE(), then use of_node_to_fwnode() to get
> + 	 * the fwnode. For now we need this boardfile style code.
> + 	 */
> + 	if (np) {
> + 		struct device_node *irq_parent;
> + 
> + 		irq_parent = of_irq_find_parent(np);
> + 		if (!irq_parent) {
> + 			dev_err(dev, "no IRQ parent node\n");
> + 			return -ENODEV;
> + 		}
> + 		parent = irq_find_host(irq_parent);
> + 		if (!parent) {
> + 			dev_err(dev, "no IRQ parent domain\n");
> + 			return -ENODEV;
> + 		}
> + 		g->fwnode = of_node_to_fwnode(np);
> + 	} else {
> + 		parent = ixp4xx_get_irq_domain();
>  -		g->fwnode = irq_domain_alloc_fwnode(g->base);
> ++		g->fwnode = irq_domain_alloc_fwnode(&res->start);
> + 		if (!g->fwnode) {
> + 			dev_err(dev, "no domain base\n");
> + 			return -ENODEV;
> + 		}
> + 	}
> + 
>   	/*
>   	 * Make sure GPIO 14 and 15 are NOT used as clocks but GPIO on
>   	 * specific machines.

Looks good, thanks for fixing this.

Linus: do you want to take this patch (daa19fe5b082) through your tree
instead in order to avoid the conflict when this hit the other Linus?
It shouldn't create any havoc...

Just let me know.

	M.

-- 
Jazz is not dead, it just smells funny.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linux-next: manual merge of the gpio tree with the irqchip tree
  2019-08-21  8:13 ` Marc Zyngier
@ 2019-08-21 11:30   ` Linus Walleij
  2019-08-21 11:46     ` Marc Zyngier
  0 siblings, 1 reply; 4+ messages in thread
From: Linus Walleij @ 2019-08-21 11:30 UTC (permalink / raw)
  To: Marc Zyngier
  Cc: Stephen Rothwell, Linux Next Mailing List, Linux Kernel Mailing List

On Wed, Aug 21, 2019 at 10:13 AM Marc Zyngier <marc.zyngier@arm.com> wrote:

> Linus: do you want to take this patch (daa19fe5b082) through your tree
> instead in order to avoid the conflict when this hit the other Linus?
> It shouldn't create any havoc...

Is it completely independent from the rest? Then I will pick it
so we get less fuzz.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linux-next: manual merge of the gpio tree with the irqchip tree
  2019-08-21 11:30   ` Linus Walleij
@ 2019-08-21 11:46     ` Marc Zyngier
  0 siblings, 0 replies; 4+ messages in thread
From: Marc Zyngier @ 2019-08-21 11:46 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Stephen Rothwell, Linux Next Mailing List, Linux Kernel Mailing List

On 21/08/2019 12:30, Linus Walleij wrote:
> On Wed, Aug 21, 2019 at 10:13 AM Marc Zyngier <marc.zyngier@arm.com> wrote:
> 
>> Linus: do you want to take this patch (daa19fe5b082) through your tree
>> instead in order to avoid the conflict when this hit the other Linus?
>> It shouldn't create any havoc...
> 
> Is it completely independent from the rest? Then I will pick it
> so we get less fuzz.

Yup, it should be fine as a standalone patch. Let me know once you've
taken it and I'll drop it from my tree.

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-08-21 11:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-21  6:03 linux-next: manual merge of the gpio tree with the irqchip tree Stephen Rothwell
2019-08-21  8:13 ` Marc Zyngier
2019-08-21 11:30   ` Linus Walleij
2019-08-21 11:46     ` Marc Zyngier

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).