Skip to contentSkip to conversation

Documentation: usb: serial: fixed how to provide vendor and product id

PATCH In review Marek Belisko 6 participants 17 messages Mar 25, 2015 – Apr 2, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: usb: serial: fixed how to provide vendor and product id

From: "H. Nikolaus Schaller" <[email protected]>

While trying to test the Pyra GSM/GPS/3G module I had reconfigured the USB interface by mistake and therefore needed to run a different USB driver than CSC-ACM. It turned out that I need the "usbserial" driver.

This file is an official description how to use it:
Documentation/usb/usb-serial.txt

But it is outdated. The parameters vendor= and product= are no longer available since ca. 3.12 which means that documentation is lagging behind quite some time.

Here was the solution:

https://bbs.archlinux.org/viewtopic.php?id=175499

insmod usbserial vendor=0x#### product=0x####

becomes (first #### is vendor, second is product)

modprobe usbserial
echo #### #### >/sys/bus/usb-serial/drivers/generic/new_id

This patch changes the documentation file as needed.

---
 Documentation/usb/usb-serial.txt | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
Documentation/usb/usb-serial.txt +7 -5
index 947fa62..9f184d8 100644
@@ -466,11 +466,13 @@ Generic Serial driver
   is required of your device is that it has at least one bulk in endpoint,
   or one bulk out endpoint. 
   
-  To enable the generic driver to recognize your device, build the driver
-  as a module and load it by the following invocation:
-	insmod usbserial vendor=0x#### product=0x####
-  where the #### is replaced with the hex representation of your device's
-  vendor id and product id.
+  To enable the generic driver to recognize your device, configure
+  USB_SERIAL_GENERIC=y and build the driver as a module. Then load it by the
+  following invocation:
+	modprobe usbserial
+	echo #### #### >/sys/bus/usb-serial/drivers/generic/new_id
+  where the the first #### is replaced with the hex representation of your
+  device's vendor id and the second #### by the product id.
 
   This driver has been successfully used to connect to the NetChip USB
   development board, providing a way to develop USB firmware without
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 19 lines · Marek Belisko

From: "H. Nikolaus Schaller" <[email protected]>

While trying to test the Pyra GSM/GPS/3G module I had reconfigured the USB interface by mistake and therefore needed to run a different USB driver than CSC-ACM. It turned out that I need the "usbserial" driver.

This file is an official description how to use it:
Documentation/usb/usb-serial.txt

But it is outdated. The parameters vendor= and product= are no longer available since ca. 3.12 which means that documentation is lagging behind quite some time.

Here was the solution:

https://bbs.archlinux.org/viewtopic.php?id=175499

insmod usbserial vendor=0x#### product=0x####

Quoted 8 lines

becomes (first #### is vendor, second is product)

modprobe usbserial
echo #### #### >/sys/bus/usb-serial/drivers/generic/new_id

This patch changes the documentation file as needed.

You are forwarding on a patch from someone else, why didn't you also sign-off on it? Do you not agree with it?

thanks,

greg k-h

#2 lore raw
Quoted 25 lines · Greg KH
Quoted 24 lines · Marek Belisko

From: "H. Nikolaus Schaller" <[email protected]>

While trying to test the Pyra GSM/GPS/3G module I had reconfigured the USB interface by mistake and therefore needed to run a different USB driver than CSC-ACM. It turned out that I need the "usbserial" driver.

This file is an official description how to use it:
Documentation/usb/usb-serial.txt

But it is outdated. The parameters vendor= and product= are no longer available since ca. 3.12 which means that documentation is lagging behind quite some time.

Here was the solution:

https://bbs.archlinux.org/viewtopic.php?id=175499

insmod usbserial vendor=0x#### product=0x####

becomes (first #### is vendor, second is product)

modprobe usbserial
echo #### #### >/sys/bus/usb-serial/drivers/generic/new_id

Quoted 6 lines
Quoted 3 lines

This patch changes the documentation file as needed.

You are forwarding on a patch from someone else, why didn't you also sign-off on it? Do you not agree with it?

I wasn't involved in patch development I just review it and forward.

Quoted 4 lines

thanks,

greg k-h

BR,

marek

Signature · 10 lines
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
#3 lore raw

Am 26.03.2015 um 11:41 schrieb Belisko Marek <[email protected]>:

Quoted 26 lines · Greg KH
Quoted 25 lines · Marek Belisko
Quoted 24 lines

From: "H. Nikolaus Schaller" <[email protected]>

While trying to test the Pyra GSM/GPS/3G module I had reconfigured the USB interface by mistake and therefore needed to run a different USB driver than CSC-ACM. It turned out that I need the "usbserial" driver.

This file is an official description how to use it:
Documentation/usb/usb-serial.txt

But it is outdated. The parameters vendor= and product= are no longer available since ca. 3.12 which means that documentation is lagging behind quite some time.

Here was the solution:

https://bbs.archlinux.org/viewtopic.php?id=175499

insmod usbserial vendor=0x#### product=0x####

becomes (first #### is vendor, second is product)

modprobe usbserial
echo #### #### >/sys/bus/usb-serial/drivers/generic/new_id

Quoted 7 lines
Quoted 6 lines
Quoted 3 lines

This patch changes the documentation file as needed.

You are forwarding on a patch from someone else, why didn't you also sign-off on it? Do you not agree with it?

I wasn’t involved in patch development I just review it and forward.

Yes,
I asked Marek to submit this patch (from our local repo).

BR,
Nikolaus

Quoted 20 lines
Quoted 4 lines

thanks,

greg k-h

BR,

marek

Signature · 10 lines
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
maintainer
#4 lore raw
In reply to Belisko Marek
Quoted 26 lines · Belisko Marek
Quoted 25 lines · Greg KH
Quoted 24 lines · Marek Belisko

From: "H. Nikolaus Schaller" <[email protected]>

While trying to test the Pyra GSM/GPS/3G module I had reconfigured the USB interface by mistake and therefore needed to run a different USB driver than CSC-ACM. It turned out that I need the "usbserial" driver.

This file is an official description how to use it:
Documentation/usb/usb-serial.txt

But it is outdated. The parameters vendor= and product= are no longer available since ca. 3.12 which means that documentation is lagging behind quite some time.

Here was the solution:

https://bbs.archlinux.org/viewtopic.php?id=175499

insmod usbserial vendor=0x#### product=0x####

becomes (first #### is vendor, second is product)

modprobe usbserial
echo #### #### >/sys/bus/usb-serial/drivers/generic/new_id

Quoted 7 lines
Quoted 6 lines
Quoted 3 lines

This patch changes the documentation file as needed.

You are forwarding on a patch from someone else, why didn't you also sign-off on it? Do you not agree with it?

I wasn't involved in patch development I just review it and forward.

If you reviewed and forwarded it, why did you not add a signed-off-by:
to it? Do you not think it is acceptable for merging? If not, then we shouldn't either :)

thanks,

greg k-h

#5 lore raw

PATCH 1/1 Documentation: usb: serial: fixed how to provide vendor and product id

In reply to Marek Belisko

From: "H. Nikolaus Schaller" <[email protected]>

While trying to test the Pyra GSM/GPS/3G module I had reconfigured the USB interface by mistake and therefore needed to run a different USB driver than CSC-ACM. It turned out that I need the "usbserial" driver.

This file is an official description how to use it:
Documentation/usb/usb-serial.txt

But it is outdated. The parameters vendor= and product= are no longer available since ca. 3.12 which means that documentation is lagging behind quite some time.

Here was the solution:

https://bbs.archlinux.org/viewtopic.php?id=175499

insmod usbserial vendor=0x#### product=0x####

becomes (first #### is vendor, second is product)

modprobe usbserial
echo #### #### >/sys/bus/usb-serial/drivers/generic/new_id

This patch changes the documentation file as needed.

---
 Documentation/usb/usb-serial.txt | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
Documentation/usb/usb-serial.txt +7 -5
index 947fa62..9f184d8 100644
@@ -466,11 +466,13 @@ Generic Serial driver
   is required of your device is that it has at least one bulk in endpoint,
   or one bulk out endpoint. 
   
-  To enable the generic driver to recognize your device, build the driver
-  as a module and load it by the following invocation:
-	insmod usbserial vendor=0x#### product=0x####
-  where the #### is replaced with the hex representation of your device's
-  vendor id and product id.
+  To enable the generic driver to recognize your device, configure
+  USB_SERIAL_GENERIC=y and build the driver as a module. Then load it by the
+  following invocation:
+	modprobe usbserial
+	echo #### #### >/sys/bus/usb-serial/drivers/generic/new_id
+  where the the first #### is replaced with the hex representation of your
+  device's vendor id and the second #### by the product id.
 
   This driver has been successfully used to connect to the NetChip USB
   development board, providing a way to develop USB firmware without
Signature · 1 line
1.9.1
#6 lore raw
Quoted 5 lines · Marek Belisko

From: "H. Nikolaus Schaller" <[email protected]>

While trying to test the Pyra GSM/GPS/3G module I had reconfigured the USB interface by mistake and therefore needed to run a different USB driver than CSC-ACM. It turned out that I need the "usbserial" driver.

CDC-ACM

Quoted 6 lines

This file is an official description how to use it:
Documentation/usb/usb-serial.txt

But it is outdated. The parameters vendor= and product= are no longer available since ca. 3.12 which means that documentation is lagging behind quite some time.

This is simply not true. The vendor and module parameters are still there for usbserial (i.e. the generic driver).

Would you mind updating this patch to document the sysfs-method as an alternative instead? Using sysfs is preferred as that functionality can be used with any usb-serial driver and the drivers can also be compiled in.

Quoted 24 lines

Here was the solution:

https://bbs.archlinux.org/viewtopic.php?id=175499

insmod usbserial vendor=0x#### product=0x####

becomes (first #### is vendor, second is product)

modprobe usbserial
echo #### #### >/sys/bus/usb-serial/drivers/generic/new_id

This patch changes the documentation file as needed.

---
 Documentation/usb/usb-serial.txt | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
Documentation/usb/usb-serial.txt +0 -0
index 947fa62..9f184d8 100644

Documentation/usb/usb-serial.txt Generic Serial driver · line 470

Quoted 10 lines
Documentation/usb/usb-serial.txt +2 -5
@@ -466,11 +466,13 @@ Generic Serial driver
   is required of your device is that it has at least one bulk in endpoint,
   or one bulk out endpoint. 
 
-  To enable the generic driver to recognize your device, build the driver
-  as a module and load it by the following invocation:
-	insmod usbserial vendor=0x#### product=0x####
-  where the #### is replaced with the hex representation of your device's
-  vendor id and product id.
+  To enable the generic driver to recognize your device, configure
+  USB_SERIAL_GENERIC=y and build the driver as a module. Then load it by the

You don't need to build the driver as a module when using the sysfs method.

Documentation/usb/usb-serial.txt Generic Serial driver · line 478

Quoted 8 lines
Documentation/usb/usb-serial.txt +5 -0
+  following invocation:
+	modprobe usbserial
+	echo #### #### >/sys/bus/usb-serial/drivers/generic/new_id
+  where the the first #### is replaced with the hex representation of your
+  device's vendor id and the second #### by the product id.
 
   This driver has been successfully used to connect to the NetChip USB
   development board, providing a way to develop USB firmware without

Thanks,
Johan

#7 lore raw

Hi Johan,

Am 30.03.2015 um 09:45 schrieb Johan Hovold <[email protected]>:

Quoted 8 lines · Marek Belisko
Quoted 5 lines

From: "H. Nikolaus Schaller" <[email protected]>

While trying to test the Pyra GSM/GPS/3G module I had reconfigured the USB interface by mistake and therefore needed to run a different USB driver than CSC-ACM. It turned out that I need the "usbserial" driver.

CDC-ACM

oh, thanks. There is always at least one more typo in any document…

Quoted 8 lines
Quoted 7 lines

This file is an official description how to use it:
Documentation/usb/usb-serial.txt

But it is outdated. The parameters vendor= and product= are no longer available since ca. 3.12 which means that documentation is lagging behind quite some time.

Quoted 7 lines

This is simply not true. The vendor and module parameters are still there for usbserial (i.e. the generic driver).

Would you mind updating this patch to document the sysfs-method as an alternative instead? Using sysfs is preferred as that functionality can be used with any usb-serial driver and the drivers can also be compiled in.

Hm. For me it did not work as described and therefore I searched for and found the solution cited below, which appears to confirm that it does not work any more. Only with these hints to use the /sys approach I could make it working immediately.

Therefore I assumed that the documentation is outdated.

But it might also be a hidden bug with the parameter passing. I had tested on 4.0-rc3.

I can try a little more but it might be waste of time to find out why the old does not work, if there is a preferred method now.

Quoted 28 lines
Quoted 28 lines

Here was the solution:

https://bbs.archlinux.org/viewtopic.php?id=175499

insmod usbserial vendor=0x#### product=0x####

becomes (first #### is vendor, second is product)

modprobe usbserial
echo #### #### >/sys/bus/usb-serial/drivers/generic/new_id

This patch changes the documentation file as needed.

---
Documentation/usb/usb-serial.txt | 12 +++++++-----

1 file changed, 7 insertions(+), 5 deletions(-)
Documentation/usb/usb-serial.txt +0 -0
index 947fa62..9f184d8 100644
@@ -466,11 +466,13 @@ Generic Serial driver
  is required of your device is that it has at least one bulk in endpoint,
  or one bulk out endpoint. 
 
Quoted 10 lines

Documentation/usb/usb-serial.txt Generic Serial driver · line 470

Quoted 7 lines
Documentation/usb/usb-serial.txt +2 -5
-  To enable the generic driver to recognize your device, build the driver
-  as a module and load it by the following invocation:
-	insmod usbserial vendor=0x#### product=0x####
-  where the #### is replaced with the hex representation of your device's
-  vendor id and product id.
+  To enable the generic driver to recognize your device, configure
+  USB_SERIAL_GENERIC=y and build the driver as a module. Then load it by the

You don't need to build the driver as a module when using the sysfs method.

Ok, that is right and my formulation is too narrow on that.

So we just s/ as a module//.

Quoted 7 lines
Quoted 7 lines
Documentation/usb/usb-serial.txt +5 -0
+  following invocation:
+	modprobe usbserial
+	echo #### #### >/sys/bus/usb-serial/drivers/generic/new_id
+  where the the first #### is replaced with the hex representation of your
+  device's vendor id and the second #### by the product id.
 
Quoted 5 lines

Documentation/usb/usb-serial.txt Generic Serial driver · line 478

Quoted 2 lines
Documentation/usb/usb-serial.txt +0 -0
  This driver has been successfully used to connect to the NetChip USB
  development board, providing a way to develop USB firmware without

Thanks,
Johan

Thanks as well,
Nikolaus

#8 lore raw

Am 30.03.2015 um 11:32 schrieb Dr. H. Nikolaus Schaller <[email protected]>:

Quoted 83 lines

Hi Johan,

Am 30.03.2015 um 09:45 schrieb Johan Hovold <[email protected]>:

Quoted 8 lines · Marek Belisko
Quoted 5 lines

From: "H. Nikolaus Schaller" <[email protected]>

While trying to test the Pyra GSM/GPS/3G module I had reconfigured the USB interface by mistake and therefore needed to run a different USB driver than CSC-ACM. It turned out that I need the "usbserial" driver.

CDC-ACM

oh, thanks. There is always at least one more typo in any document…

Quoted 8 lines
Quoted 7 lines

This file is an official description how to use it:
Documentation/usb/usb-serial.txt

But it is outdated. The parameters vendor= and product= are no longer available since ca. 3.12 which means that documentation is lagging behind quite some time.

Quoted 7 lines

This is simply not true. The vendor and module parameters are still there for usbserial (i.e. the generic driver).

Would you mind updating this patch to document the sysfs-method as an alternative instead? Using sysfs is preferred as that functionality can be used with any usb-serial driver and the drivers can also be compiled in.

Hm. For me it did not work as described and therefore I searched for and found the solution cited below, which appears to confirm that it does not work any more. Only with these hints to use the /sys approach I could make it working immediately.

Therefore I assumed that the documentation is outdated.

But it might also be a hidden bug with the parameter passing. I had tested on 4.0-rc3.

I can try a little more but it might be waste of time to find out why the old does not work, if there is a preferred method now.

Quoted 28 lines
Quoted 28 lines

Here was the solution:

https://bbs.archlinux.org/viewtopic.php?id=175499

insmod usbserial vendor=0x#### product=0x####

becomes (first #### is vendor, second is product)

modprobe usbserial
echo #### #### >/sys/bus/usb-serial/drivers/generic/new_id

This patch changes the documentation file as needed.

---
Documentation/usb/usb-serial.txt | 12 +++++++-----

1 file changed, 7 insertions(+), 5 deletions(-)
Documentation/usb/usb-serial.txt +0 -0
index 947fa62..9f184d8 100644
@@ -466,11 +466,13 @@ Generic Serial driver
 is required of your device is that it has at least one bulk in endpoint,
 or one bulk out endpoint. 
 
Quoted 10 lines

Documentation/usb/usb-serial.txt Generic Serial driver · line 470

Quoted 7 lines
Documentation/usb/usb-serial.txt +2 -5
-  To enable the generic driver to recognize your device, build the driver
-  as a module and load it by the following invocation:
-	insmod usbserial vendor=0x#### product=0x####
-  where the #### is replaced with the hex representation of your device's
-  vendor id and product id.
+  To enable the generic driver to recognize your device, configure
+  USB_SERIAL_GENERIC=y and build the driver as a module. Then load it by the

You don't need to build the driver as a module when using the sysfs method.

Quoted 1 line

Ok, that is right and my formulation is too narrow on that.

Well, I should add that not my formulation was too narrow but already the original.

Quoted 24 lines

So we just s/ as a module//.

Quoted 7 lines
Quoted 7 lines
Documentation/usb/usb-serial.txt +5 -0
+  following invocation:
+	modprobe usbserial
+	echo #### #### >/sys/bus/usb-serial/drivers/generic/new_id
+  where the the first #### is replaced with the hex representation of your
+  device's vendor id and the second #### by the product id.
 
Quoted 5 lines

Documentation/usb/usb-serial.txt Generic Serial driver · line 478

Quoted 2 lines
Documentation/usb/usb-serial.txt +0 -0
 This driver has been successfully used to connect to the NetChip USB
 development board, providing a way to develop USB firmware without

Thanks,
Johan

Thanks as well,
Nikolaus

_______________________________________________
Gta04-owner mailing list
[email protected]
http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner

#9 lore raw
Quoted 19 lines · Dr. H. Nikolaus Schaller
Quoted 19 lines
Quoted 18 lines
Quoted 5 lines
Documentation/usb/usb-serial.txt +0 -0
index 947fa62..9f184d8 100644

Documentation/usb/usb-serial.txt Generic Serial driver · line 470

Quoted 10 lines
Documentation/usb/usb-serial.txt +2 -5
@@ -466,11 +466,13 @@ Generic Serial driver
 is required of your device is that it has at least one bulk in endpoint,
 or one bulk out endpoint. 
 
-  To enable the generic driver to recognize your device, build the driver
-  as a module and load it by the following invocation:
-	insmod usbserial vendor=0x#### product=0x####
-  where the #### is replaced with the hex representation of your device's
-  vendor id and product id.
+  To enable the generic driver to recognize your device, configure
+  USB_SERIAL_GENERIC=y and build the driver as a module. Then load it by the

You don't need to build the driver as a module when using the sysfs method.

Quoted 4 lines
Quoted 1 line

Ok, that is right and my formulation is too narrow on that.

Well, I should add that not my formulation was too narrow but already the original.

Since you change the description so that the context becomes invalid, you are responsible for updating the context as well.

Quoted 4 lines
Quoted 4 lines

So we just s/ as a module//.

Quoted 1 line
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Documentation/usb/usb-serial.txt Generic Serial driver · line 478

Quoted 8 lines
Documentation/usb/usb-serial.txt +5 -0
+  following invocation:
+	modprobe usbserial
+	echo #### #### >/sys/bus/usb-serial/drivers/generic/new_id
+  where the the first #### is replaced with the hex representation of your
+  device's vendor id and the second #### by the product id.
 
 This driver has been successfully used to connect to the NetChip USB
 development board, providing a way to develop USB firmware without

Johan

#10 lore raw
In reply to Dr. H. Nikolaus Schaller
Quoted 36 lines · Dr. H. Nikolaus Schaller

Hi Johan,

Am 30.03.2015 um 09:45 schrieb Johan Hovold <[email protected]>:

Quoted 8 lines · Marek Belisko
Quoted 5 lines

From: "H. Nikolaus Schaller" <[email protected]>

While trying to test the Pyra GSM/GPS/3G module I had reconfigured the USB interface by mistake and therefore needed to run a different USB driver than CSC-ACM. It turned out that I need the "usbserial" driver.

CDC-ACM

oh, thanks. There is always at least one more typo in any document…

Quoted 8 lines
Quoted 7 lines

This file is an official description how to use it:
Documentation/usb/usb-serial.txt

But it is outdated. The parameters vendor= and product= are no longer available since ca. 3.12 which means that documentation is lagging behind quite some time.

Quoted 7 lines

This is simply not true. The vendor and module parameters are still there for usbserial (i.e. the generic driver).

Would you mind updating this patch to document the sysfs-method as an alternative instead? Using sysfs is preferred as that functionality can be used with any usb-serial driver and the drivers can also be compiled in.

Hm. For me it did not work as described and therefore I searched for and found the solution cited below, which appears to confirm that it does not work any more. Only with these hints to use the /sys approach I could make it working immediately.

Quoted 7 lines

Therefore I assumed that the documentation is outdated.

But it might also be a hidden bug with the parameter passing. I had tested on 4.0-rc3.

I can try a little more but it might be waste of time to find out why the old does not work, if there is a preferred method now.

Please do try to figure out if it doesn't work as we have not deprecated this functionality yet. It should still work.

Johan

#11 lore raw

Hi,

Am 30.03.2015 um 12:08 schrieb Johan Hovold <[email protected]>:

Quoted 39 lines · Dr. H. Nikolaus Schaller
Quoted 38 lines

Hi Johan,

Am 30.03.2015 um 09:45 schrieb Johan Hovold <[email protected]>:

Quoted 8 lines · Marek Belisko
Quoted 5 lines

From: "H. Nikolaus Schaller" <[email protected]>

While trying to test the Pyra GSM/GPS/3G module I had reconfigured the USB interface by mistake and therefore needed to run a different USB driver than CSC-ACM. It turned out that I need the "usbserial" driver.

CDC-ACM

oh, thanks. There is always at least one more typo in any document…

Quoted 8 lines
Quoted 7 lines

This file is an official description how to use it:
Documentation/usb/usb-serial.txt

But it is outdated. The parameters vendor= and product= are no longer available since ca. 3.12 which means that documentation is lagging behind quite some time.

Quoted 7 lines

This is simply not true. The vendor and module parameters are still there for usbserial (i.e. the generic driver).

Would you mind updating this patch to document the sysfs-method as an alternative instead? Using sysfs is preferred as that functionality can be used with any usb-serial driver and the drivers can also be compiled in.

Hm. For me it did not work as described and therefore I searched for and found the solution cited below, which appears to confirm that it does not work any more. Only with these hints to use the /sys approach I could make it working immediately.

Therefore I assumed that the documentation is outdated.

Quoted 8 lines
Quoted 5 lines

But it might also be a hidden bug with the parameter passing. I had tested on 4.0-rc3.

I can try a little more but it might be waste of time to find out why the old does not work, if there is a preferred method now.

Please do try to figure out if it doesn't work as we have not deprecated this functionality yet. It should still work.

Good news:

I have tried again (this time with 4.0-rc5) and was successful. I have no clue why it did not work with my tests with 4.0-rc3.

Here is the log:

Quoted 62 lines

gta04 login: root
Password:
Last login: Thu Apr 2 14:06:13 UTC 2015 on ttyO2
Linux gta04 4.0.0-rc5-gta04+ #1022 SMP Mon Mar 23 08:13:29 CET 2015 armv7l

The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.

root@gta04:~# lsusb
Bus 001 Device 002: ID 0424:3503 Standard Microsystems Corp. 
Bus 001 Device 003: ID 0424:9730 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@gta04:~# rfkill unblock wwan
[   40.443892] wwan_on_off_rfkill_set_block: blocked: 0
[   40.449109] modem: set_power 0
[   40.452318]   state 1
[   40.454687] modem: send impulse
[   41.174775] modem: done
root@gta04:~# [   42.874901] usb 1-2.2: new high-speed USB device number 4 using ehci-omap
[   43.008009] usb 1-2.2: New USB device found, idVendor=1e2d, idProduct=0053
[   43.015211] usb 1-2.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[   43.022859] usb 1-2.2: Product: PH8
[   43.026525] usb 1-2.2: Manufacturer: Cinterion
root@gta04:~# lsusb
Bus 001 Device 002: ID 0424:3503 Standard Microsystems Corp. 
Bus 001 Device 003: ID 0424:9730 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 1e2d:0053  
root@gta04:~# insmod /lib/modules/4.0.0-rc5-gta04+/kernel/drivers/usb/serial/usbserial.ko vendor=0x1e2d product=0x0053 
[  172.699426] usbcore: registered new interface driver usbserial
[  172.705714] usbcore: registered new interface driver usbserial_generic
[  172.715819] usbserial: USB Serial support registered for generic
[  172.722237] usbserial_generic 1-2.2:1.0: The "generic" usb-serial driver is only for testing and one-off prototypes.
[  172.733328] usbserial_generic 1-2.2:1.0: Tell [email protected] to add your device to a proper driver.
[  172.743848] usbserial_generic 1-2.2:1.0: generic converter detected
[  172.754681] usb 1-2.2: generic converter now attached to ttyUSB0
[  172.761543] usbserial_generic 1-2.2:1.1: The "generic" usb-serial driver is only for testing and one-off prototypes.
[  172.772640] usbserial_generic 1-2.2:1.1: Tell [email protected] to add your device to a proper driver.
[  172.783154] usbserial_generic 1-2.2:1.1: generic converter detected
[  172.790765] usb 1-2.2: generic converter now attached to ttyUSB1
[  172.797235] usbserial_generic 1-2.2:1.2: The "generic" usb-serial driver is only for testing and one-off prototypes.
[  172.808296] usbserial_generic 1-2.2:1.2: Tell [email protected] to add your device to a proper driver.
[  172.818797] usbserial_generic 1-2.2:1.2: generic converter detected
[  172.826135] usb 1-2.2: generic converter now attached to ttyUSB2
[  172.832582] usbserial_generic 1-2.2:1.3: The "generic" usb-serial driver is only for testing and one-off prototypes.
[  172.843642] usbserial_generic 1-2.2:1.3: Tell [email protected] to add your device to a proper driver.
[  172.854159] usbserial_generic 1-2.2:1.3: generic converter detected
[  172.861580] usb 1-2.2: generic converter now attached to ttyUSB3
[  172.868018] usbserial_generic 1-2.2:1.4: The "generic" usb-serial driver is only for testing and one-off prototypes.
[  172.879081] usbserial_generic 1-2.2:1.4: Tell [email protected] to add your device to a proper driver.
[  172.889582] usbserial_generic 1-2.2:1.4: generic converter detected
[  172.896804] usb 1-2.2: generic converter now attached to ttyUSB4
root@gta04:~# ./femtocom /dev/ttyUSB3

^SYSSTART
ati
ati

Quoted 6 lines

Cinterion
PHS8-E
REVISION 03.001

OK

So we will edit the patch to describe
* that the sysfs method is in addition, and preferred
* and works even if driver is compiled into the kernel (which I haven’t tested in my setup but assume it works as well)

Ok?

Thanks for comments,
Nikolaus

#12 lore raw
Quoted 25 lines · Dr. H. Nikolaus Schaller
Quoted 25 lines
Quoted 24 lines
Quoted 11 lines
Quoted 3 lines

But it is outdated. The parameters vendor= and product= are no longer available since ca. 3.12 which means that documentation is lagging behind quite some time.

This is simply not true. The vendor and module parameters are still there for usbserial (i.e. the generic driver).

Would you mind updating this patch to document the sysfs-method as an alternative instead? Using sysfs is preferred as that functionality can be used with any usb-serial driver and the drivers can also be compiled in.

Hm. For me it did not work as described and therefore I searched for and found the solution cited below, which appears to confirm that it does not work any more. Only with these hints to use the /sys approach I could make it working immediately.

Therefore I assumed that the documentation is outdated.

But it might also be a hidden bug with the parameter passing. I had tested on 4.0-rc3.

I can try a little more but it might be waste of time to find out why the old does not work, if there is a preferred method now.

Quoted 7 lines
Quoted 2 lines

Please do try to figure out if it doesn't work as we have not deprecated this functionality yet. It should still work.

Good news:

I have tried again (this time with 4.0-rc5) and was successful. I have no clue why it did not work with my tests with 4.0-rc3.

Great.

Quoted 6 lines

So we will edit the patch to describe
* that the sysfs method is in addition, and preferred
* and works even if driver is compiled into the kernel (which I haven’t tested in my setup but assume it works as well)

Ok?

That should do it (and, yes, it works when the module is compiled in).

Thanks,
Johan

#14 lore raw
Quoted 6 lines · Jonathan Corbet
Quoted 1 line · On Sat, 28 Mar 2015 14:37:57 +0100 Marek Belisko <[email protected]> wrote:

This patch changes the documentation file as needed.

Applied to the docs tree (with the changelog typo fixed).

This patch was incorrect and needed to be updated as discussed in the thread. Can you drop it or is your tree immutable?

Thanks,
Johan

#15 lore raw

Am 02.04.2015 um 12:35 schrieb Johan Hovold <[email protected]>:

Quoted 10 lines · Jonathan Corbet
Quoted 6 lines
Quoted 1 line · On Sat, 28 Mar 2015 14:37:57 +0100 Marek Belisko <[email protected]> wrote:

This patch changes the documentation file as needed.

Applied to the docs tree (with the changelog typo fixed).

This patch was incorrect and needed to be updated as discussed in the thread. Can you drop it or is your tree immutable?

Yes, please.
I did not find time to test Johan’s valuable comments.

BR,
Nikolaus

maintainer
#16 lore raw
In reply to Johan Hovold
Quoted 2 lines · On Thu, 2 Apr 2015 12:35:09 +0200 Johan Hovold <[email protected]> wrote:

This patch was incorrect and needed to be updated as discussed in the thread. Can you drop it or is your tree immutable?

Sigh...and I thought I was on top of that. Dropped, sorry for the confusion.

jon