Re: sc16is7xx: sometimes invalid chars read

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 2016-03-01 14:34, Kuba Kicinski wrote:
On 1 March 2016 02:10:01 GMT-05:00, "Sean Nyekjær" <sean.nyekjaer@xxxxxxxxx> wrote:

On 2016-02-29 17:48, Greg KH wrote:
On Mon, Feb 29, 2016 at 01:47:36PM +0100, Sean Nyekjær wrote:
Hi

I'm still having some problems with this driver :-(

I'm using the sc16is750 on an imx6d platform i have tested it with a
vanilla
kernel and RT patches applied.

I have our hardware hooked up to a PC using an ttl ftdi chip, both
the
sc16is750 and the ftdi is setup:
$ stty -F /dev/tty[dev] 115200 raw -echo

  From the PC I cat a large file:
$ cat /var/log/pacman.log > /dev/ttyUSB3

And on the imx I open and closes cat:
$ cat /dev/ttySC0
[2014-09-17 08:08] [ALPM-SCRIPTLET] gpg: next trustdb check due at
2015-03-31
[2014-09-17 08:08] [PACMAN] upgraded archlinux-keyring (20140220-1
->
20140908-1)
[2014-09-17 08:08] [PACMAN] upgraded linux-api-headers (3.14.1-1 ->
3.16.2-1)
[2014-09-17 08:08] [ALPM] warning: /etc/locale.gen installed as
/etc/locale.gen.pacnew
[2014-09-17 08:08] [ALPM-SCRIPTLET] Generating locales...
[2014-09-17 08:08] [ALPM-SCRIPTLET]   en_DK.UTF-8... done
...

Waiting for data to flow and closes og repeates again, most of the
time data
is flowing perfectly but sometimes the whole datastream is
containing
invalid chars:

$ cat /dev/ttySC0
'cat' is never a good thing to use for serial ports, try using
something
like minicom or another program that knows it is talking to a serial
device.

thanks,

greg k-h

Ops

[...]
CPU: 0 PID: 287 Comm: minicom Not tainted 4.1.15-00136-g27ad049-dirty
Thats a bit of an old kernel, did you backport recent changes?

Yes

d9dd2a9 sc16is7xx: drop bogus use of IRQF_ONESHOT
c5d56ca sc16is7xx: implemented get_mctrl
0f54c6b sc16is7xx: implemented set_mctrl
8d3a97d sc16is7xx: fix incorrect register bits macro
6ab9767 sc16is7xx: Fix TX buffer overrun caused by wrong tx fifo level read-out
69ccc33 sc16is7xx: null ptr check
799ebc4 serial: sc16is7xx: Remove unnecessary MODULE_ALIAS()
424d2bf sc16is7xx: constify devtype
7a8b892 sc16is7xx: support multiple devices
11caf89 sc16is7xx: save and use per-chip line number
c52f907 tty: serial: Drop owner assignment from i2c_driver
cb1b6b9 sc16is7xx: fix FIFO address of secondary UART
56dda02 sc16is7xx: use kworker for RS-485 configuration

:-)
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux