mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: "Greg KH" <greg@kroah.com>,
	"Michał Nazarewicz" <m.nazarewicz@samsung.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>,
	Alan Stern <stern@rowland.harvard.edu>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	linux-kernel@vger.kernel.org,
	Dries Van Puymbroeck <Dries.VanPuymbroeck@dekimo.com>,
	stable <stable@kernel.org>
Subject: Re: [PATCHv3 1/3] USB: gadget: mass/file storage: set serial number
Date: Mon, 19 Jul 2010 07:44:55 -0700 (PDT)	[thread overview]
Message-ID: <583384.61837.qm@web180312.mail.gq1.yahoo.com> (raw)
In-Reply-To: <op.vf3amtx27p4s8u@pikus>

> In that case, should all the composite gadgets stop
> setting
> the iManufacturer, iProduct 

Certainly not.  Those are interface constants
that don't relate to device instances.  Every
instance of those gadgets should appear the same
(except for instance-specific state like serial#).


and iSerialNumber?

... that's an instance-specific thing which should
be managed properly.  The kernel can't do that, but
userspace can (ensuring the USB host always sees
unique serial IDs for devices).


>  My understanding
> is that the composite module parameters are only meant as a way
> to override what the module uses as default. 

They're meant as a way to specify values that may
not otherwise have been specified, or which need
to be overridden.  Standard module param behavior.


> 
> >> As a matter of fact, without this patch, the
> >> iSerialNumber module parameter won't work
> 
> > So submit a bugfix for that alone, making it
> > work everywhere...
> 
> iSerialNumber not working is not the main issue.  The
> main issue
> is that the serial number is not set by default
> which makes Windows sad (Windows uses serial
> number to distinguish different
> devices with the same vendor and product ID).  The
> serial number
> has to be set by default without the need for user to give

Bullcrap.

Do you understand the basic concept of "managed
identifiers"??  Like serial numbers. They need
 to be explicitly managed to be unique.

So for example two Linux-USB peripherals must never
re-use the same ID.  The way to do that is just not
commit the user error of forgetting to assign one
(or assigning a duplicate).

>            
> As you see, the iSerialNumber module parameter
> is ignored unless the
> gadget driver sets the iSerialNumber field of
> the device descriptor.
> 
So make that gadget code do that ... as I said,
fix such bugs, don't add more breakage.


  parent reply	other threads:[~2010-07-19 14:44 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-01  9:17 [PATCH 1/2] " Michal Nazarewicz
2010-07-01  9:17 ` [PATCH 2/2] " Michal Nazarewicz
2010-07-01 10:27 ` [PATCH 1/2] " Michał Nazarewicz
2010-07-01 13:42 ` [PATCHv2 " Michal Nazarewicz
2010-07-01 13:42   ` [PATCHv2 2/2] USB: gadget: g_multi: code clean up and refactoring Michal Nazarewicz
2010-07-08 18:34   ` [PATCHv2 1/2] USB: gadget: mass/file storage: set serial number Greg KH
2010-07-08 18:58     ` Michał Nazarewicz
2010-07-08 19:03       ` Greg KH
2010-07-08 19:31       ` David Brownell
2010-07-08 20:02         ` Michał Nazarewicz
2010-07-08 20:20           ` David Brownell
2010-07-08 20:27             ` Michał Nazarewicz
2010-07-08 20:52     ` [PATCHv3 1/3] " Michal Nazarewicz
2010-07-08 20:52       ` [PATCHv3 2/3] USB: Add a serial number parameter to g_file_storage module Michal Nazarewicz
2010-07-08 20:52         ` [PATCHv3 3/3] USB: gadget: g_multi: code clean up and refactoring Michal Nazarewicz
2010-07-09 19:04       ` [PATCHv3 1/3] USB: gadget: mass/file storage: set serial number Greg KH
2010-07-17 23:01         ` Michał Nazarewicz
2010-07-17 23:57           ` David Brownell
2010-07-19  8:58             ` Michał Nazarewicz
2010-07-19 10:08               ` David Brownell
2010-07-19 12:07                 ` Michał Nazarewicz
2010-07-19 14:19                   ` Alan Stern
2010-07-19 15:02                     ` Michał Nazarewicz
2010-07-19 16:14                       ` Alan Stern
2010-07-19 16:26                         ` Michał Nazarewicz
2010-07-19 17:06                           ` Alan Stern
2010-07-19 17:21                             ` Michał Nazarewicz
2010-07-19 17:41                               ` David Brownell
2010-07-20  8:41                                 ` Michał Nazarewicz
2010-07-20 14:07                                   ` Alan Stern
2010-07-20 14:43                                     ` Michał Nazarewicz
2010-07-20 15:01                                   ` David Brownell
2010-07-20 15:45                                     ` Michał Nazarewicz
2010-07-19 18:37                               ` Alan Stern
2010-07-20  9:57                             ` Michał Nazarewicz
2010-07-20 14:08                               ` Alan Stern
2010-07-20 14:40                                 ` Michał Nazarewicz
2010-07-20 14:52                                   ` David Brownell
2010-07-20 15:02                                   ` Alan Stern
2010-07-19 14:44                   ` David Brownell [this message]
2010-07-19 15:01                     ` Michał Nazarewicz
2010-07-22 12:16       ` [PATCHv4 1/5] USB: gadget: composite: Better string override handling Michal Nazarewicz
2010-07-22 12:16         ` [PATCHv4 2/5] USB: gadget: Use new composite features in some gadgets Michal Nazarewicz
2010-07-22 12:16           ` [PATCHv4 3/5] USB: gadget: g_multi: code clean up and refactoring Michal Nazarewicz
2010-07-22 12:16             ` [PATCHv4 4/5] USB: gadget: g_fs: code cleanup Michal Nazarewicz
2010-07-22 12:16               ` [PATCHv4 5/5] USB: gadget: file_storage: serial parameter even if not test mode Michal Nazarewicz
2010-07-22 14:14                 ` Alan Stern
2010-07-22 23:46         ` [PATCHv4 1/5] USB: gadget: composite: Better string override handling Greg KH
2010-07-23  9:04           ` Michał Nazarewicz
2010-07-27  6:53           ` David Brownell
2010-07-26 21:28         ` Greg KH

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=583384.61837.qm@web180312.mail.gq1.yahoo.com \
    --to=david-b@pacbell.net \
    --cc=Dries.VanPuymbroeck@dekimo.com \
    --cc=dbrownell@users.sourceforge.net \
    --cc=greg@kroah.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m.nazarewicz@samsung.com \
    --cc=m.szyprowski@samsung.com \
    --cc=stable@kernel.org \
    --cc=stern@rowland.harvard.edu \
    /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

all inboxes | Powered by JetHome®