All of lore.kernel.org
 help / color / mirror / Atom feed
* Kernel patch for usbserial driver, support hi speed for modem Haier CE100, kernel 2.6
@ 2009-12-23 12:03 Donny Kurnia
  0 siblings, 0 replies; only message in thread
From: Donny Kurnia @ 2009-12-23 12:03 UTC (permalink / raw)
  To: Matthias Urlichs; +Cc: linux-usb, linux-kernel

Hi,

I made this patch for usbserial driver to add the support for EVDO modem Haier CE100. The bugs report for this is here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/490068

This patch based on these post:
http://blankblondtank.wordpress.com/2009/09/04/mengoptimalkan-koneksi-modem-haier-ce-100-cdma-di-linux/
http://tantos.web.id/blogs/how-to-internet-connection-using-cdma-evdo-modem-and-karmic-koala-ubuntu-9-10

I made this patch based on git that I clone from:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
at the same date of my patch below.

Here is the patch:

--- drivers/usb/serial/option.c.orig    2009-12-23 03:12:29.000000000 -0800
+++ drivers/usb/serial/option.c 2009-12-23 03:12:35.000000000 -0800
@@ -340,6 +340,10 @@ static int  option_resume(struct usb_ser
 #define FOUR_G_SYSTEMS_VENDOR_ID               0x1c9e
 #define FOUR_G_SYSTEMS_PRODUCT_W14             0x9603
 
+/* HAIER PRODUCTS */
+#define HAIER_VENDOR_ID                        0x201e
+#define HAIER_PRODUCT_CE100                    0x2009
+
 static struct usb_device_id option_ids[] = {
        { USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_COLT) },
        { USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_RICOLA) },
@@ -641,6 +645,7 @@ static struct usb_device_id option_ids[]
        { USB_DEVICE(AIRPLUS_VENDOR_ID, AIRPLUS_PRODUCT_MCD650) },
        { USB_DEVICE(TLAYTECH_VENDOR_ID, TLAYTECH_PRODUCT_TEU800) },
        { USB_DEVICE(FOUR_G_SYSTEMS_VENDOR_ID, FOUR_G_SYSTEMS_PRODUCT_W14) },
+       { USB_DEVICE(HAIER_VENDOR_ID, HAIER_PRODUCT_CE100) },
        { } /* Terminating entry */
 };
 MODULE_DEVICE_TABLE(usb, option_ids);

End of patch.

I hope this patch can help other that have the Haier C100 modem, mostly in my country, Indonesia.

Signed-off-by: Donny Kurnia <donnykurnia@gmail.com>

Thanks.
--
Donny Kurnia
http://blog.abifathir.com
http://hantulab.blogspot.com
http://twitter.com/user/donnykurnia
http://plurk.com/user/donnykurnia



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-23 12:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-23 12:03 Kernel patch for usbserial driver, support hi speed for modem Haier CE100, kernel 2.6 Donny Kurnia

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.