lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 26 Apr 2010 15:34:22 -0400 (EDT)
From:	Alan Stern <stern@...land.harvard.edu>
To:	Michał Nazarewicz <m.nazarewicz@...sung.com>
cc:	Josua Dietze <digidietze@...isberghof.de>,
	Daniel Mack <daniel@...aq.de>,
	Marek Szyprowski <m.szyprowski@...sung.com>,
	Kernel development list <linux-kernel@...r.kernel.org>,
	USB list <linux-usb@...r.kernel.org>,
	Kyungmin Park <kyungmin.park@...sung.com>
Subject: Re: USB gadget with drivers "on board"

On Mon, 26 Apr 2010, Josua Dietze wrote:

> Michał Nazarewicz schrieb:
> 
> > On Mon, 26 Apr 2010 16:16:05 +0200, Daniel Mack <daniel@...aq.de> wrote:
> >> Are you sure they don't do exactly that by running two interfaces in
> >> the same configuration?
> > 
> > Yes, I'm sure.  I've investigated an USB GSM modem which, when plugged
> > for the first time reports as mass storage (single configuration, single
> > interface) and when drivers are installed as a full blown composite
> > gadget.  I still haven't figured out how it does that.
> 
> 
> These are the notorious mode switching devices. In Windows, they 
> obviously install a special storage driver doing one specific action 
> on each following plugging.
> This action - some storage or control command - will "flip" the 
> device, making it "disconnect" and returning as a completely different 
> composite device.
> 
> Storage commands used for this procedure range from "SCSI rezero" over 
> "passthrough" to "SCSI eject", or involve vendor specific stuff.

I was going to say the same thing.  For ease of use, I recommend using
a "SCSI eject" to trigger the mode change.  That way, Linux users who
don't have the usb-modeswitch program installed can get the same effect
by running eject.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ