Re: [PATCH] serial: revert "Use block_til_ready helper"

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Arnd Bergmann
Date: Sunday, June 20, 2010 - 1:54 pm

On Saturday 19 June 2010 23:57:06 Alan Cox wrote:

What I see is totally reproducible but does not make any sense to me.
In my test setup I have a serial cable between /dev/ttyS0 (on-board
16550A) and /dev/ttyUSB0 on the same machine.

When I start minicom on ttyS0 (or cat, for that matter), and start
a getty on ttyUSB0 (or write into it any other way), everything is
totally fine.

I can observe the following problems when I start minicom on ttyUSB0:
- writing to ttyS0 using cat alone gives garbled output
- writing to ttyS0 using minicom always works
- running a getty on ttyS0 lets me log in once
- writing to ttyS0 using cat works fine while a working getty or minicom
  also has ttyS0 open
- running the getty on ttyS0 a second time gives me the same garbled
  output as cat gives me

The way that the output is garbled seems to be just missing characters,
in a mostly reproducible way. Repeatedly writing the string
abcdefghijklmnopqrstuvwxyz1234567890 into ttyS0 gives an output like
'akq7m3iy', where only every sixteenth character is shown, plus
an extra character in the second position.

	Arnd
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v3 00/10] BKL conversion in tty layer, Arnd Bergmann, (Sat May 15, 1:59 pm)
[PATCH 06/10] tty: annotate tty_write_lock, Arnd Bergmann, (Sat May 15, 1:59 pm)
Re: [PATCH v3 00/10] BKL conversion in tty layer, Alan Cox, (Mon May 17, 6:41 am)
Re: [PATCH v3 00/10] BKL conversion in tty layer, Greg KH, (Mon May 17, 8:30 am)
Re: [PATCH v3 00/10] BKL conversion in tty layer, Arnd Bergmann, (Mon May 17, 11:30 am)
Re: [PATCH v3 00/10] BKL conversion in tty layer, Arnd Bergmann, (Mon May 17, 11:49 am)
Re: [PATCH v3 00/10] BKL conversion in tty layer, Greg KH, (Mon May 17, 9:27 pm)
Re: [PATCH v3 00/10] BKL conversion in tty layer, Arnd Bergmann, (Tue May 18, 2:52 pm)
Re: [PATCH v3 00/10] BKL conversion in tty layer, Greg KH, (Tue May 18, 6:50 pm)
Re: [PATCH v3 00/10] BKL conversion in tty layer, Arnd Bergmann, (Sat May 22, 6:54 am)
Re: [PATCH v3 00/10] BKL conversion in tty layer, Tony Luck, (Thu Jun 17, 12:13 pm)
Re: [PATCH v3 00/10] BKL conversion in tty layer, Arnd Bergmann, (Thu Jun 17, 12:40 pm)
Re: [PATCH v3 00/10] BKL conversion in tty layer, Tony Luck, (Thu Jun 17, 1:15 pm)
Re: [PATCH v3 00/10] BKL conversion in tty layer, Arnd Bergmann, (Thu Jun 17, 2:48 pm)
Re: [PATCH v3 00/10] BKL conversion in tty layer, Frederic Weisbecker, (Thu Jun 17, 3:09 pm)
[PATCH] tty: avoid recursive BTM in pty_close, Arnd Bergmann, (Fri Jun 18, 5:58 am)
Re: [PATCH] tty: avoid recursive BTM in pty_close, Alan Cox, (Fri Jun 18, 9:21 am)
Re: [PATCH] tty: avoid recursive BTM in pty_close, Tony Luck, (Fri Jun 18, 9:52 am)
Re: [PATCH] tty: avoid recursive BTM in pty_close, Arnd Bergmann, (Fri Jun 18, 11:35 am)
Re: [PATCH] tty: avoid recursive BTM in pty_close, Tony Luck, (Fri Jun 18, 1:25 pm)
Re: [PATCH] tty: avoid recursive BTM in pty_close, Arnd Bergmann, (Sat Jun 19, 5:32 am)
Re: [PATCH] serial: revert "Use block_til_ready helper", Arnd Bergmann, (Sun Jun 20, 1:54 pm)
Re: [PATCH] tty: avoid recursive BTM in pty_close, Tony Luck, (Mon Jun 28, 10:17 am)
Re: [PATCH] tty: avoid recursive BTM in pty_close, Arnd Bergmann, (Mon Jun 28, 12:03 pm)