Skip to contentSkip to conversation

serial/sunzilog: fix keyboard on SUN SPARCstation

PATCH Superseded Sam Ravnborg 2 participants 2 messages Apr 4, 2012

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 serial/sunzilog: fix keyboard on SUN SPARCstation

From 360d177dd8c19f23a26371d4e9337a46a1cde779 Mon Sep 17 00:00:00 2001
From: Sam Ravnborg <[email protected]>
Date: Wed, 4 Apr 2012 09:00:11 +0200
Subject: [PATCH] serial/sunzilog: fix keyboard on SUN sparcstation

The keyboard on my SUN SPARCstation 5 no longer worked.

The culprint was: d4e33fac2408d37f7b52e80ca2a89f9fb482914f ("serial: Kill off NO_IRQ")

Fix up logic for no irq / irq so the keyboard works again.

Cc Alan Cox <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>

---

I assume the easy way is to channel this in via the sparc tree. The bug was introduced in the merge window - so this is not a stable candidate.

Sam

 drivers/tty/serial/sunzilog.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/tty/serial/sunzilog.c +2 -2
index b3b70b0..babd947 100644
@@ -1581,7 +1581,7 @@ static int __init sunzilog_init(void)
 	if (err)
 		goto out_unregister_uart;
 
-	if (!zilog_irq) {
+	if (zilog_irq) {
 		struct uart_sunzilog_port *up = sunzilog_irq_chain;
 		err = request_irq(zilog_irq, sunzilog_interrupt, IRQF_SHARED,
 				  "zs", sunzilog_irq_chain);
@@ -1622,7 +1622,7 @@ static void __exit sunzilog_exit(void)
 {
 	platform_driver_unregister(&zs_driver);
 
-	if (!zilog_irq) {
+	if (zilog_irq) {
 		struct uart_sunzilog_port *up = sunzilog_irq_chain;
 
 		/* Disable Interrupts */
Signature · 1 line
1.6.0.6
maintainer
#1 lore raw

From: Sam Ravnborg <[email protected]>
Date: Wed, 4 Apr 2012 09:28:07 +0200

Quoted 12 lines
Quoted 1 line

From 360d177dd8c19f23a26371d4e9337a46a1cde779 Mon Sep 17 00:00:00 2001

From: Sam Ravnborg <[email protected]>
Date: Wed, 4 Apr 2012 09:00:11 +0200
Subject: [PATCH] serial/sunzilog: fix keyboard on SUN sparcstation

The keyboard on my SUN SPARCstation 5 no longer worked.

The culprint was: d4e33fac2408d37f7b52e80ca2a89f9fb482914f ("serial: Kill off NO_IRQ")

Fix up logic for no irq / irq so the keyboard works again.

Quoted 7 lines
Cc Alan Cox <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>

---

I assume the easy way is to channel this in via the sparc tree. The bug was introduced in the merge window - so this is not a stable candidate.

Yep, I'll apply this, thanks Sam.