Re: [PATCH] Active Huawei E220 devs
Matthew Dharm <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Organization | One Eyed Alien Networks |
| Message-ID | <[email protected]> |
On Tue, Jun 26, 2007 at 04:06:38PM +0800, linlei 60022748 wrote: > diff -urN -X linux-2.6.21.1-vanilla/Documentation/dontdiff linux-2.6.21.1-vanilla/drivers/usb/storage/initializers.h linux-2.6.21.1/drivers/usb/storage/initializers.h > --- linux-2.6.21.1-vanilla/drivers/usb/storage/initializers.h 2007-04-28 05:49:26.000000000 +0800 > +++ linux-2.6.21.1/drivers/usb/storage/initializers.h 2007-06-25 23:01:18.000000000 +0800 > @@ -47,3 +47,6 @@ > /* This function is required to activate all four slots on the UCR-61S2B > * flash reader */ > int usb_stor_ucr61s2b_init(struct us_data *us); > + > +/* This places the HUAWEI E220 devices in multi-port mode */ > +int usb_stor_switch_ports_init(struct us_data *us); Generally, these functions are named to refer to the devices they are used for (i.e. the ucr61s2b in the previous function). > diff -urN -X linux-2.6.21.1-vanilla/Documentation/dontdiff linux-2.6.21.1-vanilla/drivers/usb/storage/unusual_devs.h linux-2.6.21.1/drivers/usb/storage/unusual_devs.h > --- linux-2.6.21.1-vanilla/drivers/usb/storage/unusual_devs.h 2007-04-28 05:49:26.000000000 +0800 > +++ linux-2.6.21.1/drivers/usb/storage/unusual_devs.h 2007-06-25 23:01:18.000000000 +0800 > @@ -1371,14 +1371,15 @@ > US_SC_DEVICE, US_PR_DEVICE, NULL, > US_FL_IGNORE_RESIDUE ), > > -/* This prevents the kernel from detecting the virtual cd-drive with the > - * Windows drivers. <[email protected]> > +/* This tells the usb driver to place the HUAWEI E220 devices into multi-port mode > + * Reported by fangxiaozhi <[email protected]> > + * and by linlei <[email protected]> > */ > -UNUSUAL_DEV( 0x12d1, 0x1003, 0x0000, 0xffff, > +UNUSUAL_DEV( 0x12d1, 0x1003, 0x0000, 0x0000, Do you really want a device range from 0 to 0? Matt -- Matthew Dharm Home: [email protected] Maintainer, Linux USB Mass Storage Driver M: No, Windows doesn't have any nag screens. C: Then what are those blue and white screens I get every day? -- Mike and Cobb User Friendly, 1/4/1999 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGgTdTHL9iwnUZqnkRAv4lAJ9yf7P5ab+nK/e8FKcY5o2aOY1B8wCgrq5U V988BbStzKrGyw3epRn+j5E= =tsHq -----END PGP SIGNATURE-----