lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200612221227.18870.kernel@zut.de>
Date:	Fri, 22 Dec 2006 12:27:18 +0100
From:	Martin Williges <kernel@....de>
To:	gregkh@...e.de, linux-usb-devel@...ts.sourceforge.net
Cc:	linux-kernel@...r.kernel.org, dsd@...too.org
Subject: [PATCH 1/1] usblp.c - add Kyocera Mita FS 820 to list of "quirky" printers

from: Martin Williges <kernel@....de>

this patch gets the Kyocera FS 820 working with cups 1.2 via usb again. It
adds the printer to the list of "quirky" printers. Patch is based on
linux-2.6.19.

Signed-off-by: Martin Williges <kernel@....de>

---

Background:
I have little knowledge of usb, the following is based on my observations and
assumptions. With cups 1.2.6 going stable in gentoo, the usb backend does not
find the printer and thus users are not able to add the printer if it´s
connected via usb. In cups 1.1.x, the backend just reported a default bunch
of devices a printer might be connected to.
As far as I could see, cups detects the printer (/dev/usb/lp0) and sends an
ioctl which times out. I traced the timeout:
usblp.c calls usb_control_msg() (in message.c)
->usb_internal_control_msg()
->usb_start_wait_urb()
this function times out, the printer does not answer (0/1023 chars read).

Funny thing is, reading the identification works directly after plugging the
printer in, but not some seconds after. The patch lets the cups usb backend
find the printer again. So maybe the patch is a little crude. If someone has
a better idea, I may be able provide straces, syslog with DEBUG on,...

--- usblp.c.orig        2006-11-29 22:57:37.000000000 +0100
+++ usblp.c     2006-12-22 12:08:00.000000000 +0100
@@ -217,6 +217,7 @@ static const struct quirk_printer_struct
        { 0x0409, 0xbef4, USBLP_QUIRK_BIDIR }, /* NEC Picty760 (HP OEM) */
        { 0x0409, 0xf0be, USBLP_QUIRK_BIDIR }, /* NEC Picty920 (HP OEM) */
        { 0x0409, 0xf1be, USBLP_QUIRK_BIDIR }, /* NEC Picty800 (HP OEM) */
+       { 0x0482, 0x0010, USBLP_QUIRK_BIDIR }, /* Kyocera Mita FS 820, by zut <kernel@....de> */
        { 0, 0 }
 };
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ