All of lore.kernel.org
 help / color / mirror / Atom feed
* FAILED: patch "[PATCH] serial: imx: restore handshaking irq for imx1" failed to apply to 4.4-stable tree
@ 2018-09-29 23:41 gregkh
  2018-10-01  8:20 ` [PATCH v4.4.y] serial: imx: restore handshaking irq for imx1 Uwe Kleine-König
  0 siblings, 1 reply; 3+ messages in thread
From: gregkh @ 2018-09-29 23:41 UTC (permalink / raw)
  To: u.kleine-koenig, gregkh, leonard.crestez, stable; +Cc: stable


The patch below does not apply to the 4.4-stable tree.
If someone wants it applied there, or to any other stable or longterm
tree, then please email the backport, including the original git commit
id to <stable@vger.kernel.org>.

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

>From 7e620984b62532783912312e334f3c48cdacbd5d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>
Date: Thu, 20 Sep 2018 14:11:17 +0200
Subject: [PATCH] serial: imx: restore handshaking irq for imx1
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Back in 2015 when irda was dropped from the driver imx1 was broken. This
change reintroduces the support for the third interrupt of the UART.

Fixes: afe9cbb1a6ad ("serial: imx: drop support for IRDA")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index 239c0fa2e981..0f67197a3783 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -2351,6 +2351,14 @@ static int imx_uart_probe(struct platform_device *pdev)
 				ret);
 			return ret;
 		}
+
+		ret = devm_request_irq(&pdev->dev, rtsirq, imx_uart_rtsint, 0,
+				       dev_name(&pdev->dev), sport);
+		if (ret) {
+			dev_err(&pdev->dev, "failed to request rts irq: %d\n",
+				ret);
+			return ret;
+		}
 	} else {
 		ret = devm_request_irq(&pdev->dev, rxirq, imx_uart_int, 0,
 				       dev_name(&pdev->dev), sport);

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

* [PATCH v4.4.y] serial: imx: restore handshaking irq for imx1
  2018-09-29 23:41 FAILED: patch "[PATCH] serial: imx: restore handshaking irq for imx1" failed to apply to 4.4-stable tree gregkh
@ 2018-10-01  8:20 ` Uwe Kleine-König
  2018-10-01 18:55   ` Leonard Crestez
  0 siblings, 1 reply; 3+ messages in thread
From: Uwe Kleine-König @ 2018-10-01  8:20 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Leonard Crestez, kernel, stable

commit 7e620984b62532783912312e334f3c48cdacbd5d upstream.

Back in 2015 when irda was dropped from the driver imx1 was broken. This
change reintroduces the support for the third interrupt of the UART.

Fixes: afe9cbb1a6ad ("serial: imx: drop support for IRDA")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[ukl: backport to 4.4.y which has changed context and different function names]
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
Hello,

this is the backport for v4.4.y. The changed context is that a failure
to request the other irqs doesn't emit an error message which was added
in commit 1e512d45332bb3a2e97ca262101d43adca274bb2. I still kept the
error message for the added function as does the original commit.

Best regards
Uwe

 drivers/tty/serial/imx.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index 07ede982b472..f5f46c121ee3 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -1997,6 +1997,14 @@ static int serial_imx_probe(struct platform_device *pdev)
 				       dev_name(&pdev->dev), sport);
 		if (ret)
 			return ret;
+
+		ret = devm_request_irq(&pdev->dev, rtsirq, imx_rtsint, 0,
+				       dev_name(&pdev->dev), sport);
+		if (ret) {
+			dev_err(&pdev->dev, "failed to request rts irq: %d\n",
+				ret);
+			return ret;
+		}
 	} else {
 		ret = devm_request_irq(&pdev->dev, rxirq, imx_int, 0,
 				       dev_name(&pdev->dev), sport);
-- 
2.19.0

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

* Re: [PATCH v4.4.y] serial: imx: restore handshaking irq for imx1
  2018-10-01  8:20 ` [PATCH v4.4.y] serial: imx: restore handshaking irq for imx1 Uwe Kleine-König
@ 2018-10-01 18:55   ` Leonard Crestez
  0 siblings, 0 replies; 3+ messages in thread
From: Leonard Crestez @ 2018-10-01 18:55 UTC (permalink / raw)
  To: u.kleine-koenig; +Cc: kernel, stable, gregkh

On Mon, 2018-10-01 at 10:20 +0200, Uwe Kleine-König wrote:
> commit 7e620984b62532783912312e334f3c48cdacbd5d upstream.
> 
> Back in 2015 when irda was dropped from the driver imx1 was broken. This
> change reintroduces the support for the third interrupt of the UART.
> 
> Fixes: afe9cbb1a6ad ("serial: imx: drop support for IRDA")
> Cc: stable <stable@vger.kernel.org>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> [ukl: backport to 4.4.y which has changed context and different function names]
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
> Hello,
> 
> this is the backport for v4.4.y. The changed context is that a failure
> to request the other irqs doesn't emit an error message which was added
> in commit 1e512d45332bb3a2e97ca262101d43adca274bb2. I still kept the
> error message for the added function as does the original commit.

Not sure this is needed but I looked over this backport as well:

Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>

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

end of thread, other threads:[~2018-10-02  1:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-29 23:41 FAILED: patch "[PATCH] serial: imx: restore handshaking irq for imx1" failed to apply to 4.4-stable tree gregkh
2018-10-01  8:20 ` [PATCH v4.4.y] serial: imx: restore handshaking irq for imx1 Uwe Kleine-König
2018-10-01 18:55   ` Leonard Crestez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.