Hi,
this implements a work around for some devices which have correct
extra descriptors, but misplace them.
Regards
Oliver
Signed-Off-By: Oliver Neukum <[EMAIL PROTECTED]>
You can import this changeset into BK by piping this whole message to:
'| bk receive [path to repository]' or apply the patch as usual.
===================================================================
[EMAIL PROTECTED], 2004-09-13 14:35:08+02:00, [EMAIL PROTECTED]
- work around for misplaced descriptors
cdc-acm.c | 11 +++++++++++
1 files changed, 11 insertions(+)
diff -Nru a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c
--- a/drivers/usb/class/cdc-acm.c Mon Sep 13 14:36:57 2004
+++ b/drivers/usb/class/cdc-acm.c Mon Sep 13 14:36:57 2004
@@ -547,6 +547,17 @@
return -EINVAL;
}
+ if (!buflen) {
+ if (intf->cur_altsetting->endpoint->extralen &&
intf->cur_altsetting->endpoint->extra) {
+ dev_dbg(&intf->dev,"Seeking extra descriptors on endpoint");
+ buflen = intf->cur_altsetting->endpoint->extralen;
+ buffer = intf->cur_altsetting->endpoint->extra;
+ } else {
+ err("Zero length descriptor references");
+ return -EINVAL;
+ }
+ }
+
while (buflen > 0) {
if (buffer [1] != USB_DT_CS_INTERFACE) {
err("skipping garbage");
===================================================================
This BitKeeper patch contains the following changesets:
1.1856
## Wrapped with gzip_uu ##
M'XL( &F414$ \U474_;,!1]KG_%'4@(Q)[EMAIL PROTECTED]&UH:$,P]K /H=2Y
M::,F=F4GP+3LO\]I^90FZ- >[EMAIL PROTECTED])Y[C[(.9Q;-L*?+X@(-68=WVM9N
MBTHK]*>ZPK)0S96OS<0=GFCM#H,N'.BR+'CPR2#:()45CXE+.$YK.07'9(<]
MYH>WD?K''(>]DX.W9T=[)X2,1K _3=4$3[&&T8C4VERD969WTWI::N77)E6V
MPCKUI:[:V]264\K=&[$DI%'<LIB*I)4L8RP5##/*13\6=VSSN1PDU-<V*SL!
M#XD$'3!.0S808<L2%H?D#3"?]:,8J CH(& A,#$,HR'M;U,^I!263=K]4W-@
MFX%'R6OXMU+VB00/+K6906ITHS+(M8&JL/,RE9A!AE::8NXNM>0]L"2**3F^
MZRWQ_O(AA*:4[#RA(C-='VS0V'$W>E_>4R,[EMAIL PROTECTED]<Q'F(2;C
[EMAIL PROTECTED];6!S*1WR]Y-*V2<"Q&UM)]PL3#1(Z"G;?5,%>1:A<)FUE1=[5\G
M!B??GU;0YS'G42Q$*\([EMAIL PROTECTED]/H)G+A?+N>?XL8D\
MPXR'D1@ 8Z17Y+#Y8MSD):HM^$EZBT"AZMS;D8TY3\O:8ET7:N+MH,KFVAVY
MKRO7#8> C0U8*7=)W<OPXCP;3S8WEB"W?;EVBCAS$%CDW>\#: 4W-&M;KSK\
MLDX8K7:I2[U!Y6A617607X"EQ67-:,SFVA<T&AS?I)[>*Q$,.F)[EMAIL PROTECTED];K
[EMAIL PROTECTED] 1M[[=_<'E%.7,-M5()IC*?IB1WZ$SYH4I!@
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel