- 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
9.267819 context(0): PTP I/O error
Submitted by: Mariusz Woloszyn <email@example.com>
Reviewed by: John Reynolds <firstname.lastname@example.org> and some tester
Approved by: portmgr@ (Joe Marcus Clarke <email@example.com>)