Re: MPC5200,PSC in uart mode, receiving problem

3 messages, 3 authors, 2006-02-02 · open the first message on its own page

Re: MPC5200,PSC in uart mode, receiving problem

From: Wolfgang Denk <hidden>
Date: 2005-10-11 07:19:01

In message [off-list ref] you wrote:
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
Even better, post a patch here on the list so we all can benefit.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
The only time the world beats a path to your door is when you are  in
the bathroom.

AW: MPC5200,PSC in uart mode, receiving problem

From: Achim Machura <hidden>
Date: 2005-10-11 08:10:29

Here the patch
 
Even better, post a patch here on the list so we all can benefit.
 
Best regards,

Achim

Re: AW: MPC5200,PSC in uart mode, receiving problem

From: Frank Bodammer <hidden>
Date: 2006-02-02 18:43:28

Achim Machura wrote:
Here the patch
 
quoted
Even better, post a patch here on the list so we all can benefit.
I experienced similar problems with the serial ports on mpc5200 PSCs
and so i was happy to find your patch, which solved some problem, but
not all. The overrun flag still wasn´t reset after an input overrun
error, so this error was reported persistent for each received character.
I fixed this by adding an command to reset the psc error flags in
receive_char() where the overrun flag is checked. Maybe this isn't
the best solution, but it seems to work.

To reset the overrun error flag, i tried the following statement:

	out_8(&psc->command, MPC5xxx_PSC_RST_ERR_STAT);

but i got unpredictable behaviour in some cases ending in a reset.
Doing the same this way:

	psc->command = MPC5xxx_PSC_RST_ERR_STAT;

always worked as expected. Does someone know what may be wrong with
'out_8' on mpc5200 with kernel 2.4.25 or is that a configuration problem.

By the way, i improved some other parts of the code, especially the
/proc output and the portconfig stuff, so i also attach a patch here,
even not all of it may be useful.

Frank
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help