hi,
this patch (bk export -tpatch, bk send -wgzip_uu -r+ -) lets users
do a modprobe ipaq vendor=0xfoo product=0xbar. this will help people with
unsupported wince devices try out the driver without having to recompile the
module.
btw the driver panics on 2.5.49 even without this patch, but I'm not
going to debug modules right now. I'm going to sulk in the corner until
the whole modules/modutils crap gets sorted out. why the $#@! was /proc/ksyms
killed ?!
ganesh
# This is a BitKeeper generated patch for the following project:
# Project Name: greg k-h's linux 2.5 USB kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1052 -> 1.1053
# drivers/usb/serial/ipaq.c 1.34 -> 1.35
# Documentation/usb/usb-serial.txt 1.12 -> 1.13
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/11/27 [EMAIL PROTECTED] 1.1053
# added support for insmod options to specify vendor/product id. this
# will allow people to try out new wince/pocketpc2k devices without
# having to recompile the module.
# --------------------------------------------
#
diff -Nru a/Documentation/usb/usb-serial.txt b/Documentation/usb/usb-serial.txt
--- a/Documentation/usb/usb-serial.txt Thu Nov 28 00:31:01 2002
+++ b/Documentation/usb/usb-serial.txt Thu Nov 28 00:31:01 2002
@@ -94,10 +94,11 @@
Compaq iPAQ, HP Jornada and Casio EM500 driver
This driver can be used to connect to Compaq iPAQ, HP Jornada and Casio EM500
- PDAs running Windows CE 3.0 or PocketPC 2002 using a USB cable/cradle. It
- has been tested only on the Compaq H3135, but is rumoured to work on
- with the H3600 and later models as well as the Jornada 548 and 568.
- With minor modifications, it may work for other CE based handhelds too.
+ PDAs running Windows CE 3.0 or PocketPC 2002 using a USB cable/cradle.
+ It's very likely that every device supported by ActiveSync USB works with this
+ driver. The driver supports the Compaq iPAQ, Jornada 548/568 and the Casio
+ EM500 out of the box. For others, please use module parameters to specify
+ the product and vendor id. e.g. modprobe ipaq vendor=0x3f0 product=0x1125
The driver presents a serial interface (usually on /dev/ttyUSB0) over
which one may run ppp and establish a TCP/IP link to the iPAQ. Once this
@@ -105,36 +106,12 @@
significant advantage of using USB is speed - you can get 73 to 113
kbytes/sec for download/upload to the iPAQ.
- The driver works intermittently with the usb-uhci driver but quite
- reliably with the uhci driver. However, performance is much better
- with usb-uhci. It does not seem to work with ohci at all.
+ This driver is only one of a set of components required to utilize
+ the USB connection. Please visit http://synce.sourceforge.net which
+ contains the necessary packages and a simple step-by-step howto.
- You must setup hotplug to invoke pppd as soon as the iPAQ is connected.
- A ppp script like the one below should be kept in the file
- /etc/hotplug/usb/ipaq Remember to chmod +x. Make sure there are no
- options in /etc/ppp/options or ~/.ppprc which conflict with the ones
- given below.
-
- #!/bin/bash
-
- MYIP=linux.box.ip
- REMOTEIP=ipaq.ip
- MYDNS=my.dns.server
- killall -9 pppd
- /usr/sbin/pppd /dev/ttyUSB0 \
- connect "/usr/sbin/chat -v TIMEOUT 60 CLIENT 'CLIENTSERVER\c'" \
- nocrtscts local debug passive $MYIP:$REMOTEIP ms-dns $MYDNS noauth \
- proxyarp
-
- You must also download and install asyncd from http://synce.sourceforge.net
- This is required to emulate keep-alive packets which are exchanged by
- ActiveSync and the iPAQ.
-
- On connecting the cable, you should see the usual "Device Connected",
- "User Authenticated" messages flash by on your iPAQ. Once connected,
- you can use Win CE programs like ftpView, Pocket Outlook from the iPAQ
- and xcerdisp, synce utilities from the Linux side. Remember to enable IP
- forwarding.
+ Once connected, you can use Win CE programs like ftpView, Pocket Outlook
+ from the iPAQ and xcerdisp, synce utilities from the Linux side.
To use Pocket IE, follow the instructions given at
http://www.tekguru.co.uk/EM500/usbtonet.htm to achieve the same thing
diff -Nru a/drivers/usb/serial/ipaq.c b/drivers/usb/serial/ipaq.c
--- a/drivers/usb/serial/ipaq.c Thu Nov 28 00:31:01 2002
+++ b/drivers/usb/serial/ipaq.c Thu Nov 28 00:31:01 2002
@@ -9,6 +9,10 @@
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
+ * (26/11/2002) ganesh
+ * Added insmod options to specify product and vendor id.
+ * Use modprobe ipaq vendor=0xfoo product=0xbar
+ *
* (26/7/2002) ganesh
* Fixed up broken error handling in ipaq_open. Retry the "kickstart"
* packet much harder - this drastically reduces connection failures.
@@ -63,10 +67,13 @@
/*
* Version Information
*/
-#define DRIVER_VERSION "v0.3"
+
+#define DRIVER_VERSION "v0.4"
#define DRIVER_AUTHOR "Ganesh Varadarajan <[EMAIL PROTECTED]>"
#define DRIVER_DESC "USB Compaq iPAQ, HP Jornada, Casio EM500 driver"
+static int product, vendor;
+
/* Function prototypes for an ipaq */
static int ipaq_open (struct usb_serial_port *port, struct file *filp);
static void ipaq_close (struct usb_serial_port *port, struct file *filp);
@@ -85,6 +92,8 @@
static struct usb_device_id ipaq_id_table [] = {
+ /* The first entry is a placeholder for the insmod-specified device */
+ { USB_DEVICE(COMPAQ_VENDOR_ID, COMPAQ_IPAQ_ID) },
{ USB_DEVICE(COMPAQ_VENDOR_ID, COMPAQ_IPAQ_ID) },
{ USB_DEVICE(HP_VENDOR_ID, HP_JORNADA_548_ID) },
{ USB_DEVICE(HP_VENDOR_ID, HP_JORNADA_568_ID) },
@@ -523,8 +532,12 @@
{
spin_lock_init(&write_list_lock);
usb_serial_register(&ipaq_device);
- usb_register(&ipaq_driver);
info(DRIVER_DESC " " DRIVER_VERSION);
+ if (vendor) {
+ ipaq_id_table[0].idVendor = vendor;
+ ipaq_id_table[0].idProduct = product;
+ }
+ usb_register(&ipaq_driver);
return 0;
}
@@ -547,3 +560,8 @@
MODULE_PARM(debug, "i");
MODULE_PARM_DESC(debug, "Debug enabled or not");
+MODULE_PARM(vendor, "h");
+MODULE_PARM_DESC(vendor, "User specified USB idVendor");
+
+MODULE_PARM(product, "h");
+MODULE_PARM_DESC(product, "User specified USB idProduct");
This BitKeeper patch contains the following changesets:
+
## Wrapped with gzip_uu ##
begin 664 bkpatch1316
M'XL(`'T6Y3T``[57;7/:1A#^S/V*'6>FM1.03A("1(:.'7!;VCBF=NQ^:#J>
M0SK0%=`INI,Q#?GOW3N![21V[28NPXNDVUWM/KO/<^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%:H.*)U,<2QQJWLH505;<(VKMZ088QGWK1*;^U3B
M;$69.U/'N./RF(-1F,UJCUX%$[IUPS,S?62`/8<`FX%#&V#DMUCYME8\DAG"
M*#-N<F:@N$W>"#1>RQ"%@K\O18%P8GJE%G/Q-]^D9QLDLXS'9G`<&%7%70HE
M-*1:YUW7_9>YQ2CH;6:S@AKC<*48=C)G\8Q-<?>PDPQ*+,R6HS3/&^-5P_Q"
M*I=:.EB;YX/?PN("I#%&/,;;;9/B21U6LL0ARBSB.'AFZ!">*6*N[`C!1.?G
M@B_KFR&$XU+/I9QAJ$F!3#>)F>;;5*YB7B1"Y?6*CA4<6F"BU[:O159>8<8)
MCJL1RWNW!*.2_\<V19Y@FS)BV0HZ:S]`T;1J&83?HI8^JJ7_Q(\T]S_&W,T:
M%#^[Z7ZF??=B\16BAPQ#T8/GL.NW+%:(YMX&'W.Y=O!UF1O7LTHQ[J+\1,I;
ME!^S`AW(H-4"CPSQVR?OR+.$3W`+@,')\/SPY`(_I\/C-[!S29WF#EI%:*6,
M_L>8G:YMHM4W]WB)$88=PZ^:^]PJY404"F4W,X^`*"$,=8W%/)7S!#7%/&1:
MVM@Z&U5QPNQNE4`_=TGM@Q&/B\'A^;!_N-L_/D*&859O!L<G%\-!'397AO9K
ML`<?ZV00^K:B$"<P)#4Q@=TJNSWX0&HU`\F%2"ZTV3#^H'\Z(CFO$.Q=5W&G
MU6B#>6^+(=I])#6<APM\U!`H-L7N=]:O&I6]EYA#,\(<CHX'9Z\/+T8')T>;
M5.JPD^Z@P:T5K/&T?[-L_B;!#2)&0;>)&L=WGP2];L,]46_6[PR[J<RX7O]C
8BE,>SU2YZ,5!T@F:G0[Y!V^0JBB[#0``
`
end
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel