All of lore.kernel.org
 help / color / mirror / Atom feed
From: Donny Kurnia <donnykurnia@gmail.com>
To: Matthias Urlichs <smurf@smurf.noris.de>
Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Kernel patch for usbserial driver, support hi speed for modem Haier CE100, kernel 2.6
Date: Wed, 23 Dec 2009 19:03:12 +0700	[thread overview]
Message-ID: <4B320700.8060905@gmail.com> (raw)

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



                 reply	other threads:[~2009-12-23 12:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B320700.8060905@gmail.com \
    --to=donnykurnia@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=smurf@smurf.noris.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.