cvs commit: ports/devel/libusb Makefile ports/devel/libusb/files patch-bsd.c

Andreas Klemm andreas at FreeBSD.org
Tue Nov 25 11:35:45 PST 2003


andreas     2003/11/25 11:35:43 PST

  FreeBSD ports repository

  Modified files:
    devel/libusb         Makefile 
  Added files:
    devel/libusb/files   patch-bsd.c 
  Log:
  - fix for PR 58925
    solves problem of hanging usb sessions with cams using gphoto2 ptp2 driver
  - bumped port revision
  - tested by different people under -current and -stable, no ill side
    effects and really cures the problem.
  
  The author of bsd.c clearly states out in the sources, that he
  has ported codee from linux 1:1 and he "kind of hopes" that it is ok.
  But it wasn't.
  
  This patch fixes hang that happens after the 1st read because the USB
  driver tries to read more bytes than are available.
  
  0000  10 00 00 00 01 00 02 10-00 00 00 00 01 00 00 00  ................
  1.240828 gphoto2-port(2): Reading 512=0x200 bytes from port...
  gp_port_read: Operation timed out
  9.267455 PTP2/library.c(2): PTP: gp_port_* function returned 0xffffffde
  -34
  9.267819 context(0): PTP I/O error
  
  PR:             58925
  Submitted by:   Mariusz Woloszyn <emsi at ipartners.pl>
  Reviewed by:    John Reynolds <johnjen at reynoldsnet.org> and some tester
  Approved by:    portmgr@ (Joe Marcus Clarke <marcus at marcuscom.com>)
  
  Revision  Changes    Path
  1.8       +1 -0      ports/devel/libusb/Makefile
  1.5       +62 -0     ports/devel/libusb/files/patch-bsd.c (new)


More information about the cvs-all mailing list