[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-usb-devel
Subject:    Re: [linux-usb-devel] [PATCH] usb printer (disable accepting IEEE  1284.4 protocol)
From:       Lars Doelle <lars.doelle () on-line ! de>
Date:       2002-02-12 14:48:53
[Download RAW message or body]

Hmm, i have another suggestion:

I had a look at the descriptors, and found three interfaces, but each in a 
different alternate setting and same endpoints. This is really a hack. HP 
should have provided two interfaces with a printer and a scanner class with 
different endpoints in one alternate setting and that's it, instead starting 
to tunnel. usb.org should never have accepted 1282.4 if they'd take their own 
product serious.

Now since neither usb.org appears not to provide a scanner class, nor many 
vendors wouldn't care to use it also, we'll certainly all die in the end with 
vendor/product pairs instead of anything decent.

So my suggestion is to go this way and put a vendor/product list into 
printer.c indicating when a 7/1/3 should really be picked and call the device 
then /dev/usb/hpoj, so that you can pick it up with your user space driver, 
thus avoiding breaking /dev/lp semantics and adding new ioctls.

(printer.c should be fixed to prefere 7/1/2 over 7/1/1 if both exist, 
independent of the order in the descriptor, btw.)

Just my unqualified thoughts
  Lars

_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic