Hi Josua, I agreed your pointer, and making a module parameter is better than default switching function. I'm feeling sorry not to study usb storage driver well. And I'll figure out how to make it working on H21. Anyway, thanks for your advice. Brad Lu -----Original Message----- From: Josua Dietze [mailto:digidietze@xxxxxxxxxxxxxxx] Sent: Wednesday, July 29, 2009 2:39 PM To: Brad Lu Cc: Linux USB Subject: Re: [PATCH] Switch Qisda H21mass storage to 3G modem Brad Lu schrieb: > 1. Yes, switching H21 in user space is working, and we also provide this > program to user. > However, some users want to have automatically switch function like > Hauwei products. > > 2. In my opinion, if H21 could be switched to 3G modem, users won't care > about the original storage, because in original storage, we just put > Win32/Mac/Linux installations, and then after switching, H21 would > provide another mass storage. I'm not comfortable with the approach of taking away the user choice completely and make it impossible to test userspace programs with the device. I'd rather like to have a module parameter like in "option_ms" or "sierra_ms" which makes it possible to skip the switching function. You can still make it the default to switch the device. From option_ms.c: MODULE_PARM_DESC(option_zero_cd, "ZeroCD mode (1=Force Modem (default)," " 2=Allow CD-Rom"); Josua Dietze *************************** The opinions and views expressed in this e-mail are solely those of the author and do not necessarily represent those of Qisda Corporation and its affiliates. Qisda Corporation is not responsible for any liability or damaged caused by viruses transmitted with this e-mail or its attachments. If this e-mail is not originally intended for you, or received by you in error, do not disclose its content to anyone and delete it immediately. This e-mail may contain information that is private, legally privileged, confidential or exempt from disclosure, and intended for the sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments thereto) by others is strictly prohibited. Thank you. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html