mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Leon Leong <upleong@bandrich.com>
To: smurf@smurf.noris.de
Cc: linux-kernel@vger.kernel.org, linux-usb-devel@lists.sourceforge.net
Subject: [PATCH] USB: BandRich BandLuxe HSDPA Data Card Driver
Date: Fri, 13 Apr 2007 11:03:07 +0800	[thread overview]
Message-ID: <1176433387.4649.8.camel@upleong.brtpe.com> (raw)

This patch adds the detection for the BandRich BandLuxe C100/C100S/C120 
HSDPA Data Card.  With the vendor and product IDs are set properly, 
the data card can be detected and works fine.
It was patched based on Kernel 2.6.20.1.

Signed-off-by: Leon Leong <upleong@bandrich.com>

---

Index: drivers/usb/serial/option.c
===================================================================
--- linux-2.6.20.1/drivers/usb/serial/option.c.orig	2007-02-05
02:44:54.000000000 +0800
+++ linux-2.6.20.1/drivers/usb/serial/option.c	2007-04-13
10:36:33.000000000 +0800
@@ -72,6 +72,7 @@ static int  option_send_setup(struct usb
 #define AUDIOVOX_VENDOR_ID              0x0F3D
 #define NOVATELWIRELESS_VENDOR_ID       0x1410
 #define ANYDATA_VENDOR_ID               0x16d5
+#define BANDRICH_VENDOR_ID              0x1A8D
 
 #define OPTION_PRODUCT_OLD              0x5000
 #define OPTION_PRODUCT_FUSION           0x6000
@@ -84,6 +85,8 @@ static int  option_send_setup(struct usb
 #define AUDIOVOX_PRODUCT_AIRCARD        0x0112
 #define NOVATELWIRELESS_PRODUCT_U740    0x1400
 #define ANYDATA_PRODUCT_ID              0x6501
+#define BANDRICH_PRODUCT_C100_1         0x1002
+#define BANDRICH_PRODUCT_C100_2         0x1003
 
 static struct usb_device_id option_ids[] = {
 	{ USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_OLD) },
@@ -97,6 +100,8 @@ static struct usb_device_id option_ids[]
 	{ USB_DEVICE(AUDIOVOX_VENDOR_ID, AUDIOVOX_PRODUCT_AIRCARD) },

{ USB_DEVICE(NOVATELWIRELESS_VENDOR_ID,NOVATELWIRELESS_PRODUCT_U740) },
 	{ USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ID) },
+	{ USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_C100_1) },
+	{ USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_C100_2) },
 	{ } /* Terminating entry */
 };
 
@@ -112,6 +117,8 @@ static struct usb_device_id option_ids1[
 	{ USB_DEVICE(AUDIOVOX_VENDOR_ID, AUDIOVOX_PRODUCT_AIRCARD) },

{ USB_DEVICE(NOVATELWIRELESS_VENDOR_ID,NOVATELWIRELESS_PRODUCT_U740) },
 	{ USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ID) },
+	{ USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_C100_1) },
+	{ USB_DEVICE(BANDRICH_VENDOR_ID, BANDRICH_PRODUCT_C100_2) },
 	{ } /* Terminating entry */
 };

===================================================================

-
Leon Leong
upleong@bandrich.com



                 reply	other threads:[~2007-04-13  3:08 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=1176433387.4649.8.camel@upleong.brtpe.com \
    --to=upleong@bandrich.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome