Re: usb_{bulk,interrupt}_transfer() and PCATCH

2010-12-13 Thread Jacob Meuser
any further thoughts on this? On Sun, Dec 12, 2010 at 01:02:41PM +, Jacob Meuser wrote: On Sat, Dec 11, 2010 at 08:56:38PM +, Jacob Meuser wrote: On Sat, Dec 11, 2010 at 08:35:00PM +, Jacob Meuser wrote: On Sat, Dec 11, 2010 at 08:14:24PM +0100, Mark Kettenis wrote: Date:

Re: usb_{bulk,interrupt}_transfer() and PCATCH

2010-12-12 Thread Jacob Meuser
On Sat, Dec 11, 2010 at 08:56:38PM +, Jacob Meuser wrote: On Sat, Dec 11, 2010 at 08:35:00PM +, Jacob Meuser wrote: On Sat, Dec 11, 2010 at 08:14:24PM +0100, Mark Kettenis wrote: Date: Wed, 8 Dec 2010 06:07:30 + From: Jacob Meuser jake...@sdf.lonestar.org I recently

Re: usb_{bulk,interrupt}_transfer() and PCATCH

2010-12-11 Thread Antoine Jacoutot
On Wed, 8 Dec 2010, Jacob Meuser wrote: snip great. but, what if we need to interrupt the transfer. we don't want to hang here. well, this function takes a timeout. so, it's possible to make it return, even if the transfer stalls. but is this used? I looked at the ports that use

Re: usb_{bulk,interrupt}_transfer() and PCATCH

2010-12-11 Thread Mark Kettenis
Date: Wed, 8 Dec 2010 06:07:30 + From: Jacob Meuser jake...@sdf.lonestar.org I recently got a hp officejet 4500. it's a 3-in-1 printer/scanner/fax. printing works great with the hplip packages. scanning doesn't work at all. I tracked the problem to read() failing in usb_bulk_read()

Re: usb_{bulk,interrupt}_transfer() and PCATCH

2010-12-11 Thread Jacob Meuser
On Sat, Dec 11, 2010 at 08:14:24PM +0100, Mark Kettenis wrote: Date: Wed, 8 Dec 2010 06:07:30 + From: Jacob Meuser jake...@sdf.lonestar.org I recently got a hp officejet 4500. it's a 3-in-1 printer/scanner/fax. printing works great with the hplip packages. scanning doesn't work at

Re: usb_{bulk,interrupt}_transfer() and PCATCH

2010-12-11 Thread Jacob Meuser
On Sat, Dec 11, 2010 at 08:35:00PM +, Jacob Meuser wrote: On Sat, Dec 11, 2010 at 08:14:24PM +0100, Mark Kettenis wrote: Date: Wed, 8 Dec 2010 06:07:30 + From: Jacob Meuser jake...@sdf.lonestar.org I recently got a hp officejet 4500. it's a 3-in-1 printer/scanner/fax.

Re: usb_{bulk,interrupt}_transfer() and PCATCH

2010-12-09 Thread Paul Irofti
This is really not my area of expertise but it seems like a safe hack and it reads okay to me.

usb_{bulk,interrupt}_transfer() and PCATCH

2010-12-07 Thread Jacob Meuser
I recently got a hp officejet 4500. it's a 3-in-1 printer/scanner/fax. printing works great with the hplip packages. scanning doesn't work at all. I tracked the problem to read() failing in usb_bulk_read() in libusb. errno was EINTR. so I made this function just continue when read() got EINTR.