linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the gpio tree with the input tree
@ 2017-03-20  4:03 Stephen Rothwell
  2017-03-20 10:54 ` Andy Shevchenko
  2017-03-23  9:27 ` Linus Walleij
  0 siblings, 2 replies; 5+ messages in thread
From: Stephen Rothwell @ 2017-03-20  4:03 UTC (permalink / raw)
  To: Linus Walleij, Dmitry Torokhov
  Cc: linux-next, linux-kernel, Andy Shevchenko, Hans de Goede

Hi Linus,

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

  drivers/input/misc/soc_button_array.c

between commit:

  a01cd17000a4 ("Input: soc_button_array - use NULL for GPIO connection ID")

from the input tree and commit:

  c5097538c86a ("Input: soc_button_array - Propagate error from gpiod_count()")

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/input/misc/soc_button_array.c
index 95b787a63560,c3b8e1fb4699..000000000000
--- a/drivers/input/misc/soc_button_array.c
+++ b/drivers/input/misc/soc_button_array.c
@@@ -312,17 -167,12 +312,18 @@@ static int soc_button_probe(struct plat
  	if (!id)
  		return -ENODEV;
  
 -	button_info = (struct soc_button_info *)id->driver_data;
 +	if (!id->driver_data) {
 +		button_info = soc_button_get_button_info(dev);
 +		if (IS_ERR(button_info))
 +			return PTR_ERR(button_info);
 +	} else {
 +		button_info = (struct soc_button_info *)id->driver_data;
 +	}
  
- 	if (gpiod_count(dev, NULL) <= 0) {
+ 	error = gpiod_count(dev, NULL);
+ 	if (error < 0) {
  		dev_dbg(dev, "no GPIO attached, ignoring...\n");
- 		return -ENODEV;
+ 		return error;
  	}
  
  	priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);

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

* Re: linux-next: manual merge of the gpio tree with the input tree
  2017-03-20  4:03 linux-next: manual merge of the gpio tree with the input tree Stephen Rothwell
@ 2017-03-20 10:54 ` Andy Shevchenko
  2017-03-23  9:27 ` Linus Walleij
  1 sibling, 0 replies; 5+ messages in thread
From: Andy Shevchenko @ 2017-03-20 10:54 UTC (permalink / raw)
  To: Stephen Rothwell, Linus Walleij, Dmitry Torokhov
  Cc: linux-next, linux-kernel, Hans de Goede

On Mon, 2017-03-20 at 15:03 +1100, Stephen Rothwell wrote:
> Hi Linus,
> 
> Today's linux-next merge of the gpio tree got a conflict in:
> 
>   drivers/input/misc/soc_button_array.c
> 
> between commit:
> 
>   a01cd17000a4 ("Input: soc_button_array - use NULL for GPIO
> connection ID")
> 
> from the input tree and commit:
> 
>   c5097538c86a ("Input: soc_button_array - Propagate error from
> gpiod_count()")
> 
> 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.

The fix is correct.
Thank you, Stephen.

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy

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

* Re: linux-next: manual merge of the gpio tree with the input tree
  2017-03-20  4:03 linux-next: manual merge of the gpio tree with the input tree Stephen Rothwell
  2017-03-20 10:54 ` Andy Shevchenko
@ 2017-03-23  9:27 ` Linus Walleij
  2017-03-23 16:30   ` Dmitry Torokhov
  1 sibling, 1 reply; 5+ messages in thread
From: Linus Walleij @ 2017-03-23  9:27 UTC (permalink / raw)
  To: Stephen Rothwell, Dmitry Torokhov
  Cc: linux-next, linux-kernel, Andy Shevchenko, Hans de Goede

On Mon, Mar 20, 2017 at 5:03 AM, Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> Hi Linus,
>
> Today's linux-next merge of the gpio tree got a conflict in:
>
>   drivers/input/misc/soc_button_array.c
>
> between commit:
>
>   a01cd17000a4 ("Input: soc_button_array - use NULL for GPIO connection ID")
>
> from the input tree and commit:
>
>   c5097538c86a ("Input: soc_button_array - Propagate error from gpiod_count()")
>
> from the gpio tree.

Dmitry, I could pick the commit from the input tree and apply
Stephen's solution and put the result in the GPIO tree if you think
it's a good idea.

Yours,
Linus Walleij

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

* Re: linux-next: manual merge of the gpio tree with the input tree
  2017-03-23  9:27 ` Linus Walleij
@ 2017-03-23 16:30   ` Dmitry Torokhov
  2017-03-23 22:49     ` Stephen Rothwell
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Torokhov @ 2017-03-23 16:30 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Stephen Rothwell, linux-next, linux-kernel, Andy Shevchenko,
	Hans de Goede

On Thu, Mar 23, 2017 at 2:27 AM, Linus Walleij <linus.walleij@linaro.org> wrote:
> On Mon, Mar 20, 2017 at 5:03 AM, Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>> Hi Linus,
>>
>> Today's linux-next merge of the gpio tree got a conflict in:
>>
>>   drivers/input/misc/soc_button_array.c
>>
>> between commit:
>>
>>   a01cd17000a4 ("Input: soc_button_array - use NULL for GPIO connection ID")
>>
>> from the input tree and commit:
>>
>>   c5097538c86a ("Input: soc_button_array - Propagate error from gpiod_count()")
>>
>> from the gpio tree.
>
> Dmitry, I could pick the commit from the input tree and apply
> Stephen's solution and put the result in the GPIO tree if you think
> it's a good idea.

I think the fix is trivial and if it does not both Stephen to carry it
on we'll let the other Linus resolve it in his tree when merging. I
think he prefers to have cross-tree merges only happen when it is
needed for development, not simply to resolve conflicts.

Thanks.

-- 
Dmitry

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

* Re: linux-next: manual merge of the gpio tree with the input tree
  2017-03-23 16:30   ` Dmitry Torokhov
@ 2017-03-23 22:49     ` Stephen Rothwell
  0 siblings, 0 replies; 5+ messages in thread
From: Stephen Rothwell @ 2017-03-23 22:49 UTC (permalink / raw)
  To: Dmitry Torokhov
  Cc: Linus Walleij, linux-next, linux-kernel, Andy Shevchenko, Hans de Goede

Hi Dmitry,

On Thu, 23 Mar 2017 09:30:49 -0700 Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote:
>
> I think the fix is trivial and if it does not both Stephen to carry it
> on we'll let the other Linus resolve it in his tree when merging. I
> think he prefers to have cross-tree merges only happen when it is
> needed for development, not simply to resolve conflicts.

I have no problem carrying the merge fix.

-- 
Cheers,
Stephen Rothwell

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

end of thread, other threads:[~2017-03-23 22:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-20  4:03 linux-next: manual merge of the gpio tree with the input tree Stephen Rothwell
2017-03-20 10:54 ` Andy Shevchenko
2017-03-23  9:27 ` Linus Walleij
2017-03-23 16:30   ` Dmitry Torokhov
2017-03-23 22:49     ` Stephen Rothwell

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