Re: usbd does not use detach

From: Jan Stocker <Jan.Stocker_at_t-online.de>
Date: 10 Aug 2003 10:08:10 +0200
> - --- usbd.c.orig Thu Aug  7 18:46:47 2003
> +++ usbd.c      Thu Aug  7 18:52:33 2003
> _at__at_ -911,7 +911,7 _at__at_
>                         break;
>                 case USB_EVENT_DRIVER_ATTACH:
>                         if (verbose)
> - -                               printf("USB_EVENT_DRIVER_DETACH\n");
> +                               printf("USB_EVENT_DRIVER_ATTACH\n");
>                         break;
>                 case USB_EVENT_DRIVER_DETACH:
>                         if (verbose)


It's here not a second attach.... output looks like the same:


root_at_Twoflower:/usr/src/usr.sbin/usbd $ /usr/sbin/usbd -c /etc/usbd.conf
-vvv -d usbd: opened /dev/usb0


usbd: reading configuration file /etc/usbd.conf
usbd: action 1: ActiveWire board, firmware download
  vndr=0x0854 prdct=0x0100 rlse=0x0000
  attach='/usr/local/bin/ezdownload -f
/usr/local/share/usb/firmware/0854.0100.0_01.hex ${DEVNAME}'
usbd: action 2: Entrega Serial with UART
  vndr=0x1645 prdct=0x8001 rlse=0x0101
  attach='/usr/sbin/ezdownload -v -f
/usr/share/usb/firmware/1645.8001.0101 /dev/${DEVNAME}'
usbd: action 3: USB ethernet
  devname: [ackr]ue[0-9]+
  attach='/etc/pccard_ether ${DEVNAME} start'
  detach='/etc/pccard_ether ${DEVNAME} stop'
usbd: action 4: Handspring Visor
  vndr=0x082d prdct=0x0100 rlse=0x0100
  devname: ugen[0-9]+
  attach='/usr/local/bin/coldsync -md -p /dev/${DEVNAME} -t usb'
usbd: action 5: Mouse
  devname: ums[0-9]+
  attach='/usr/sbin/moused -p /dev/${DEVNAME} -I
/var/run/moused.${DEVNAME}.pid ; /usr/sbin/vidcontrol -m on'
usbd: action 6: Palm Handheld Device
  vndr=0x0830 prdct=0x0060
  devname: ucom0
  attach='/usr/sbin/ppp -auto palm'
  detach='/test.sh'
usbd: action 7: USB device
usbd: 7 actions
usbd: opened /dev/usb
usbd: processing event queue on /dev/usb
usbd: driver-attach event cookie=3217029324 devname=ucom0
USB_EVENT_DRIVER_ATTACH
usbd: processing event queue on /dev/usb
usbd: device-attach event at 1060502709.481417000, Palm Handheld, Palm,
Inc.:
  vndr=0x0830 prdct=0x0060 rlse=0x0100 clss=0x0000 subclss=0x0000
prtcl=0x0000
  device names: ucom0
usbd: ucom0 matches ucom0
usbd: Found action 'Palm Handheld Device' for Palm Handheld, Palm, Inc.
at ucom0
usbd: action 0: Palm Handheld Device
  vndr=0x0830 prdct=0x0060
  devname: ucom0
  attach='/usr/sbin/ppp -auto palm'
  detach='/test.sh'
usbd: Setting DEVNAME='ucom0'
usbd: Executing '/usr/sbin/ppp -auto palm'
Working in auto mode
Using interface: tun0
Warning: No default entry found in config file.
usbd: '/usr/sbin/ppp -auto palm' is ok
usbd: processing event queue on /dev/usb
usbd: driver-detach event cookie=3217029324 devname=ucom0
USB_EVENT_DRIVER_DETACH
usbd: doing timeout discovery on /dev/usb0
usbd: processing event queue due to timeout on /dev/usb
usbd: doing timeout discovery on /dev/usb0
usbd: processing event queue due to timeout on /dev/usb
usbd: doing timeout discovery on /dev/usb0
usbd: processing event queue due to timeout on /dev/usb
 




-- 
Jan Stocker <Jan.Stocker_at_t-online.de>
Received on Sat Aug 09 2003 - 23:09:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:18 UTC