From: Roger Quadros <roger.quadros@nokia.com>
To: ext Linus Walleij <linus.ml.walleij@gmail.com>
Cc: Steve Calfee <stevecalfee@gmail.com>,
"Balbi Felipe (Nokia-D/Helsinki)" <felipe.balbi@nokia.com>,
Linux USB Mailing List <linux-usb@vger.kernel.org>,
"Krogerus Heikki (EXT-Teleca/Helsinki)"
<ext-heikki.krogerus@nokia.com>,
"Kaliuta Yauheni (Nokia-D/Helsinki)" <Yauheni.Kaliuta@nokia.com>,
"Mandy Arnaud.2 (EXT-Teleca/Helsinki)"
<ext-arnaud.2.mandy@nokia.com>, Greg KH <greg@kroah.com>,
David Brownell <david-b@pacbell.net>,
linux-embedded <linux-embedded@vger.kernel.org>,
Tim Bird <tim.bird@am.sony.com>,
"libmtp-discuss@lists.sourceforge.net"
<libmtp-discuss@lists.sourceforge.net>
Subject: Re: [RFC/PATCH 0/2] u_char.c and mtp.c patches
Date: Tue, 20 Apr 2010 11:11:07 +0300 [thread overview]
Message-ID: <4BCD619B.2000907@nokia.com> (raw)
In-Reply-To: <u2s63386a3d1004191610va4b2aba3lc84c8b666f19a9e9@mail.gmail.com>
ext Linus Walleij wrote:
> 2010/4/19 Steve Calfee <stevecalfee@gmail.com>:
>
>> For 6 months, a while ago, I was working on virtual USB stuff for a
>> company. I did analyser traces of many devices including many MS
>> devices (mice, webcam, keyboard, joystick), and never found any device
>> from MS or anyone that supported that command. All devices that I saw
>> just replied (properly) with a STALL - and Winxp would just continue
>> on and handle the device.
>
> I don't think they add it to that kind of devices. Only MTP players
> for what I've seen. Maybe some weirdo RNDIS stuff use it too?
>
> But as you see Windows issues this command to absolutely everything
> you plug in, I've been thinking about how we could emulate the same
> behaviour in Linux but actually I think it's a bit insane and only take
> extra time to send that command to whatever you plug in.
>
> Still it would be nice to know directly from userspace if a device that
> was plugged in was MTP or not, especially we need this for udev
> rules (or HAL, DeviceKit etc, whatever) that want to make the device
> read/writable for the console user when it's plugged in.
>
>> When you say "older windowses", which one; the only earlier ones with
>> USB was 98 and descendants and somewhat 95.
>
> Especially the Win98 and Win2000 stuff that comes with the Windows
> Media Player has to respond to it.
>
> Actually Windows probably has some internal list of devices and
> specific quirks it has to use for them to work properly, but I'm not
> sure. (I asked them about it I think, but didn't get any replies.)
>
>> Also have you found a device that actually responds to the "get
>> osdescriptor" request?
>
> Almost all MTP devices out there does, check the logs here:
> http://libmtp.cvs.sourceforge.net/viewvc/libmtp/libmtp/logs/
>
> If the device responds with something sane for command 0xee
> the MTP stack will go on to issue special commands, you can find
> our code for this here:
> http://libmtp.cvs.sourceforge.net/viewvc/*checkout*/libmtp/libmtp/src/libusb-glue.c?revision=1.284
>
Do you know if these older Windows OSes request the OS descriptor when the
device uses a standard USB class code?
AFAIK the MTP device device should use PTP Class, Subclass and protocol codes
(i.e. 6:1:1). In this case Windows XP treats it as a PTP device (even if the
device implements OS descriptors).
I'm sure all MTP devices in the market that implement OS descriptors use Vendor
Specific class (i.e. 0xff:0:0) which is not the right thing to do after MTP has
been standardized by usb.if.
cheers,
-roger
next prev parent reply other threads:[~2010-04-20 8:11 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1268123742-22968-1-git-send-email-felipe.balbi@nokia.com>
[not found] ` <1268123742-22968-1-git-send-email-felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2010-04-18 15:24 ` [RFC/PATCH 0/2] u_char.c and mtp.c patches Linus Walleij
[not found] ` <x2m63386a3d1004180824u30bea481t3a11ed889c26b293-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-04-19 16:10 ` Linus Walleij
2010-04-19 16:26 ` Felipe Balbi
[not found] ` <20100419162611.GA15131-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2010-04-19 16:55 ` Michał Nazarewicz
2010-04-19 17:15 ` Greg KH
[not found] ` <20100419171534.GA30381-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2010-04-19 17:24 ` Felipe Balbi
2010-04-19 18:57 ` Michał Nazarewicz
2010-04-19 20:04 ` Felipe Balbi
[not found] ` <20100419200457.GB27643-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2010-04-21 10:12 ` Michał Nazarewicz
2010-04-19 19:23 ` Linus Walleij
2010-04-19 20:07 ` Felipe Balbi
[not found] ` <20100419200727.GC27643-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2010-04-19 22:44 ` Greg KH
2010-04-20 6:22 ` Felipe Balbi
2010-04-20 23:57 ` Greg KH
[not found] ` <p2ze3bf744d1004230602nd09a7570jb3cee76f87ba8c00@mail.gmail.com>
[not found] ` <p2ze3bf744d1004230602nd09a7570jb3cee76f87ba8c00-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-04-23 13:04 ` [Libmtp-discuss] " Felipe Balbi
[not found] ` <p2p63386a3d1004191223jb650984ft37372276e4870e87-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-04-19 21:03 ` Steve Calfee
2010-04-19 23:10 ` Linus Walleij
2010-04-20 8:11 ` Roger Quadros [this message]
[not found] ` <4BCD619B.2000907-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2010-04-20 23:44 ` Linus Walleij
[not found] ` <i2x63386a3d1004201644g685b8ddeo609c6eaa8c07ed1f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-04-21 7:07 ` Roger Quadros
[not found] ` <4BCEA444.20307-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2010-04-21 20:02 ` Linus Walleij
[not found] ` <l2s4a5ff6bc1004191403nfe758331h3b70cdfd40568338-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-04-20 5:21 ` Felipe Balbi
2010-04-20 7:54 ` Roger Quadros
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=4BCD619B.2000907@nokia.com \
--to=roger.quadros@nokia.com \
--cc=Yauheni.Kaliuta@nokia.com \
--cc=david-b@pacbell.net \
--cc=ext-arnaud.2.mandy@nokia.com \
--cc=ext-heikki.krogerus@nokia.com \
--cc=felipe.balbi@nokia.com \
--cc=greg@kroah.com \
--cc=libmtp-discuss@lists.sourceforge.net \
--cc=linus.ml.walleij@gmail.com \
--cc=linux-embedded@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stevecalfee@gmail.com \
--cc=tim.bird@am.sony.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.