[systemd-devel] [PATCH][usbutils] lsusb: port to hwdb

Kay Sievers kay at vrfy.org
Sun Jul 21 08:49:05 PDT 2013


On Sun, Jul 21, 2013 at 5:36 PM, Greg KH <gregkh at linuxfoundation.org> wrote:
> On Sun, Jul 21, 2013 at 01:05:31PM +0200, Kay Sievers wrote:
>> > However, hwdb only contains vendor, product, class, subclass and
>> > protocol. So if you drop usb.ids the rest of the information will be
>> > lost.
>> >
>> > Maybe split the rest out into a separate file and ship only that?
>> >
>> > Or is there a way to get this info into hwdb? Kay?
>>
>> It should work to add some of that data to the existing modalias,
>> right? For some things we probably need to "invent" new synthetic
>> modaliases to query these strings. We should give it a try, I think.
>> Having lsusb shipping a private file only for that seems ugly.
>
> These are things that are just described in the USB-IF specifications,
> (HID table commands, class codes, etc.) and really should not be part of
> any "hardware database" as they don't change, and come directly from the
> spec.
>
> I can just move those into the usbutils package, and get them removed
> from the usb.ids file, sound good?

Sounds great to me, yeah.

You are right, I think, the reason we *can* stuff it into the hwdb, is
probably not a good enough reason to do it. lsusb would very likely be
the only user ever.

Kay


More information about the systemd-devel mailing list