Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Nov 2003 11:35:43 -0800 (PST)
From:      Andreas Klemm <andreas@FreeBSD.org>
To:        ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: ports/devel/libusb Makefile ports/devel/libusb/files patch-bsd.c
Message-ID:  <200311251935.hAPJZhtP022910@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@ipartners.pl>
  Reviewed by:    John Reynolds <johnjen@reynoldsnet.org> and some tester
  Approved by:    portmgr@ (Joe Marcus Clarke <marcus@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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311251935.hAPJZhtP022910>