From: Frank Pagliughi <fpagliughi@mindspring.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: eCos Devel <ecos-devel@ecos.sourceware.org>
Subject: Re: "usbhid-ups" programing problem...
Date: Thu, 01 May 2008 17:22:00 -0000 [thread overview]
Message-ID: <4819FC43.5000905@mindspring.com> (raw)
In-Reply-To: <20080501155138.GA14773@lunn.ch>
>
>> For that matter, the usb subsystem could use a bit of an upgrade to make
>> drivers easier to write.
>>
>
> Others have said that as well. But it needs somebody to actually do
> it. A lot depends on the complexity of the driver. I recently wrote a
> simple driver and a Linux kernel counterpart without too much effort.
>
>
Yes, when the USBS framework was specified (ten years ago?) most USB
chips were ugly beasts, with predefined endpoints, lots of limitations,
and lots of bugs.
Most of the recent chips that I've seen appear to have a control
endpoint and some number of fairly generic endpoints. Combining the
usbs_rx_endpoint and usbs_tx_endpoint into a single thing
(usbs_endpoint), adding an endpoint number and direction, and things
like that would be helpful. I could make a list.
Many of the ideas could break the existing USBS drivers. Would this be OK?
But, if we wanted to get fancy, most of the events that a USBS driver
respond to are the same:
- Respond to a bus reset
- Set the address
- Read an RX endpoint
- Fill a TX endpoint.
...
A common code base for USB drivers might be really helpful. I could do
this work, but would it be accepted?
Frank
next prev parent reply other threads:[~2008-05-01 17:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-30 12:16 Michelle Konzack
2008-05-01 10:04 ` Andrew Lunn
2008-05-01 15:38 ` Frank Pagliughi
2008-05-09 12:36 ` Michelle Konzack
[not found] ` <4819DEFF.2040007@mindspring.com>
2008-05-01 15:52 ` Andrew Lunn
2008-05-01 15:57 ` Gary Thomas
2008-05-01 16:01 ` Andrew Lunn
2008-05-01 17:22 ` Frank Pagliughi [this message]
2008-05-01 18:24 ` Andrew Lunn
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=4819FC43.5000905@mindspring.com \
--to=fpagliughi@mindspring.com \
--cc=andrew@lunn.ch \
--cc=ecos-devel@ecos.sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).