mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Thiago Ramos dos Santos" <dimtracker@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Configuring previously loaded module
Date: Sun, 26 Aug 2007 19:03:00 -0300	[thread overview]
Message-ID: <fb4a4650708261502v5b64ca6ev680599ad9eb58b3@mail.gmail.com> (raw)

Hi.

I have 2 devices which use the usbserial module: a CDMA modem and a
Palm PDA (to be more especific, the PDA uses the visor module, which
uses the usbserial).
When I plug the PDA to the computer, the visor module gets
automatically loaded by the kernel, and so is the usbserial module.
When the modem is pluged, the module is not loaded automaticaly, so I
created a hotplug entry for it.
For both devices I put rules in udev configuration files, so they are
autmaticaly mapped to the same /dev node in despite of the ttyUSB*
node they are mapped to.

The problem is that the modem requires the usbserial module to be
loaded with some parameters: product=xxxxx vendor=xxxxx. So, if I plug
the PDA first, the usbserial is loaded without those parameters, and
when the modem is pluged, the ttyUSB nodes are not created for it. So
I have to manually unload both the visor and usbserial modules, reload
the usbserial with the specific parameters (to get the ttyUSB nodes
for the modem) and reload the visor module (to recreate the ttyUSB
nodes for the PDA).

Is there anyway to configure the previously loaded usbserial module
with the modem parameters without having to unload it? If it is not
possible, is there any other solution?

Thanks
Thiago

             reply	other threads:[~2007-08-26 22:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-26 22:03 Thiago Ramos dos Santos [this message]
2007-08-26 22:15 ` Kay Sievers
2007-08-27 21:43   ` Thiago Ramos dos Santos

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=fb4a4650708261502v5b64ca6ev680599ad9eb58b3@mail.gmail.com \
    --to=dimtracker@gmail.com \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®