public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ian Abbott <abbotti@mev.co.uk>
To: Ian Leonard <ian@smallworld.cx>
Cc: linux-kernel@vger.kernel.org, Pete Zaitcev <zaitcev@redhat.com>
Subject: Re: 2.4.30 - USB serial problem
Date: Tue, 07 Jun 2005 10:07:14 +0100	[thread overview]
Message-ID: <42A563C2.5020500@mev.co.uk> (raw)
In-Reply-To: <42A55AB6.2060001@smallworld.cx>

On 07/06/2005 09:28, Ian Leonard wrote:
> I finally got to the bottom of this problem (with Ian Abbotts help). I 
> had the wrong usb host module loaded, ubci not usb_uhci (in fact it was 
> compiled in to the kernel). The write call to the usbserial device was 
> blocking. This seemed to happen when a data packet of more than 8 bytes 
> was written.

It's actually a problem with queuing more than one bulk URB in the uhci 
driver.  (The TTY line discipline is probably splitting your single 
write into two or more writes, and the ftdi_sio driver queues an URB for 
each of these individual writes.)

> Having two drivers, one which works sometimes seems to be a bit of an 
> elephant trap.

The recommended advice (from David Brownell) seems to be to avoid 
queueing more than one bulk URB, though the "alternate" UHCI driver 
(uhci.o) seems to be the only one with this problem as far as I can tell.

I'll probably implement a different write implementation for the 
ftdi_sio driver to avoid the problem when I get a bit of free time.

> This was an error that occurred when I was preparing the new config 
> file. I would guess I left the usb as the default. It might me better to 
> have no defaults in the config, that way you are forced to make the 
> correct selection.
> 
> What is the recommended way of transferring .config files between kernel 
> versions? I see there are always a lot of changes. Can you safely just 
> copy the existing file and then run xconfig to include any new options?

Copy the previous .config across and run 'make oldconfig'.

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti@mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

  reply	other threads:[~2005-06-07  9:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1117130162.21749.linux-kernel2news@redhat.com>
2005-06-01  1:40 ` 2.4.30 - USB serial problem Pete Zaitcev
2005-06-02  8:41   ` Ian Leonard
2005-06-07  8:28     ` Ian Leonard
2005-06-07  9:07       ` Ian Abbott [this message]
2005-05-26 17:52 Ian Leonard
2005-05-27 14:45 ` Stuart MacDonald

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=42A563C2.5020500@mev.co.uk \
    --to=abbotti@mev.co.uk \
    --cc=ian@smallworld.cx \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zaitcev@redhat.com \
    /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