public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
* linux-next: manual merge of the gpio-brgl tree with the arm-soc tree
@ 2023-05-30  4:19 Stephen Rothwell
  2023-05-30  9:28 ` Arnd Bergmann
  0 siblings, 1 reply; 12+ messages in thread
From: Stephen Rothwell @ 2023-05-30  4:19 UTC (permalink / raw)
  To: Bartosz Golaszewski, Olof Johansson, Arnd Bergmann
  Cc: ARM, Andrew Davis, Bartosz Golaszewski, Linus Walleij,
	Linux Kernel Mailing List, Linux Next Mailing List

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

Hi all,

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

  drivers/gpio/gpio-twl4030.c

between commit:

  d5f4fa60d63a ("ARM/gpio: Push OMAP2 quirk down into TWL4030 driver")

from the arm-soc tree and commit:

  fbc8ab2ccd85 ("gpio: twl4030: Use devm_gpiochip_add_data() to simplify remove path")

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

diff --cc drivers/gpio/gpio-twl4030.c
index 446599ac234a,3708ed2314e8..000000000000
--- a/drivers/gpio/gpio-twl4030.c
+++ b/drivers/gpio/gpio-twl4030.c
@@@ -490,30 -492,9 +490,18 @@@ static struct twl4030_gpio_platform_dat
  	return omap_twl_info;
  }
  
- /* Cannot use as gpio_twl4030_probe() calls us */
- static int gpio_twl4030_remove(struct platform_device *pdev)
- {
- 	struct gpio_twl4030_priv *priv = platform_get_drvdata(pdev);
- 
- 	gpiochip_remove(&priv->gpio_chip);
- 
- 	/* REVISIT no support yet for deregistering all the IRQs */
- 	WARN_ON(!is_module());
- 	return 0;
- }
- 
 +/* Called from the registered devm action */
 +static void gpio_twl4030_power_off_action(void *data)
 +{
 +	struct gpio_desc *d = data;
 +
 +	gpiod_unexport(d);
 +	gpiochip_free_own_desc(d);
 +}
 +
  static int gpio_twl4030_probe(struct platform_device *pdev)
  {
 -	struct twl4030_gpio_platform_data *pdata = dev_get_platdata(&pdev->dev);
 +	struct twl4030_gpio_platform_data *pdata;
  	struct device_node *node = pdev->dev.of_node;
  	struct gpio_twl4030_priv *priv;
  	int ret, irq_base;
@@@ -586,38 -569,19 +574,35 @@@ no_irqs
  	if (ret < 0) {
  		dev_err(&pdev->dev, "could not register gpiochip, %d\n", ret);
  		priv->gpio_chip.ngpio = 0;
- 		gpio_twl4030_remove(pdev);
- 		goto out;
+ 		return ret;
  	}
  
 -	if (pdata->setup) {
 -		int status;
 +	/*
 +	 * Special quirk for the OMAP3 to hog and export a WLAN power
 +	 * GPIO.
 +	 */
 +	if (IS_ENABLED(CONFIG_ARCH_OMAP3) &&
 +	    of_machine_is_compatible("compulab,omap3-sbc-t3730")) {
 +		struct gpio_desc *d;
 +
 +		d = gpiochip_request_own_desc(&priv->gpio_chip,
 +						 2, "wlan pwr",
 +						 GPIO_ACTIVE_HIGH,
 +						 GPIOD_OUT_HIGH);
 +		if (IS_ERR(d))
 +			return dev_err_probe(&pdev->dev, PTR_ERR(d),
 +					     "unable to hog wlan pwr GPIO\n");
 +
 +		gpiod_export(d, 0);
 +
 +		ret = devm_add_action_or_reset(&pdev->dev, gpio_twl4030_power_off_action, d);
 +		if (ret)
 +			return dev_err_probe(&pdev->dev, ret,
 +					     "failed to install power off handler\n");
  
 -		status = pdata->setup(&pdev->dev, priv->gpio_chip.base,
 -				      TWL4030_GPIO_MAX);
 -		if (status)
 -			dev_dbg(&pdev->dev, "setup --> %d\n", status);
  	}
  
- 	platform_set_drvdata(pdev, priv);
- out:
- 	return ret;
+ 	return 0;
  }
  
  static const struct of_device_id twl_gpio_match[] = {

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

^ permalink raw reply	[flat|nested] 12+ messages in thread
* linux-next: manual merge of the gpio-brgl tree with the arm-soc tree
@ 2024-09-12  7:48 Stephen Rothwell
  2024-09-12 12:10 ` Arnd Bergmann
  2024-09-19  0:15 ` Stephen Rothwell
  0 siblings, 2 replies; 12+ messages in thread
From: Stephen Rothwell @ 2024-09-12  7:48 UTC (permalink / raw)
  To: Bartosz Golaszewski, Olof Johansson, Arnd Bergmann
  Cc: ARM, Andy Shevchenko, Bartosz Golaszewski,
	Linux Kernel Mailing List, Linux Next Mailing List, Nikita Shubin

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

Hi all,

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

  arch/arm/mach-ep93xx/vision_ep9307.c

between commit:

  3e0bae7f35c9 ("ARM: ep93xx: delete all boardfiles")

from the arm-soc tree and commits:

  4b2b0a2ce815 ("gpiolib: legacy: Kill GPIOF_INIT_* definitions")
  8c045ca534d0 ("gpiolib: legacy: Kill GPIOF_DIR_* definitions")

from the gpio-brgl tree.

I fixed it up (I removed the file) 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

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

^ permalink raw reply	[flat|nested] 12+ messages in thread
* linux-next: manual merge of the gpio-brgl tree with the arm-soc tree
@ 2021-01-28  6:03 Stephen Rothwell
  2021-02-09 10:01 ` Geert Uytterhoeven
  0 siblings, 1 reply; 12+ messages in thread
From: Stephen Rothwell @ 2021-01-28  6:03 UTC (permalink / raw)
  To: Bartosz Golaszewski, Olof Johansson, Arnd Bergmann, ARM
  Cc: Bartosz Golaszewski, Linux Kernel Mailing List,
	Linux Next Mailing List, Nobuhiro Iwamatsu

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

Hi all,

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

  arch/arm64/boot/dts/toshiba/tmpv7708-rm-mbrc.dts

between commit:

  4fd18fc38757 ("arm64: dts: visconti: Add watchdog support for TMPV7708 SoC")

from the arm-soc tree and commit:

  08bc3941b6a4 ("arm: dts: visconti: Add DT support for Toshiba Visconti5 GPIO driver")

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

diff --cc arch/arm64/boot/dts/toshiba/tmpv7708-rm-mbrc.dts
index 37da418393e0,950010a290f0..000000000000
--- a/arch/arm64/boot/dts/toshiba/tmpv7708-rm-mbrc.dts
+++ b/arch/arm64/boot/dts/toshiba/tmpv7708-rm-mbrc.dts
@@@ -42,7 -42,6 +42,11 @@@
  	clock-names = "apb_pclk";
  };
  
 +&wdt {
 +	status = "okay";
 +	clocks = <&wdt_clk>;
 +};
++
+ &gpio {
+ 	status = "okay";
+ };

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

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

end of thread, other threads:[~2024-09-19  0:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-30  4:19 linux-next: manual merge of the gpio-brgl tree with the arm-soc tree Stephen Rothwell
2023-05-30  9:28 ` Arnd Bergmann
2023-05-30  9:35   ` Bartosz Golaszewski
2023-05-30  9:49     ` Linus Walleij
  -- strict thread matches above, loose matches on Subject: below --
2024-09-12  7:48 Stephen Rothwell
2024-09-12 12:10 ` Arnd Bergmann
2024-09-13  9:46   ` Andy Shevchenko
2024-09-19  0:15 ` Stephen Rothwell
2021-01-28  6:03 Stephen Rothwell
2021-02-09 10:01 ` Geert Uytterhoeven
2021-02-09 11:35   ` Arnd Bergmann
2021-02-10  5:33     ` nobuhiro1.iwamatsu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox