linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dan Williams <dcbw@redhat.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: Question about your reversion of the udev Huawei modem rule
Date: Thu, 07 Jan 2010 02:20:14 +0000	[thread overview]
Message-ID: <1262830814.3608.24.camel@localhost.localdomain> (raw)
In-Reply-To: <20100105213602.GC2822@piware.de>

On Tue, 2010-01-05 at 22:36 +0100, Martin Pitt wrote:
> Hey Dan,
> 
> in [1] you reverted a previous commit [2] to fix the Huawei E1550 GSM
> modem in udev (using modem-modeswitch) with the rationale that "other
> manufacturers have completely different methods for killing their fake
> driver CD". However, the rule was tested on that actual hardware, and
> it worked fine.

Lets use the *correct* method for ejecting a device instead of using one
manufacturer's method with another manufacturer's device.  'rezero' is
*NOT* the correct method for ejecting Huawei devices.  It doesn't really
matter whether it works or not.

usb_modeswitch has working methods for ejecting the E1550 (at least they
certainly work for me).  Rezero is Option NV specific and can/will cause
undesirable results on other manufacturer's equipment.  ZTE devices
specifically can be affected by this and do not react well, confusing
both the device and the kernel USB stack in the process.

I should think it would be clear that we shouldn't be using 'rezero'
with devices for which its not intended, but instead to use the method
that all other Huawei devices use (usb_stor_huawei_e220_init from
drivers/usb/storage/initializers.c).

The E1550 has a new USB ID that's not found in unusual_devs.h; just add
the ID there, or start using usb_modeswitch.

Dan

> I'm interested in why this rule was bad, and what should be done
> instead?
> 
> Thanks,
> 
> Martin
> 
> [1] http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;hŠ993fab2f218234f06743bcc127dda61a45711b
> [2] http://git.kernel.org/?p=linux/hotplug/udev.git;a=commit;hS842b53820a0f0b2b0ff5b28caf01e3f7e26f22


      reply	other threads:[~2010-01-07  2:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-05 21:36 Question about your reversion of the udev Huawei modem rule Martin Pitt
2010-01-07  2:20 ` Dan Williams [this message]

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=1262830814.3608.24.camel@localhost.localdomain \
    --to=dcbw@redhat.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;
as well as URLs for NNTP newsgroup(s).