linux-mips-fnet
[Top] [All Lists]

RE: More DZ Serial driver

To: linux-mips@fnet.fr
Subject: RE: More DZ Serial driver
From: Thomas Riemer <triemer@apt4g.a3nyc.com>
Date: Sat, 31 Oct 1998 10:46:42 -0500 (EST)
In-reply-to: <XFMail.981031155818.harald.koerfgen@netcologne.de>
That may help...

I've come up with an alternate hypothesis that seems to fit the 
facts better - I'm apparently not generating an interrupt on
receiving characters.  Why, I don't know... It looks like I've
done everything according to the docs.... but apparently not.

It even looks like I've done it in the same was as the guy who
wrote the dc.c from freebsd.

-Tom

-----------------------------------------------------------------------
Given enough eyeballs all bugs seem shallow.

On Sat, 31 Oct 1998, Harald Koerfgen wrote:

> 
> On 30-Oct-98 Thomas Riemer wrote:
> > I've worked through all the details of getting characters to 
> > be received on the DZ serial driver...
> > 
> > I've also worked through the details of getting characters to 
> > transmit on the DZ serial driver line...
> > 
> > But I can't get them both working at the same time. 
> > 
> [snip]
> > 
> > None of these hypotheses really make much sense standing alone - and
> > don't really explain what I'm seeing.  Having pounded my head hard on 
> > this for about 2 weeks - I'm in need of some suggestions on how
> > to approach the problem. 
> 
> Are you shure you are "flushing" the writeback buffer after writing to the DZ
> registers?
> 
> If not, you may want to try the following patchlet.
> 
> --- snip here ---
> 
> --- dz.c.orig   Sat Oct 31 15:21:05 1998
> +++ dz.c        Sat Oct 31 15:21:55 1998
> @@ -44,6 +44,7 @@
>  
>  #include <asm/uaccess.h>
>  #include <asm/irq.h>
> +#include <asm/wbflush.h>
>  #include <asm/dec/machtype.h>
>  #include <asm/dec/kn01.h>
>  #include <asm/dec/kn02.h>
> @@ -77,6 +78,7 @@
>    volatile unsigned short *addr = (volatile unsigned short *)(info->port + 
> offset);
>  
>    *addr = value;
> +  wbflush();
>  }
>  
>  /*
> 
> --- snip here ---
> 
> I'm not shure if this really addresses your problem, but it might help anyway.
> 
> ---
> Regards,
> Harald
> 

<Prev in Thread] Current Thread [Next in Thread>