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

Attachment: pgphYigwkoP90.pgp
Description: PGP signature

-------------------------------------------------------------------------
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/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to