linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Valentine Barshak <vbarshak@dev.rtsoft.ru>
To: linuxppc-embedded@ozlabs.org
Subject: [PATCH] Enable IRQ0 for PPC4xx UART.
Date: Tue, 20 Mar 2007 22:02:10 +0300	[thread overview]
Message-ID: <46002FB2.7060802@dev.rtsoft.ru> (raw)

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



[-- Attachment #2: ppc4xx_uart_irq0_fix.patch --]
[-- Type: text/plain, Size: 694 bytes --]

[PATCH] Enable IRQ0 for PPC4xx UART

Redefine is_real_interrupt(irq) macro,
since IRQ0 is valid for PPC4xx platform.

Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com>

diff -ruN linux.orig/include/asm-ppc/serial.h linux/include/asm-ppc/serial.h
--- linux.orig/include/asm-ppc/serial.h	2007-03-16 18:04:16.000000000 +0300
+++ linux/include/asm-ppc/serial.h	2007-03-20 15:52:02.000000000 +0300
@@ -28,6 +28,9 @@
 #elif defined(CONFIG_SPRUCE)
 #include <platforms/spruce.h>
 #elif defined(CONFIG_4xx)
+/* UART IRQ0 is valid for PPC4xx */
+#undef is_real_interrupt
+#define is_real_interrupt(irq)	((irq) >= 0)
 #include <asm/ibm4xx.h>
 #elif defined(CONFIG_83xx)
 #include <asm/mpc83xx.h>

                 reply	other threads:[~2007-03-20 19:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=46002FB2.7060802@dev.rtsoft.ru \
    --to=vbarshak@dev.rtsoft.ru \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).