mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Marcel Holtmann <marcel@rvs.uni-bielefeld.de>
Cc: BlueZ Mailing List <bluez-devel@lists.sourceforge.net>,
	viro@ftp.uk.linux.org, linux-kernel@vger.kernel.org
Subject: Re: rfcomm-tty driver->put_char
Date: Mon, 19 May 2003 22:54:10 +0100	[thread overview]
Message-ID: <1053381250.21582.14.camel@imladris.demon.co.uk> (raw)
In-Reply-To: <1053379016.1475.66.camel@pegasus>

On Mon, 2003-05-19 at 22:16, Marcel Holtmann wrote:
> > Once possible solution is to implement our own put_char() routine which
> > _does_ always allow the character to be queued, rather than allowing
> > tty_default_put_char() to call rfcomm_tty_write() which will fail.
> 
> After some more tests, I plan to push this change.

Note that I recommend this for 2.4 _only_. For 2.5 the correct fix is to
fix the tty_driver API, so you can perhaps let this 'bug' remain there
for a while. I seem to be the only person using an rfcomm modem for
dialin anyway, and 2.5 doesn't even get as far as a login prompt on that
box, let alone support V.110 dialin over ISDN which is also required, so
I really won't miss it :)

The write_room() function is documented to return the number of
characters which can _currently_ be pushed to the tty driver. The n_tty
code has no business thinking that the value returned from write_room()
will be valid at _any_ point in the future, and the fact that put_char()
is not permitted to return any success/failure indication like write()
can is just bizarre.

-- 
dwmw2



       reply	other threads:[~2003-05-19 21:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1053199887.9218.50.camel@imladris.demon.co.uk>
     [not found] ` <1053379016.1475.66.camel@pegasus>
2003-05-19 21:54   ` David Woodhouse [this message]
2003-05-20  8:56     ` Russell King

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=1053381250.21582.14.camel@imladris.demon.co.uk \
    --to=dwmw2@infradead.org \
    --cc=bluez-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcel@rvs.uni-bielefeld.de \
    --cc=viro@ftp.uk.linux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®