From: Michael Trimarchi <trimarchimichael@yahoo.it>
To: Paul Mundt <lethal@linux-sh.org>
Cc: linux-kernel@vger.kernel.org, linux-sh@vger.kernel.org,
Michael Trimarchi <trimarchi@gandalf.sssup.it>
Subject: MigoR and Scif Serial
Date: Fri, 24 Oct 2008 09:29:42 +0000 [thread overview]
Message-ID: <800596.6344.qm@web23506.mail.ird.yahoo.com> (raw)
Hi,
I find some problem in MigoR board using scif serial device and console too.
Looking at the setup-Sh7722.c, the platform sci port data has the irqs
line equal to one interrupt. In the driver this line is multiplexed and
using for manage all the interrupt (error, transmit, receive, etc...) but
the sci_mpxed_interrupt check the wrong status for interrupt and break
error. They are on a single bit. So modify the code like this, resolve
the issue.
/* Error Interrupt */
if ((ssr_status & 0x0080) && (scr_status & 0x08)) <-----
sci_er_interrupt(irq, ptr);
/* Break Interrupt */
if ((ssr_status & 0x0010) && (scr_status & 0x08)) <-----
sci_br_interrupt(irq, ptr);
Is there any reasons to multiplex the serial interrupt on sh7722?
Another question is:
It is correct to implement the tx_empty like this?
static unsigned int sci_tx_empty(struct uart_port *port)
{
unsigned int ret = TIOCSER_TEMT;
/* Detect for scif device */
if (port->type = PORT_SCIF) {
if (scif_txroom(port) = SCIF_TXROOM_MAX)
ret = TIOCSER_TEMT;
else
ret = 0;
}
return ret;
}
Regards Michael
Scopri il blog di Yahoo! Mail:
Trucchi, novità e scrivi la tua opinione.
http://www.ymailblogit.com/blog
reply other threads:[~2008-10-24 9:29 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=800596.6344.qm@web23506.mail.ird.yahoo.com \
--to=trimarchimichael@yahoo.it \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=trimarchi@gandalf.sssup.it \
/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