From owner-cvs-all@FreeBSD.ORG Tue Nov 25 11:35:44 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8A0816A4CE; Tue, 25 Nov 2003 11:35:44 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4410F43FA3; Tue, 25 Nov 2003 11:35:44 -0800 (PST) (envelope-from andreas@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hAPJZiXJ022911; Tue, 25 Nov 2003 11:35:44 -0800 (PST) (envelope-from andreas@repoman.freebsd.org) Received: (from andreas@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hAPJZhtP022910; Tue, 25 Nov 2003 11:35:44 -0800 (PST) (envelope-from andreas) Message-Id: <200311251935.hAPJZhtP022910@repoman.freebsd.org> From: Andreas Klemm Date: Tue, 25 Nov 2003 11:35:43 -0800 (PST) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: ports/devel/libusb Makefile ports/devel/libusb/files patch-bsd.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2003 19:35:45 -0000 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 Reviewed by: John Reynolds and some tester Approved by: portmgr@ (Joe Marcus Clarke ) Revision Changes Path 1.8 +1 -0 ports/devel/libusb/Makefile 1.5 +62 -0 ports/devel/libusb/files/patch-bsd.c (new)