lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 12 Mar 2011 11:00:08 -0500 (EST)
From:	Alan Stern <stern@...land.harvard.edu>
To:	Greg KH <greg@...ah.com>
cc:	andy.green@...aro.org,
	Mark Brown <broonie@...nsource.wolfsonmicro.com>,
	Arnd Bergmann <arnd@...db.de>,
	Linux USB list <linux-usb@...r.kernel.org>,
	lkml <linux-kernel@...r.kernel.org>
Subject: Re: RFC: Platform data for onboard USB assets

On Fri, 11 Mar 2011, Greg KH wrote:

> > Alright: is there a better invariant nomenclature to talk about "the
> > gadget / host that is running on a particular pair of pins"?  That's
> > the ultimate definition of what's wired to what.
> 
> For USB, there is no such thing, sorry.  You can see the "device
> connected to the 3rd port of the second hub" but that's a mess and those
> numbers can (and do) change randomly at boot time.

The situation isn't quite that bad.

For gadgets this issue doesn't really arise.  Until very recently it 
wasn't possible to have more that one gadget driver loaded at any time 
(in fact, it still may not be possible -- I don't recall whether the 
changes have been merged yet).  In any case, gadget drivers are usually 
build as modules, so any necessary information could be passed as a 
module parameter.

For USB devices, the topology path below the root hub _is_ fixed.  If
you know that a particular device is hardwired to port 2 of a
particular root hub, that's not going to change.  The problem is how to
identify the root hub.

This depends on the platform.  On PCs, USB host controllers are usually 
PCI devices.  The only way to identify them is by the PCI device name.  
Although these names don't change often, they _can_ change.  On an 
embedded system there usually are only a couple of host controllers and 
they have more or less fixed names.

Alan Stern

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

Powered by Openwall GNU/*/Linux Powered by OpenVZ