From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752898AbbC3KLA (ORCPT ); Mon, 30 Mar 2015 06:11:00 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:35441 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751496AbbC3KK5 (ORCPT ); Mon, 30 Mar 2015 06:10:57 -0400 Date: Mon, 30 Mar 2015 12:10:49 +0200 From: Johan Hovold To: "Dr. H. Nikolaus Schaller" Cc: List for communicating with real GTA04 owners , Johan Hovold , corbet@lwn.net, linux-doc@vger.kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Marek Belisko Subject: Re: [Gta04-owner] [PATCH] Documentation: usb: serial: fixed how to provide vendor and product id Message-ID: <20150330101049.GL4046@localhost> References: <1427316814-22276-1-git-send-email-marek@goldelico.com> <1427549877-7921-1-git-send-email-marek@goldelico.com> <20150330074508.GE4046@localhost> <38A4892E-80CD-4028-87DD-B4AAB4618EC5@goldelico.com> <7A8EEEED-BC4B-46C6-BB16-2310BF33E069@goldelico.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7A8EEEED-BC4B-46C6-BB16-2310BF33E069@goldelico.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 30, 2015 at 11:40:20AM +0200, Dr. H. Nikolaus Schaller wrote: > >>> diff --git a/Documentation/usb/usb-serial.txt b/Documentation/usb/usb-serial.txt > >>> index 947fa62..9f184d8 100644 > >>> --- a/Documentation/usb/usb-serial.txt > >>> +++ b/Documentation/usb/usb-serial.txt > >>> @@ -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. > > > > 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. > > > > So we just s/ as a module//. > > > >> > >>> + 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