From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Date: Thu, 01 Feb 2001 01:06:11 +0000 Subject: Re: hotplug-2001_01_23 and kernel 2.4.1 MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_01ED_01C08BA8.1C44A040" Message-Id: List-Id: References: In-Reply-To: To: linux-hotplug@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_01ED_01C08BA8.1C44A040 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Try this patch. If it works, it should go to Linus. It's not so much that things got switched, as that there are two mechanisms for specifying device/interface type and they don't strictly overlap (according to my brief investigation). Some printers use one mechanism (interface typing), others use another (device typing). - Dave ----- Original Message ----- From: Greg KH To: Gordon Lack Cc: ; Sent: Wednesday, January 31, 2001 2:41 PM Subject: Re: hotplug-2001_01_23 and kernel 2.4.1 > I think there was a patch to the printer driver to fix this, but I don't > remember, does anyone on linux-usb-devel or linux-hotplug see this same > thing (I don't have a USB printer handy at the moment.) > > greg k-h > > On Wed, Jan 31, 2001 at 10:07:22PM +0000, Gordon Lack wrote: > > I've just combined these 2. > > > > Bascially Ok, but one problem... > > > > I have an Epson Stylus 740 printer on USB. The kernel calls out to > > hotplug with a TYPE os 7/1/2 for this (and hence no INTERFACE value). > > > > So, the scripts set the 3 interface values to 1000 (out of range). > > > > This doesn't match any of the 3 printer entries in > > /lib/modules/2.4.1/modules.usbconf. *Those* entries have Interface > > settings of 7/1/1, 7/1/2 and 7/1/3, but no Device settings. > > > > So it looks to me as though something has swaped the meaning of the > > Interface and Device settings between whatever produces the > > modules.usbconf files (if this is modutils then I've just upgrade to > > 2.4.2) and what your hotplug scripts expect. > > > > If I swap the two pairs of 3 fields arround in the "while read ..." > > line of the usb.agent script then all is Ok. > > > > > > I hope this makes sense and is useful.... > > > > Thanks.... > > Gordon Lack > > -- > greg@(kroah|wirex).com > ------=_NextPart_000_01ED_01C08BA8.1C44A040 Content-Type: application/octet-stream; name="printer-pre3.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="printer-pre3.patch" --- 2.4.0-test12/drivers/usb/printer.c Tue Dec 12 10:20:37 2000=0A= +++ linux/drivers/usb/printer.c Tue Dec 19 15:10:57 2000=0A= @@ -613,6 +613,9 @@=0A= };=0A= =0A= static struct usb_device_id usblp_ids [] =3D {=0A= + { bDeviceClass: 7, bDeviceSubClass: 1, bDeviceProtocol: 1},=0A= + { bDeviceClass: 7, bDeviceSubClass: 1, bDeviceProtocol: 2},=0A= + { bDeviceClass: 7, bDeviceSubClass: 1, bDeviceProtocol: 3},=0A= { bInterfaceClass: 7, bInterfaceSubClass: 1, bInterfaceProtocol: 1},=0A= { bInterfaceClass: 7, bInterfaceSubClass: 1, bInterfaceProtocol: 2},=0A= { bInterfaceClass: 7, bInterfaceSubClass: 1, bInterfaceProtocol: 3},=0A= ------=_NextPart_000_01ED_01C08BA8.1C44A040-- _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel