From: Michael Trimarchi <trimarchimichael@yahoo.it>
To: linux-sh@vger.kernel.org
Subject: Re: SH7722 serial scif
Date: Wed, 24 Sep 2008 15:57:03 +0000 [thread overview]
Message-ID: <519871.40680.qm@web26201.mail.ukl.yahoo.com> (raw)
In-Reply-To: <878566.91579.qm@web26201.mail.ukl.yahoo.com>
Hi,
----- Messaggio originale -----
> Da: Paul Mundt <lethal@linux-sh.org>
> A: Michael Trimarchi <trimarchimichael@yahoo.it>
> Cc: linux-sh@vger.kernel.org
> Inviato: Mercoledì 24 settembre 2008, 17:49:01
> Oggetto: Re: SH7722 serial scif
>
> On Wed, Sep 24, 2008 at 02:52:05PM +0000, Michael Trimarchi wrote:
> > I find a problem releated to the scif serial device. Using scif2 on the
> > MigoR, the kernel block on the second open of the device when it try to
> > register irq line. So in the shutdown sequence I add:
> >
> > sci_out(port, SCSCR, 0x00);
> >
> > and in the startup squence:
> >
> > sci_out(port, SCSCR, SCSCR_INIT(port));
> >
> > The version is 2.6.24.2 but I think is present in the latest release too.
> >
> > My idea is to post a patch to register and enable and disable for the
> > scif port on the SH7722. Can be a problem for other micro?
> >
> I'm not entirely sure I follow what the problem is, so yes, a patch would
> help. It sounds like you are running in to a problems trying to do multiple
> opens on the same port where request_irq() returns -EBUSY or some such
> thing? I don't immediately see how that would be happening, so perhaps
> I'm misunderstanding your problem.
The problem is much simple. The code does't exit from the request_irq. I suppose,
that kernel receive a very high number of interrupt requests. So this is the sequence:
---->uart_open(2)
|
\-------request_irq
|
\------- start_tx
The first time the code run without problem. ( I recevive a packet of one byte every 60ms)
The simple program exit without problem.
I run again the program with this result:
---->uart_open(2)
|
\------request_irq
Never exist. So I think is releated to the shutdown sequence and startup. Adding
the code above the problem disappear.
Is ok now this description?
Regards Michael
__________________________________________________
Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi
http://mail.yahoo.it
next prev parent reply other threads:[~2008-09-24 15:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-24 14:52 SH7722 serial scif Michael Trimarchi
2008-09-24 15:49 ` Paul Mundt
2008-09-24 15:57 ` Michael Trimarchi [this message]
2008-09-24 16:43 ` Paul Mundt
2008-09-25 9:17 ` Michael Trimarchi
2008-09-27 17:12 ` Magnus Damm
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=519871.40680.qm@web26201.mail.ukl.yahoo.com \
--to=trimarchimichael@yahoo.it \
--cc=linux-sh@vger.kernel.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