From: Denis Vlasenko <vda@ilport.com.ua>
To: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org
Cc: rmk+serial@arm.linux.org.uk, alan@redhat.com
Subject: Re: Moxa multi serial driver doesn't pass received chars up
Date: Thu, 2 Jun 2005 15:54:07 +0300 [thread overview]
Message-ID: <200506021554.07316.vda@ilport.com.ua> (raw)
In-Reply-To: <200506021220.47138.vda@ilport.com.ua>
On Thursday 02 June 2005 12:20, Denis Vlasenko wrote:
> Hi,
>
> I have to set up 8-port PCI multiport serial card.
> Everything seems okay except for receive side.
>
> I added this to mxser.c: mxser_receive_chars()
> at the bottom:
>
> mxvar_log.rxcnt[info->port] += cnt;
> info->mon_data.rxcnt += cnt;
> info->mon_data.up_rxcnt += cnt;
> spin_unlock_irqrestore(&info->slock, flags);
>
> +if (verbose>1) {
> +int c = cnt;
> +unsigned char *p = tty->flip.char_buf;
> +printk("mxser_receive_chars:");
> +while(c--)
> + printk(" %02x", *p++);
> +printk("\n");
> +}
>
> tty_flip_buffer_push(tty);
> }
No wonder... it directly stuffs chars into flip buffer,
but does _not_ update flip counter!
I am cooking a patch which will use
tty_insert_flip_char(tty, ch, flag);
instead...
--
vda
next prev parent reply other threads:[~2005-06-02 12:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-02 9:20 Moxa multi serial driver doesn't pass received chars up Denis Vlasenko
2005-06-02 12:54 ` Denis Vlasenko [this message]
2005-06-02 22:58 ` Alan Cox
2005-06-03 13:01 ` [PATCH] moxa: do not ignore input Denis Vlasenko
2006-06-20 17:17 ` Sergei Organov
2006-06-21 11:51 ` Alan Cox
2006-06-21 11:41 ` Sergei Organov
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=200506021554.07316.vda@ilport.com.ua \
--to=vda@ilport.com.ua \
--cc=alan@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=rmk+serial@arm.linux.org.uk \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).