20 lines
840 B
Plaintext
20 lines
840 B
Plaintext
|
$OpenBSD: patch-io_hpmud_musb_c,v 1.1 2009/07/13 08:14:28 ajacoutot Exp $
|
||
|
|
||
|
Fix probing HP PS 8250 printer, from FreeBSD.
|
||
|
|
||
|
--- io/hpmud/musb.c.orig Thu Jun 25 21:05:49 2009
|
||
|
+++ io/hpmud/musb.c Thu Jul 2 14:46:21 2009
|
||
|
@@ -124,8 +124,10 @@ static int get_string_descriptor(usb_dev_handle *dev,
|
||
|
0x409, tbuf, sizeof(tbuf), LIBUSB_CONTROL_REQ_TIMEOUT);
|
||
|
if (ret==0)
|
||
|
{
|
||
|
- /* This retry is necessary for lj1000 and lj1005. des 12/12/07 */
|
||
|
- BUG("get_string_descriptor zero result, retrying...");
|
||
|
+ /* This retry is necessary for lj1000 and lj1005. des 12/12/07
|
||
|
+ Also HP Photosmart 42xx seems to suffer transient errors with serial id */
|
||
|
+ BUG("get_string_descriptor error result %d, retrying in 2 secs...", ret);
|
||
|
+ sleep(2);
|
||
|
continue;
|
||
|
}
|
||
|
break;
|