> # [PATCH] USB: changed the interface name to be a bit more unique.
> # 
> # This is needed as long as we have the directory of symlinks in the bus
> # subdir in driverfs to point to the unique interfaces.
> # --------------------------------------------
> #

Actually ...

> -             sprintf (&interface->dev.bus_id[0], "if%d",
> -                     interface->altsetting->bInterfaceNumber);
> +             sprintf (&interface->dev.bus_id[0], "%s:%d",
> +                      dev->devpath,
> +                      interface->altsetting->bInterfaceNumber);


... it'd be better if it included usb_bus->bus_name too, as done
in usb_make_path(), since two different busses can easily have
similar hub trees.  "%s-%s:%d" then, since this format string
can't use "/" like hid-core (effectively "%s-%s/input%d").

However, I still see this as a driverfs bug ... that directory
of symlinks being the problem (since it forces bus_id values to
be unique between busses).

- Dave





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to