Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1569381 > unrolled thread

linux-next: manual merge of the gpio tree with the staging tree

Started byStephen Rothwell <sfr@canb.auug.org.au>
First post2017-01-30 05:50 +0100
Last post2017-01-30 18:40 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  linux-next: manual merge of the gpio tree with the staging tree Stephen Rothwell <sfr@canb.auug.org.au> - 2017-01-30 05:50 +0100
    Re: linux-next: manual merge of the gpio tree with the staging tree Greg KH <greg@kroah.com> - 2017-01-30 18:10 +0100
    Re: linux-next: manual merge of the gpio tree with the staging tree Linus Walleij <linus.walleij@linaro.org> - 2017-01-30 18:40 +0100

#1569381 — linux-next: manual merge of the gpio tree with the staging tree

FromStephen Rothwell <sfr@canb.auug.org.au>
Date2017-01-30 05:50 +0100
Subjectlinux-next: manual merge of the gpio tree with the staging tree
Message-ID<t5c4F-7WV-9@gated-at.bofh.it>
Hi Linus,

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

  drivers/staging/greybus/gpio.c

between commit:

  1d3dfbd1dd34 ("staging: greybus: fix checkpatch unsigned warnings")

from the staging tree and commit:

  2956b5d94a76 ("pinctrl / gpio: Introduce .set_config() callback for GPIO chips")

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/staging/greybus/gpio.c
index 558550cfe687,51384bdde450..000000000000
--- a/drivers/staging/greybus/gpio.c
+++ b/drivers/staging/greybus/gpio.c
@@@ -474,17 -474,20 +474,20 @@@ static void gb_gpio_set(struct gpio_chi
  	gb_gpio_set_value_operation(ggc, (u8)offset, !!value);
  }
  
- static int gb_gpio_set_debounce(struct gpio_chip *chip, unsigned int offset,
- 				unsigned int debounce)
 -static int gb_gpio_set_config(struct gpio_chip *chip, unsigned offset,
++static int gb_gpio_set_config(struct gpio_chip *chip, unsigned int offset,
+ 			      unsigned long config)
  {
  	struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip);
- 	u16 usec;
+ 	u32 debounce;
  
+ 	if (pinconf_to_config_param(config) != PIN_CONFIG_INPUT_DEBOUNCE)
+ 		return -ENOTSUPP;
+ 
+ 	debounce = pinconf_to_config_argument(config);
  	if (debounce > U16_MAX)
  		return -EINVAL;
- 	usec = (u16)debounce;
  
- 	return gb_gpio_set_debounce_operation(ggc, (u8)offset, usec);
+ 	return gb_gpio_set_debounce_operation(ggc, (u8)offset, (u16)debounce);
  }
  
  static int gb_gpio_controller_setup(struct gb_gpio_controller *ggc)

[toc] | [next] | [standalone]


#1569905

FromGreg KH <greg@kroah.com>
Date2017-01-30 18:10 +0100
Message-ID<t5nCO-6CL-11@gated-at.bofh.it>
In reply to#1569381
On Mon, Jan 30, 2017 at 03:28:55PM +1100, Stephen Rothwell wrote:
> Hi Linus,
> 
> Today's linux-next merge of the gpio tree got a conflict in:
> 
>   drivers/staging/greybus/gpio.c
> 
> between commit:
> 
>   1d3dfbd1dd34 ("staging: greybus: fix checkpatch unsigned warnings")
> 
> from the staging tree and commit:
> 
>   2956b5d94a76 ("pinctrl / gpio: Introduce .set_config() callback for GPIO chips")
> 
> 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/staging/greybus/gpio.c
> index 558550cfe687,51384bdde450..000000000000
> --- a/drivers/staging/greybus/gpio.c
> +++ b/drivers/staging/greybus/gpio.c
> @@@ -474,17 -474,20 +474,20 @@@ static void gb_gpio_set(struct gpio_chi
>   	gb_gpio_set_value_operation(ggc, (u8)offset, !!value);
>   }
>   
> - static int gb_gpio_set_debounce(struct gpio_chip *chip, unsigned int offset,
> - 				unsigned int debounce)
>  -static int gb_gpio_set_config(struct gpio_chip *chip, unsigned offset,
> ++static int gb_gpio_set_config(struct gpio_chip *chip, unsigned int offset,
> + 			      unsigned long config)
>   {
>   	struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip);
> - 	u16 usec;
> + 	u32 debounce;
>   
> + 	if (pinconf_to_config_param(config) != PIN_CONFIG_INPUT_DEBOUNCE)
> + 		return -ENOTSUPP;
> + 
> + 	debounce = pinconf_to_config_argument(config);
>   	if (debounce > U16_MAX)
>   		return -EINVAL;
> - 	usec = (u16)debounce;
>   
> - 	return gb_gpio_set_debounce_operation(ggc, (u8)offset, usec);
> + 	return gb_gpio_set_debounce_operation(ggc, (u8)offset, (u16)debounce);
>   }
>   
>   static int gb_gpio_controller_setup(struct gb_gpio_controller *ggc)


Looks good, thanks for this.

greg k-h

[toc] | [prev] | [next] | [standalone]


#1569944

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-01-30 18:40 +0100
Message-ID<t5o5Q-6Mu-27@gated-at.bofh.it>
In reply to#1569381
On Mon, Jan 30, 2017 at 5:28 AM, Stephen Rothwell <sfr@canb.auug.org.au> wrote:

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

OK I'll mention it to Linus (the big penguin). Thanks!

Linus Walleij

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web