From: Matthieu CASTET <matthieu.castet@parrot.com>
Cc: linux-serial@vger.kernel.org, Ben Dooks <ben-linux@fluff.org>,
linux-kernel@vger.kernel.org
Subject: Re: s3c24xx : TIOCM_CTS handling problem
Date: Tue, 16 Dec 2008 14:43:01 +0100 [thread overview]
Message-ID: <4947B065.5080405@parrot.com> (raw)
In-Reply-To: <48D242DC.30102@parrot.com>
Matthieu CASTET a écrit :
> Hi,
>
> there is a problem in samsung soc serial driver with the report of
> TIOCM_CTS in get_mctrl.
>
> The uart layer check the status of the TIOCM_CTS in the open or
> set_termios function and cache the result in the tty->hw_stopped flag.
>
> Then when sending data, in the function uart_start, it check
> tty->hw_stopped flag before calling the start_tx uart driver callback.
>
>
> For the samsung uart driver it means :
> - if the other side is not connected or in a reset state, then CTS
> signal is not activated
> - we open and configure the uart. get_mctrl don't report TIOCM_CTS flag.
> uart layer set tty->hw_stopped flag.
> - we connect or start the other side. CTS signal become activated.
> - we send some characters on the uart. This call uart_write which fill
> uart tx queue and call uart_start. uart_start doesn't call driver
> start_tx because tty->hw_stopped flag is set.
> - because driver start_tx is never call, the data is never send on the uart.
>
>>From what I see, working driver managing TIOCM_CTS flag (amba-pl011,
> 8250), call uart_handle_cts_change when the uart driver detect a CTS
> signal change (via a interrupt).
>
> Because the samsung controller doesn't generate an interrupt when CTS
> signal change, we can't call uart_handle_cts_change.
>
> And easy fix could be to always report TIOCM_CTS.
>
Ping ?
The bug is still present on git tree and I have got no replies.
Matthieu
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: Matthieu CASTET <matthieu.castet@parrot.com>
To: unlisted-recipients:; (no To-header on input)
Cc: linux-serial@vger.kernel.org, Ben Dooks <ben-linux@fluff.org>,
linux-kernel@vger.kernel.org
Subject: Re: s3c24xx : TIOCM_CTS handling problem
Date: Tue, 16 Dec 2008 14:43:01 +0100 [thread overview]
Message-ID: <4947B065.5080405@parrot.com> (raw)
In-Reply-To: <48D242DC.30102@parrot.com>
Matthieu CASTET a écrit :
> Hi,
>
> there is a problem in samsung soc serial driver with the report of
> TIOCM_CTS in get_mctrl.
>
> The uart layer check the status of the TIOCM_CTS in the open or
> set_termios function and cache the result in the tty->hw_stopped flag.
>
> Then when sending data, in the function uart_start, it check
> tty->hw_stopped flag before calling the start_tx uart driver callback.
>
>
> For the samsung uart driver it means :
> - if the other side is not connected or in a reset state, then CTS
> signal is not activated
> - we open and configure the uart. get_mctrl don't report TIOCM_CTS flag.
> uart layer set tty->hw_stopped flag.
> - we connect or start the other side. CTS signal become activated.
> - we send some characters on the uart. This call uart_write which fill
> uart tx queue and call uart_start. uart_start doesn't call driver
> start_tx because tty->hw_stopped flag is set.
> - because driver start_tx is never call, the data is never send on the uart.
>
>>From what I see, working driver managing TIOCM_CTS flag (amba-pl011,
> 8250), call uart_handle_cts_change when the uart driver detect a CTS
> signal change (via a interrupt).
>
> Because the samsung controller doesn't generate an interrupt when CTS
> signal change, we can't call uart_handle_cts_change.
>
> And easy fix could be to always report TIOCM_CTS.
>
Ping ?
The bug is still present on git tree and I have got no replies.
Matthieu
next prev parent reply other threads:[~2008-12-16 14:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-18 12:00 s3c24xx : TIOCM_CTS handling problem Matthieu CASTET
2008-09-25 13:14 ` better Documentation for TIOCM_CTS handling Matthieu CASTET
2008-12-16 13:43 ` Matthieu CASTET [this message]
2008-12-16 13:43 ` s3c24xx : TIOCM_CTS handling problem Matthieu CASTET
2008-12-16 14:15 ` Alan Cox
2008-12-17 13:27 ` Matthieu CASTET
2008-12-17 13:27 ` Matthieu CASTET
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4947B065.5080405@parrot.com \
--to=matthieu.castet@parrot.com \
--cc=ben-linux@fluff.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.