serial rxerr

Andy Green andy at openmoko.com
Tue Feb 3 21:00:55 CET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Somebody in the thread at some point said:

| I'll compile it with debug set and see if there's anything obvious.

The debugging stuff in samsung.c at the moment doesn't print umcon where
AFC is enabled... I think it can mean this did not get much attention
before now.  Also that debugging stuff does not differentiate by UART
channel as it stands.

I started up some three-letter name distro of a few days ago from SD
Card, when I print umcon additionally from samsung.c, I never see AFC
enabled.

So I think this is wrong already, GSM port should have AFC up to protect
against normal kind of lockouts etc.

root at om-gta02:~# stty -F /dev/ttySAC0 -a
s3c24xx_serial_startup: port=50000000 (f5000000,c050ccdc)
requesting tx irq...
s3c24xx_serial_startup ok
selecting clock c04f69c8
config: 8bits/char
setting ulcon to 00000003, brddiv to 325, udivslot 00000000 umcon 00000000
uart: ulcon = 0x00000003, ucon = 0x00000385, ufcon = 0x00000011
break!
speed 9600 baud; rows 24; columns 80;
intr = ^C; quit = ^\; erase = ^?s3c24xx_serial_stop_rx: port=c050ca24
; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
- -parenb -parodd cs8 -hupcl -cstopb cread clocal -crtscts
- -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
- -ixoff
- -iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke

When I do

root at om-gta02:~# stty -F /dev/ttySAC0 crtscts
s3c24xx_serial_startup: port=50000000 (f5000000,c050ccdc)
requesting tx irq...
s3c24xx_serial_startup ok
config: 8bits/char
setting ulcon to 00000003, brddiv to 325, udivslot 00000000 umcon 00000000
uart: ulcon = 0x00000003, ucon = 0x00000385, ufcon = 0x00000011
config: 8bits/char
setting ulcon to 00000003, brddiv to 325, udivslot 00000000 umcon 00000010
uart: ulcon = 0x00000003, ucon = 0x00000385, ufcon = 0x00000011
s3c24xx_serial_stop_rx: port=c050ca24

umcon is set correctly.

So please try that command on your device and see if the overruns are gone.

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkmIoncACgkQOjLpvpq7dMpYZQCgkByTjNCPmk9S1uPaNrDXVv/t
XK0AniNCKJqdFDetn7188Nb6+BiNAvTh
=wYLW
-----END PGP SIGNATURE-----



More information about the openmoko-kernel mailing list