linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: PRODUCT code has a float in it rather than an int
Date: Thu, 29 Mar 2001 17:13:51 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-98588625829032@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-98588577527574@msgid-missing>

It's a bug in 2.2.18 ... a 2.4 fix wasn't backported.

"bcdDevice" is binary coded decimal, fixed point.
It's presented as integer to simplify things.

One fix would be to have the hotplug scripts
see they've got that bug, and work around it.
(Until 2.2.* syncs that with 2.4!)

- Dave

----- Original Message ----- 
From: "Ben Woodard" <ben@valinux.com>
To: <linux-hotplug-devel@lists.sourceforge.net>
Cc: <ps-hp@valinux.com>; <jerdfelt@valinux.com>
Sent: Thursday, March 29, 2001 8:43 AM
Subject: PRODUCT code has a float in it rather than an int


> I'm running 2.2.18 with modultils 2.4.5 and it appears that the
> PRODUCT is coming back as a float rather than as an int. This is
> consistant with what I see in /proc/usb/devices:
> 
> ben@trill:/etc/hotplug$ grep ^P /proc/bus/usb/devices 
> P:  Vendor\000 ProdID\000 Rev= 0.00
> P:  Vendor\x03f0 ProdID\x1004 Rev= 1.00
> 
> This causes some problems in the usb.agent script becase usb_bcdDevice
> is declared -i?
> 
> This leads me to believe that that usb_bcdDevice should not be
> declared -i or it should be multiplied out so that it is an integer.
> 
> What do you guys think? I'm happy to try to code up the changes but
> I'd like to know which direction I should take it.
> 
> -ben
> 
> 
> 
> 
> 
> _______________________________________________
> 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


_______________________________________________
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

  reply	other threads:[~2001-03-29 17:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-29 16:43 PRODUCT code has a float in it rather than an int Ben Woodard
2001-03-29 17:13 ` David Brownell [this message]
2001-03-29 17:31 ` Ben Woodard
2001-03-29 19:37 ` David Brownell

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=marc-linux-hotplug-98588625829032@msgid-missing \
    --to=david-b@pacbell.net \
    --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).