* Question about bcdDevice_(lo|hi)
@ 2002-01-09 4:47 Marcus Harnisch
2002-01-11 20:55 ` David Brownell
2002-01-12 2:42 ` Marcus Harnisch
0 siblings, 2 replies; 3+ messages in thread
From: Marcus Harnisch @ 2002-01-09 4:47 UTC (permalink / raw)
To: linux-hotplug
Hi List,
I just started to use linux hotplug (2001_09_19). When I tried to find
the reason why no map-entry for my camcorder matches, I came across
something I really don't understand.
usb.agent matches the bcdDevice columns in a map file using the
following statements:
: bcdDevice range $bcdDevice_hi $bcdDevice_lo actual $usb_bcdDevice
if [ $USB_MATCH_DEV_LO -eq $(( $match_flags & $USB_MATCH_DEV_LO )) ] &&
[ $usb_bcdDevice -lt $bcdDevice_lo ]; then
continue
fi
# bcdDevice_lo <= bcdDevice < bcdDevice_hi
if [ $USB_MATCH_DEV_HI -eq $(( $match_flags & $USB_MATCH_DEV_HI )) ] &&
[ $usb_bcdDevice -ge $bcdDevice_hi ]; then
continue
fi
The according entries in the map-files for all devices are a 4-digit
hexnumber for bcdDevice_lo and a 2-digit hexnumber for
bcdDevice_hi. With *very* few exceptions if bcdDevice that is greater
or equal to bcdDevice_lo (first condition) it is also greater than
bcdDevice_hi. This causes no match to be found in the vast majority of
cases (Þvices).
In my particular case, bcdDevice is 0x0300. So for test purposes I set
up an entry in usb.usermap with bcdDevice_lo to 0x0300. Which 2-digit
hexnumber would match the second condition? When I set bcdDevice_hi to
any number (well, I didn't try all of 'em :) above 0x02ff, everything
worked fine.
I really can't believe that this is a bug that nobody has seen
before. Can somebody explain that to me?
Best regards,
Marcus
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-01-12 2:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-09 4:47 Question about bcdDevice_(lo|hi) Marcus Harnisch
2002-01-11 20:55 ` David Brownell
2002-01-12 2:42 ` Marcus Harnisch
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).