On 04/12/06, Iain MacDonnell <[EMAIL PROTECTED]> wrote:
> I suppose this may be a bug in libusb[2], but it does affect pcscd, and
> at least pcsc-lite-1.3.[12]/src/hotplug_linux.c line 40 "#define
> PCSCLITE_USB_PATH" points at /proc/bus/usb.
> Or does someone see a big fault with the test I did above, or my
> understanding of what is going to be deprecated?

Todd,

Do you have pcsc-lite built with libusb support? hotplug_linux.c is
entirely surrounded with:

#if defined(__linux__) && !defined(HAVE_LIBUSB)
...
#endif  /* __linux__ && !HAVE_LIBUSB */


So if you have libusb support enabled, that code shouldn't be used.

PCSC/src/hotplug_libusb.c now (in the subversion version only) has:

void HPEstablishUSBNotifications(void)
{
   /* libusb default is /dev/bus/usb but the devices are not yet visible there
    * when a hotplug is requested */
   setenv("USB_DEVFS_PATH", "/proc/bus/usb", 0);

   usb_init();
[...]

The default value of USB_DEVFS_PATH is /dev/bus/usb but that does not
work with udev hotplug feature. It looks like the USB devices appear
in "/proc/bus/usb" before they are also available in "/dev/bus/usb".

Read the thread [1] for more info.
Using "/proc/bus/usb" may not be a so good idea :-(

Bye,

[1] 
http://www.opensc-project.org/pipermail/opensc-devel/2006-October/009073.html

--
 Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to