linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johan Hovold <johan@kernel.org>
To: "Dr. H. Nikolaus Schaller" <hns@goldelico.com>
Cc: Johan Hovold <johan@kernel.org>,
	Marek Belisko <marek@goldelico.com>,
	gregkh@linuxfoundation.org, corbet@lwn.net,
	linux-usb@vger.kernel.org, linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org, gta04-owner@goldelico.com
Subject: Re: [PATCH] Documentation: usb: serial: fixed how to provide vendor and product id
Date: Thu, 2 Apr 2015 16:34:24 +0200	[thread overview]
Message-ID: <20150402143424.GT16062@localhost> (raw)
In-Reply-To: <6C4F1B47-3881-4236-8811-EA4CB5764F22@goldelico.com>

On Thu, Apr 02, 2015 at 04:25:50PM +0200, Dr. H. Nikolaus Schaller wrote:

> >>>> 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.
> > 
> > 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.
 
> 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

  reply	other threads:[~2015-04-02 14:34 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-25 20:53 [PATCH] Documentation: usb: serial: fixed how to provide vendor and product id Marek Belisko
2015-03-26  9:53 ` Greg KH
2015-03-26 10:41   ` Belisko Marek
2015-03-26 11:34     ` Dr. H. Nikolaus Schaller
2015-03-26 11:42     ` Greg KH
2015-03-28 13:37 ` Marek Belisko
2015-03-30  7:45   ` Johan Hovold
2015-03-30  9:32     ` Dr. H. Nikolaus Schaller
2015-03-30  9:40       ` [Gta04-owner] " Dr. H. Nikolaus Schaller
2015-03-30 10:10         ` Johan Hovold
2015-03-30 10:08       ` Johan Hovold
2015-04-02 14:25         ` Dr. H. Nikolaus Schaller
2015-04-02 14:34           ` Johan Hovold [this message]
2015-04-02 10:12   ` Jonathan Corbet
2015-04-02 10:35     ` Johan Hovold
2015-04-02 10:39       ` Dr. H. Nikolaus Schaller
2015-04-02 12:14       ` Jonathan Corbet

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=20150402143424.GT16062@localhost \
    --to=johan@kernel.org \
    --cc=corbet@lwn.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=gta04-owner@goldelico.com \
    --cc=hns@goldelico.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=marek@goldelico.com \
    /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;
as well as URLs for NNTP newsgroup(s).