public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Greg Weeks <greg.weeks@timesys•com>
To: linuxppc-embedded@ozlabs•org
Subject: [patch] fix unitilized spinlock in cpm driver when used as console
Date: Wed, 16 Mar 2005 11:44:36 -0500	[thread overview]
Message-ID: <42386274.2020504@timesys.com> (raw)

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

Fix unitilized spinlock in the cpm scc driver when used as console.

Signed-off-by: Greg Weeks <greg.weeks@timesys•com>



[-- Attachment #2: cpm.console.spinlock.patch --]
[-- Type: text/x-patch, Size: 316 bytes --]

--- all/drivers/serial/cpm_uart/cpm_uart_core.c-orig
+++ all/drivers/serial/cpm_uart/cpm_uart_core.c

@@ -1038,6 +1038,7 @@
 
 	port =
 	    (struct uart_port *)&cpm_uart_ports[cpm_uart_port_map[co->index]];
+	spin_lock_init(&(port->lock));
 	pinfo = (struct uart_cpm_port *)port;
 	
 	pinfo->flags |= FLAG_CONSOLE;

             reply	other threads:[~2005-03-16 16:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-16 16:44 Greg Weeks [this message]
2005-03-16 16:52 ` [patch] fix unitilized spinlock in cpm driver when used as console Kumar Gala
2005-03-16 18:20   ` Greg Weeks

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42386274.2020504@timesys.com \
    --to=greg.weeks@timesys$(echo .)com \
    --cc=linuxppc-embedded@ozlabs$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox