[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <289287.8629.qm@web180303.mail.gq1.yahoo.com>
Date: Tue, 20 Jul 2010 08:01:37 -0700 (PDT)
From: David Brownell <david-b@...bell.net>
To: Alan Stern <stern@...land.harvard.edu>,
Michał Nazarewicz <m.nazarewicz@...sung.com>
Cc: Greg KH <greg@...ah.com>,
Kyungmin Park <kyungmin.park@...sung.com>,
Marek Szyprowski <m.szyprowski@...sung.com>,
Kernel development list <linux-kernel@...r.kernel.org>,
Dries Van Puymbroeck <Dries.VanPuymbroeck@...imo.com>
Subject: Re: [PATCHv3 1/3] USB: gadget: mass/file storage: set serial number
--- On Tue, 7/20/10, Michał Nazarewicz <m.nazarewicz@...sung.com> wrote:
> > Plus, you seem to be overlooking the basic need
> > (for userspace) to manage these IDs so they're
> > properly unique. Two gadgets should never end
> up
> > using the same serial number.
>
> I'm not overlooking that. I simply consider that a
> separate issue.
> Driver should provide some kind of default
It can't do that and guarantee uniqueness.
(Unless you consult the random number system,
which may not be available that early, and is
in any case not appropriate for this task.
Your concept is (still/again) broken.
(just like File
> Storage
> Gadget) and the fact that user space should
> override it is another
> matter in my opinion.
The value must come from userspace in the first
place, else it can't be correctly managed!!
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists