Linux Hotplug development
 help / color / mirror / Atom feed
From: "Karl O. Pinc" <kop@meme.com>
To: linux-hotplug@vger.kernel.org
Subject: Persistent USB to rs232 serial converter device name patch
Date: Thu, 03 Jul 2008 07:21:45 +0000	[thread overview]
Message-ID: <1215069705l.1824l.1l@mofo> (raw)

Hi,

I've checked out the udev repo, hacked, and used git to
generate 5 patches, in mbox format.   How
should I submit them for review?  Email?  Attachments?

The patches generate udev rules, in extras/rule_generator/,
like the process that generates persistent nic names,
only for ttyUSB devices.  Device special file names
are keyed to USB vendor id, product id, serial number,
and port number.

This patch allows me to use a USB-to-serial converter
attached to multiple serial consoles without having to
worry that kernel usb enumeration changes or accidentally
unplugging and re-plugging USB devices will alter the
device special file names.  I imagine it would be helpful
for other applications; palm organizer-like devices come
to mind.  I think some of them show up as ttyUSB devices.

It's at the 'works for me' stage, tested with a
Digi Edgeport 4/16.  All other drivers are blacklisted
because I've no clue what drivers report serial numbers, etc.
(See code comments for further detail.)  It would be nice
if somebody who knows what the other drivers, uh, drive
were to delete drivers from the blacklist.

I've not tested the changes to the Makefile that
install the new files, nor the very last patch that
moves a shared function into the rule_generator.functions
library.

The rest of the code was tested with a 2.6.25.4 kernel
on a debian etch system by installing the files manually
and hacking to account for debian-ized file names.

I don't know what sort of "external tool" would be used
to specify device names, but I gave the code that
functionality to mimic the existing cd and net persistent
generator code.

Karl <kop@meme.com>
Free Software:  "You don't pay back, you pay forward."
                  -- Robert A. Heinlein

             reply	other threads:[~2008-07-03  7:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-03  7:21 Karl O. Pinc [this message]
2008-07-03 11:15 ` Persistent USB to rs232 serial converter device name patch Bryan Kadzban

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=1215069705l.1824l.1l@mofo \
    --to=kop@meme.com \
    --cc=linux-hotplug@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox