stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4.4 0/2] serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init
@ 2018-04-30  7:45 Daniel Wagner
  0 siblings, 0 replies; 7+ messages in thread
From: Daniel Wagner @ 2018-04-30  7:45 UTC (permalink / raw)
  To: stable; +Cc: Daniel Wagner

Hi Greg,

These two patches should probably be part of the 4.4 because
ce59e48fdbad ("serial: mctrl_gpio: implement interrupt handling")
backport. 4.9, 4.14 and 4.16 have these patches already in it.

Romain Izard (1):
  serial: mctrl_gpio: Add missing module license

Uwe Kleine-König (1):
  serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init

 drivers/tty/serial/serial_mctrl_gpio.c | 5 +++++
 1 file changed, 5 insertions(+)

-- 
2.14.3

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

* [PATCH v4.4 0/2] serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init
@ 2018-04-30  7:46 Daniel Wagner
  2018-04-30  7:46 ` [PATCH v4.4 1/2] " Daniel Wagner
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Daniel Wagner @ 2018-04-30  7:46 UTC (permalink / raw)
  To: stable; +Cc: Daniel Wagner

Hi Greg,

These two patches should probably be part of the 4.4 because
ce59e48fdbad ("serial: mctrl_gpio: implement interrupt handling")
backport. 4.9, 4.14 and 4.16 have these patches already in it.

Romain Izard (1):
  serial: mctrl_gpio: Add missing module license

Uwe Kleine-König (1):
  serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init

 drivers/tty/serial/serial_mctrl_gpio.c | 5 +++++
 1 file changed, 5 insertions(+)

-- 
2.14.3

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

* [PATCH v4.4 1/2] serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init
  2018-04-30  7:46 [PATCH v4.4 0/2] serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init Daniel Wagner
@ 2018-04-30  7:46 ` Daniel Wagner
  2018-04-30  7:46 ` [PATCH v4.4 2/2] serial: mctrl_gpio: Add missing module license Daniel Wagner
  2018-04-30 17:52 ` [PATCH v4.4 0/2] serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init Greg KH
  2 siblings, 0 replies; 7+ messages in thread
From: Daniel Wagner @ 2018-04-30  7:46 UTC (permalink / raw)
  To: stable; +Cc: Uwe Kleine-König, Greg Kroah-Hartman

From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

To be able to make use of the mctrl-gpio helper from a module these
functions must be exported. This was forgotten in the commit introducing
support interrupt handling for these functions (while it was done for
mctrl_gpio_enable_ms, *sigh*).

Fixes: ce59e48fdbad ("serial: mctrl_gpio: implement interrupt handling")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 drivers/tty/serial/serial_mctrl_gpio.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/tty/serial/serial_mctrl_gpio.c b/drivers/tty/serial/serial_mctrl_gpio.c
index 3eb57eb532f1..226ad23b136c 100644
--- a/drivers/tty/serial/serial_mctrl_gpio.c
+++ b/drivers/tty/serial/serial_mctrl_gpio.c
@@ -193,6 +193,7 @@ struct mctrl_gpios *mctrl_gpio_init(struct uart_port *port, unsigned int idx)
 
 	return gpios;
 }
+EXPORT_SYMBOL_GPL(mctrl_gpio_init);
 
 void mctrl_gpio_free(struct device *dev, struct mctrl_gpios *gpios)
 {
@@ -247,3 +248,4 @@ void mctrl_gpio_disable_ms(struct mctrl_gpios *gpios)
 		disable_irq(gpios->irq[i]);
 	}
 }
+EXPORT_SYMBOL_GPL(mctrl_gpio_disable_ms);
-- 
2.14.3

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

* [PATCH v4.4 2/2] serial: mctrl_gpio: Add missing module license
  2018-04-30  7:46 [PATCH v4.4 0/2] serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init Daniel Wagner
  2018-04-30  7:46 ` [PATCH v4.4 1/2] " Daniel Wagner
@ 2018-04-30  7:46 ` Daniel Wagner
  2018-04-30 17:52 ` [PATCH v4.4 0/2] serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init Greg KH
  2 siblings, 0 replies; 7+ messages in thread
From: Daniel Wagner @ 2018-04-30  7:46 UTC (permalink / raw)
  To: stable; +Cc: Romain Izard, Greg Kroah-Hartman

From: Romain Izard <romain.izard.pro@gmail.com>

As the mctrl_gpio driver can be built as a module, it needs to have its
license specified with MODULE_LICENSE. Otherwise, it cannot access
required symbols exported through EXPORT_SYMBOL_GPL.

Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 drivers/tty/serial/serial_mctrl_gpio.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/tty/serial/serial_mctrl_gpio.c b/drivers/tty/serial/serial_mctrl_gpio.c
index 226ad23b136c..02147361eaa9 100644
--- a/drivers/tty/serial/serial_mctrl_gpio.c
+++ b/drivers/tty/serial/serial_mctrl_gpio.c
@@ -20,6 +20,7 @@
 #include <linux/gpio/consumer.h>
 #include <linux/termios.h>
 #include <linux/serial_core.h>
+#include <linux/module.h>
 
 #include "serial_mctrl_gpio.h"
 
@@ -249,3 +250,5 @@ void mctrl_gpio_disable_ms(struct mctrl_gpios *gpios)
 	}
 }
 EXPORT_SYMBOL_GPL(mctrl_gpio_disable_ms);
+
+MODULE_LICENSE("GPL");
-- 
2.14.3

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

* Re: [PATCH v4.4 0/2] serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init
  2018-04-30  7:46 [PATCH v4.4 0/2] serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init Daniel Wagner
  2018-04-30  7:46 ` [PATCH v4.4 1/2] " Daniel Wagner
  2018-04-30  7:46 ` [PATCH v4.4 2/2] serial: mctrl_gpio: Add missing module license Daniel Wagner
@ 2018-04-30 17:52 ` Greg KH
  2018-04-30 17:54   ` Greg KH
  2018-05-01 15:42   ` Daniel Wagner
  2 siblings, 2 replies; 7+ messages in thread
From: Greg KH @ 2018-04-30 17:52 UTC (permalink / raw)
  To: Daniel Wagner; +Cc: stable

On Mon, Apr 30, 2018 at 09:46:20AM +0200, Daniel Wagner wrote:
> Hi Greg,
> 
> These two patches should probably be part of the 4.4 because
> ce59e48fdbad ("serial: mctrl_gpio: implement interrupt handling")
> backport. 4.9, 4.14 and 4.16 have these patches already in it.
> 
> Romain Izard (1):
>   serial: mctrl_gpio: Add missing module license
> 
> Uwe Kleine-K�nig (1):
>   serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init
> 
>  drivers/tty/serial/serial_mctrl_gpio.c | 5 +++++
>  1 file changed, 5 insertions(+)

What are the git commit ids of these patches in Linus's tree?  It's a
pain for me to have to dig them out...

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

* Re: [PATCH v4.4 0/2] serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init
  2018-04-30 17:52 ` [PATCH v4.4 0/2] serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init Greg KH
@ 2018-04-30 17:54   ` Greg KH
  2018-05-01 15:42   ` Daniel Wagner
  1 sibling, 0 replies; 7+ messages in thread
From: Greg KH @ 2018-04-30 17:54 UTC (permalink / raw)
  To: Daniel Wagner; +Cc: stable

On Mon, Apr 30, 2018 at 10:52:02AM -0700, Greg KH wrote:
> On Mon, Apr 30, 2018 at 09:46:20AM +0200, Daniel Wagner wrote:
> > Hi Greg,
> > 
> > These two patches should probably be part of the 4.4 because
> > ce59e48fdbad ("serial: mctrl_gpio: implement interrupt handling")
> > backport. 4.9, 4.14 and 4.16 have these patches already in it.
> > 
> > Romain Izard (1):
> >   serial: mctrl_gpio: Add missing module license
> > 
> > Uwe Kleine-K�nig (1):
> >   serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init
> > 
> >  drivers/tty/serial/serial_mctrl_gpio.c | 5 +++++
> >  1 file changed, 5 insertions(+)
> 
> What are the git commit ids of these patches in Linus's tree?  It's a
> pain for me to have to dig them out...

Nevermind, I found them...

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

* Re: [PATCH v4.4 0/2] serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init
  2018-04-30 17:52 ` [PATCH v4.4 0/2] serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init Greg KH
  2018-04-30 17:54   ` Greg KH
@ 2018-05-01 15:42   ` Daniel Wagner
  1 sibling, 0 replies; 7+ messages in thread
From: Daniel Wagner @ 2018-05-01 15:42 UTC (permalink / raw)
  To: Greg KH; +Cc: stable

> What are the git commit ids of these patches in Linus's tree?  It's a
> pain for me to have to dig them out...

Sorry about that. I'll do better next time.

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

end of thread, other threads:[~2018-05-01 15:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-30  7:46 [PATCH v4.4 0/2] serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init Daniel Wagner
2018-04-30  7:46 ` [PATCH v4.4 1/2] " Daniel Wagner
2018-04-30  7:46 ` [PATCH v4.4 2/2] serial: mctrl_gpio: Add missing module license Daniel Wagner
2018-04-30 17:52 ` [PATCH v4.4 0/2] serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init Greg KH
2018-04-30 17:54   ` Greg KH
2018-05-01 15:42   ` Daniel Wagner
  -- strict thread matches above, loose matches on Subject: below --
2018-04-30  7:45 Daniel Wagner

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