* Re: [Linux-usb-users] hotpluging Sony DSC-f505v
@ 2001-02-27 21:43 Matthew Dharm
2001-02-27 23:23 ` David Brownell
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Matthew Dharm @ 2001-02-27 21:43 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 2571 bytes --]
This sounds to me like the hotplug script isn't testing the range the same
way usb-storage does. usb-storage does a low >= x >= high, and it sounds
like the scripts are doing strict > and <?
Matt
On Tue, Feb 27, 2001 at 04:36:19PM -0500, usb@house-o-fun.dhs.org wrote:
> DOH!
> So I decided to try just for giggles incrementing the device versionmax
> value and found that it happily installed the driver...
>
> Seems like a bug to me...
>
> On Tue, 27 Feb 2001 usb@house-o-fun.dhs.org wrote:
>
> > I have a sony DSC 505 still camera. It works just fine out of the box on
> > the usb-storage driver when insmoded by hand. My Sony usb floppy also
> > works quite well. The biggest problem I have had is with hotplug. When I
> > insert my floppy drive it pops to life. All goes well with the hot-plug.
> > When I inster my sony I get Feb 27 04:11:41 chico /etc/hotplug/usb.agent: ... no drivers for USB product 54c/10/210
> > So I figured I would add one by hand. Finding what the heck all the stuff
> > was for an entry was quite a chore. I still don't know exactly what the
> > values of match flags mean... ohter than they are a mask for which of the
> > other fields really matter. Then I poked around for another sony device
> > 54c... and found just what I was looking for sorry for the formatting
> >
> > usb-storage 0x000f 0x054c 0x0010 0x0106 0x0210
> > 0x00 0x00 0x00 0x00 0x00
> > 0x00
> >
> > but wait! That says it is for my camera! it says the max version is 210
> > and mine is 210! Not only that but from what I read the module itself
> > contains the info on what devices it supports... so why would the driver
> > work and the hotplug not? Something is fishy here... please help
> > Keith Baker
> >
> >
> > _______________________________________________
> > Linux-usb-users@lists.sourceforge.net
> > To unsubscribe, use the last form field at:
> > http://lists.sourceforge.net/lists/listinfo/linux-usb-users
> >
>
>
> _______________________________________________
> Linux-usb-users@lists.sourceforge.net
> To unsubscribe, use the last form field at:
> http://lists.sourceforge.net/lists/listinfo/linux-usb-users
--
Matthew Dharm Home: mdharm-usb@one-eyed-alien.net
Maintainer, Linux USB Mass Storage Driver
G: Money isn't everything, A.J.
AJ: Who convinced you of that?
G: The Chief, at my last salary review.
-- Mike and Greg
User Friendly, 11/3/1998
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Linux-usb-users] hotpluging Sony DSC-f505v
2001-02-27 21:43 [Linux-usb-users] hotpluging Sony DSC-f505v Matthew Dharm
@ 2001-02-27 23:23 ` David Brownell
2001-02-27 23:34 ` Matthew Dharm
2001-02-28 0:57 ` David Brownell
2 siblings, 0 replies; 4+ messages in thread
From: David Brownell @ 2001-02-27 23:23 UTC (permalink / raw)
To: linux-hotplug
> This sounds to me like the hotplug script isn't testing the range the same
> way usb-storage does. usb-storage does a low >= x >= high, and it sounds
> like the scripts are doing strict > and <?
Yes. Someone submitted a patch to do that a while back.
Where's the bug?
> > 54c... and found just what I was looking for sorry for the formatting
> >
> > usb-storage 0x000f 0x054c 0x0010 0x0106 0x0210
> > 0x00 0x00 0x00 0x00 0x00
> > 0x00
That formatting is one reason I think an XML representation would be a lot
nicer to work with ... :-)
In fact there are scripts to turn the "modules.usbmap" into XML, in case
anyone wants to work with tools to massage (present, query, analyse, ...)
such data.
- Dave
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Linux-usb-users] hotpluging Sony DSC-f505v
2001-02-27 21:43 [Linux-usb-users] hotpluging Sony DSC-f505v Matthew Dharm
2001-02-27 23:23 ` David Brownell
@ 2001-02-27 23:34 ` Matthew Dharm
2001-02-28 0:57 ` David Brownell
2 siblings, 0 replies; 4+ messages in thread
From: Matthew Dharm @ 2001-02-27 23:34 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 1027 bytes --]
On Tue, Feb 27, 2001 at 03:23:42PM -0800, David Brownell wrote:
> > This sounds to me like the hotplug script isn't testing the range the same
> > way usb-storage does. usb-storage does a low >= x >= high, and it sounds
> > like the scripts are doing strict > and <?
>
> Yes. Someone submitted a patch to do that a while back.
> Where's the bug?
Umm... if the usb-storag driver will accept versions between 0.00 and 2.40
(inclusive), the hotplug scripts should auto-load the usb-storage driver
when the attached device has version 2.40 -- according to the report, they
do not do so, even though the usb-storage driver is capable of supporting
such devices.
So, is this a hotplug script problem or a usb-storage problem? In other
words, which is the correct interpretatation of the version fields?
Matt
--
Matthew Dharm Home: mdharm-usb@one-eyed-alien.net
Maintainer, Linux USB Mass Storage Driver
It was a new hope.
-- Dust Puppy
User Friendly, 12/25/1998
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Linux-usb-users] hotpluging Sony DSC-f505v
2001-02-27 21:43 [Linux-usb-users] hotpluging Sony DSC-f505v Matthew Dharm
2001-02-27 23:23 ` David Brownell
2001-02-27 23:34 ` Matthew Dharm
@ 2001-02-28 0:57 ` David Brownell
2 siblings, 0 replies; 4+ messages in thread
From: David Brownell @ 2001-02-28 0:57 UTC (permalink / raw)
To: linux-hotplug
> So, is this a hotplug script problem or a usb-storage problem? In other
> words, which is the correct interpretatation of the version fields?
Since usbcore seems to agree with usb-storage on that question
(well enough that the kernel binding works), hotplug scripts.
Those code paths haven't previously been tested much; as you'll
recall, it's essentially "new in 2.4.1" (since it mostly affects handling
of usb-storage devices). I'll check in a partial fix soon... it really be
nice if someone were to provide BASH patches to handle the 2.4.0
style bitmask testing of match_flags, and really nail the version handling.
(Would that require bash2?)
- Dave
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-02-28 0:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-27 21:43 [Linux-usb-users] hotpluging Sony DSC-f505v Matthew Dharm
2001-02-27 23:23 ` David Brownell
2001-02-27 23:34 ` Matthew Dharm
2001-02-28 0:57 ` David Brownell
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).