All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.6.31-rc0-git: lsusb stopped working?
@ 2009-06-23 13:55 Pavel Machek
  2009-06-23 15:01 ` Greg KH
  2009-06-23 15:09 ` Frans Pop
  0 siblings, 2 replies; 12+ messages in thread
From: Pavel Machek @ 2009-06-23 13:55 UTC (permalink / raw)
  To: kernel list, Greg KH


On thinkpad x60. Otherwise usb seems to work, including btusb dongle.

/proc/bus/usb does not seem to exists.
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.31-rc0-git: lsusb stopped working?
  2009-06-23 13:55 2.6.31-rc0-git: lsusb stopped working? Pavel Machek
@ 2009-06-23 15:01 ` Greg KH
  2009-06-23 15:01   ` Greg KH
  2009-07-11  9:10   ` Pavel Machek
  2009-06-23 15:09 ` Frans Pop
  1 sibling, 2 replies; 12+ messages in thread
From: Greg KH @ 2009-06-23 15:01 UTC (permalink / raw)
  To: Pavel Machek; +Cc: kernel list

On Tue, Jun 23, 2009 at 03:55:29PM +0200, Pavel Machek wrote:
> 
> On thinkpad x60. Otherwise usb seems to work, including btusb dongle.
> 
> /proc/bus/usb does not seem to exists.

Newer (as in the past 2 years) versions of lsusb should not need
/proc/bus/usb/

What version of usbutils are you using?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.31-rc0-git: lsusb stopped working?
  2009-06-23 15:01 ` Greg KH
@ 2009-06-23 15:01   ` Greg KH
  2009-07-11  9:10   ` Pavel Machek
  1 sibling, 0 replies; 12+ messages in thread
From: Greg KH @ 2009-06-23 15:01 UTC (permalink / raw)
  To: Pavel Machek; +Cc: kernel list

On Tue, Jun 23, 2009 at 08:01:14AM -0700, Greg KH wrote:
> On Tue, Jun 23, 2009 at 03:55:29PM +0200, Pavel Machek wrote:
> > 
> > On thinkpad x60. Otherwise usb seems to work, including btusb dongle.
> > 
> > /proc/bus/usb does not seem to exists.
> 
> Newer (as in the past 2 years) versions of lsusb should not need
> /proc/bus/usb/
> 
> What version of usbutils are you using?

Oh, and if you really need it back, it's under CONFIG_EMBEDDED now.

Hope this helps,

greg k-h

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.31-rc0-git: lsusb stopped working?
  2009-06-23 13:55 2.6.31-rc0-git: lsusb stopped working? Pavel Machek
  2009-06-23 15:01 ` Greg KH
@ 2009-06-23 15:09 ` Frans Pop
  2009-06-23 16:13   ` Greg KH
  1 sibling, 1 reply; 12+ messages in thread
From: Frans Pop @ 2009-06-23 15:09 UTC (permalink / raw)
  To: Pavel Machek; +Cc: linux-kernel, greg

Pavel Machek wrote:
> On thinkpad x60. Otherwise usb seems to work, including btusb dongle.
> 
> /proc/bus/usb does not seem to exists.

Correct. usbfs has been removed in 2.6.31.

It's strange that lsusb no longer works for you. I've verified that on 
Debian stable (Lenny) it does still work after I unmount /proc/bus/usb.
I guess Debian must have a newer version of usbutils, or one built with 
libusb support.

The fact that your USB devices work means they do have libusb support.

$ dpkg -l usbutils
ii  usbutils        0.73-10         Linux USB utilities

Note that /proc/bus/usb/devices has been moved to debugfs and there's also 
work being done (see linux-usb archive) on a script that can list 
equivalent info by walking /sys.

For all the above: AFAIK and IIUC :-)

Cheers,
FJP

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.31-rc0-git: lsusb stopped working?
  2009-06-23 15:09 ` Frans Pop
@ 2009-06-23 16:13   ` Greg KH
  2009-06-23 20:35     ` Olivier Galibert
  0 siblings, 1 reply; 12+ messages in thread
From: Greg KH @ 2009-06-23 16:13 UTC (permalink / raw)
  To: Frans Pop; +Cc: Pavel Machek, linux-kernel

On Tue, Jun 23, 2009 at 05:09:44PM +0200, Frans Pop wrote:
> Pavel Machek wrote:
> > On thinkpad x60. Otherwise usb seems to work, including btusb dongle.
> > 
> > /proc/bus/usb does not seem to exists.
> 
> Correct. usbfs has been removed in 2.6.31.

To be pedantic, no, the filesystem has not been "removed".  Only the
user-mountable filesystem option has been moved under CONFIG_EMBEDDED,
as there should not be any userspace code that still uses that interface
into usbfs.

The recommended solution is to use the device nodes for usbfs, which
have been around for a few years now, and usually show up under
/dev/bus/usb/ and have the proper ACL and permissions that the
filesystem nodes can't have for a variety of reasons.

If for some reason you can not use the /dev/bus/usb/ device nodes, you
can enable the config option by turning on CONFIG_EMBEDDED.

Hope this helps,

greg k-h

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.31-rc0-git: lsusb stopped working?
  2009-06-23 16:13   ` Greg KH
@ 2009-06-23 20:35     ` Olivier Galibert
  2009-06-23 20:37       ` Pavel Machek
  2009-06-23 20:57       ` Greg KH
  0 siblings, 2 replies; 12+ messages in thread
From: Olivier Galibert @ 2009-06-23 20:35 UTC (permalink / raw)
  To: Greg KH; +Cc: Frans Pop, Pavel Machek, linux-kernel

On Tue, Jun 23, 2009 at 09:13:34AM -0700, Greg KH wrote:
> If for some reason you can not use the /dev/bus/usb/ device nodes, you
> can enable the config option by turning on CONFIG_EMBEDDED.

Wasn't CONFIG_EMBEDDED defined as an option to enable _removing_
useful stuff normal people do not want to remove?  I for one would
never imagine going there to put back legacy stuff.

  OG.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.31-rc0-git: lsusb stopped working?
  2009-06-23 20:35     ` Olivier Galibert
@ 2009-06-23 20:37       ` Pavel Machek
  2009-06-23 20:57       ` Greg KH
  1 sibling, 0 replies; 12+ messages in thread
From: Pavel Machek @ 2009-06-23 20:37 UTC (permalink / raw)
  To: Olivier Galibert, Greg KH, Frans Pop, linux-kernel

On Tue 2009-06-23 22:35:18, Olivier Galibert wrote:
> On Tue, Jun 23, 2009 at 09:13:34AM -0700, Greg KH wrote:
> > If for some reason you can not use the /dev/bus/usb/ device nodes, you
> > can enable the config option by turning on CONFIG_EMBEDDED.
> 
> Wasn't CONFIG_EMBEDDED defined as an option to enable _removing_
> useful stuff normal people do not want to remove?  I for one would
> never imagine going there to put back legacy stuff.

Yes, it surprised me, too.
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.31-rc0-git: lsusb stopped working?
  2009-06-23 20:35     ` Olivier Galibert
  2009-06-23 20:37       ` Pavel Machek
@ 2009-06-23 20:57       ` Greg KH
  1 sibling, 0 replies; 12+ messages in thread
From: Greg KH @ 2009-06-23 20:57 UTC (permalink / raw)
  To: Olivier Galibert, Frans Pop, Pavel Machek, linux-kernel

On Tue, Jun 23, 2009 at 10:35:18PM +0200, Olivier Galibert wrote:
> On Tue, Jun 23, 2009 at 09:13:34AM -0700, Greg KH wrote:
> > If for some reason you can not use the /dev/bus/usb/ device nodes, you
> > can enable the config option by turning on CONFIG_EMBEDDED.
> 
> Wasn't CONFIG_EMBEDDED defined as an option to enable _removing_
> useful stuff normal people do not want to remove?  I for one would
> never imagine going there to put back legacy stuff.

It works the same way, we really want this option to be disabled, as it
is not needed on "modern" systems.  But if you want it back, like on
some embedded systems that have only local root users, then
CONFIG_EMBEDDED will allow you to do that.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.31-rc0-git: lsusb stopped working?
  2009-07-11 17:43     ` Greg KH
@ 2009-07-10 16:13       ` Pavel Machek
  2009-07-12  0:25         ` Greg KH
  0 siblings, 1 reply; 12+ messages in thread
From: Pavel Machek @ 2009-07-10 16:13 UTC (permalink / raw)
  To: Greg KH; +Cc: kernel list

Hi!
> > > > 
> > > > On thinkpad x60. Otherwise usb seems to work, including btusb dongle.
> > > > 
> > > > /proc/bus/usb does not seem to exists.
> > > 
> > > Newer (as in the past 2 years) versions of lsusb should not need
> > > /proc/bus/usb/
> > > 
> > > What version of usbutils are you using?
> > 
> > root@amd:/home/pavel# lsusb --version
> > lsusb (usbutils) 0.73
> > root@amd:/home/pavel# 
> > 
> > I may have done something stupid with not runing udev and linking
> > /proc/bus/usb to /dev, instead...
> 
> the opensuse FACTORY tree now has a more modern version of usbutils in
> it, which works just fine without usbfs mounted.

Well, this is heavily hacked debian :-)

> > But it is not only usbutils that is broken, I first noticed breakage
> > on android fastboot.
> 
> Android needs it?  That's crazy, given that they don't have any usb host
> controllers in their devices.  Very wierd...

fastboot  runs on PC and uploads kernels to Android device(s).

> Anyway, this change is going to be reverted, it is already queued up to
> go to Linus early next week.  Just need to test some other pending
> patches as well.

Thanks!
									Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.31-rc0-git: lsusb stopped working?
  2009-06-23 15:01 ` Greg KH
  2009-06-23 15:01   ` Greg KH
@ 2009-07-11  9:10   ` Pavel Machek
  2009-07-11 17:43     ` Greg KH
  1 sibling, 1 reply; 12+ messages in thread
From: Pavel Machek @ 2009-07-11  9:10 UTC (permalink / raw)
  To: Greg KH; +Cc: kernel list

On Tue 2009-06-23 08:01:14, Greg KH wrote:
> On Tue, Jun 23, 2009 at 03:55:29PM +0200, Pavel Machek wrote:
> > 
> > On thinkpad x60. Otherwise usb seems to work, including btusb dongle.
> > 
> > /proc/bus/usb does not seem to exists.
> 
> Newer (as in the past 2 years) versions of lsusb should not need
> /proc/bus/usb/
> 
> What version of usbutils are you using?

root@amd:/home/pavel# lsusb --version
lsusb (usbutils) 0.73
root@amd:/home/pavel# 

I may have done something stupid with not runing udev and linking
/proc/bus/usb to /dev, instead...

But it is not only usbutils that is broken, I first noticed breakage
on android fastboot.
									Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.31-rc0-git: lsusb stopped working?
  2009-07-11  9:10   ` Pavel Machek
@ 2009-07-11 17:43     ` Greg KH
  2009-07-10 16:13       ` Pavel Machek
  0 siblings, 1 reply; 12+ messages in thread
From: Greg KH @ 2009-07-11 17:43 UTC (permalink / raw)
  To: Pavel Machek; +Cc: kernel list

On Sat, Jul 11, 2009 at 11:10:39AM +0200, Pavel Machek wrote:
> On Tue 2009-06-23 08:01:14, Greg KH wrote:
> > On Tue, Jun 23, 2009 at 03:55:29PM +0200, Pavel Machek wrote:
> > > 
> > > On thinkpad x60. Otherwise usb seems to work, including btusb dongle.
> > > 
> > > /proc/bus/usb does not seem to exists.
> > 
> > Newer (as in the past 2 years) versions of lsusb should not need
> > /proc/bus/usb/
> > 
> > What version of usbutils are you using?
> 
> root@amd:/home/pavel# lsusb --version
> lsusb (usbutils) 0.73
> root@amd:/home/pavel# 
> 
> I may have done something stupid with not runing udev and linking
> /proc/bus/usb to /dev, instead...

the opensuse FACTORY tree now has a more modern version of usbutils in
it, which works just fine without usbfs mounted.

> But it is not only usbutils that is broken, I first noticed breakage
> on android fastboot.

Android needs it?  That's crazy, given that they don't have any usb host
controllers in their devices.  Very wierd...
Android is also an embedded device, so you should be able to select the
option already on their builds, right?

Anyway, this change is going to be reverted, it is already queued up to
go to Linus early next week.  Just need to test some other pending
patches as well.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.31-rc0-git: lsusb stopped working?
  2009-07-10 16:13       ` Pavel Machek
@ 2009-07-12  0:25         ` Greg KH
  0 siblings, 0 replies; 12+ messages in thread
From: Greg KH @ 2009-07-12  0:25 UTC (permalink / raw)
  To: Pavel Machek; +Cc: kernel list

On Fri, Jul 10, 2009 at 06:13:37PM +0200, Pavel Machek wrote:
> Hi!
> > > > > 
> > > > > On thinkpad x60. Otherwise usb seems to work, including btusb dongle.
> > > > > 
> > > > > /proc/bus/usb does not seem to exists.
> > > > 
> > > > Newer (as in the past 2 years) versions of lsusb should not need
> > > > /proc/bus/usb/
> > > > 
> > > > What version of usbutils are you using?
> > > 
> > > root@amd:/home/pavel# lsusb --version
> > > lsusb (usbutils) 0.73
> > > root@amd:/home/pavel# 
> > > 
> > > I may have done something stupid with not runing udev and linking
> > > /proc/bus/usb to /dev, instead...
> > 
> > the opensuse FACTORY tree now has a more modern version of usbutils in
> > it, which works just fine without usbfs mounted.
> 
> Well, this is heavily hacked debian :-)

Take it up with the Debian maintainers then, there are newer usbutils
packages availble somewhere...

> > > But it is not only usbutils that is broken, I first noticed breakage
> > > on android fastboot.
> > 
> > Android needs it?  That's crazy, given that they don't have any usb host
> > controllers in their devices.  Very wierd...
> 
> fastboot  runs on PC and uploads kernels to Android device(s).

Oh, that program.  That sounds like a Debian configuration issue.

good luck,

greg k-h

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-07-12  0:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-23 13:55 2.6.31-rc0-git: lsusb stopped working? Pavel Machek
2009-06-23 15:01 ` Greg KH
2009-06-23 15:01   ` Greg KH
2009-07-11  9:10   ` Pavel Machek
2009-07-11 17:43     ` Greg KH
2009-07-10 16:13       ` Pavel Machek
2009-07-12  0:25         ` Greg KH
2009-06-23 15:09 ` Frans Pop
2009-06-23 16:13   ` Greg KH
2009-06-23 20:35     ` Olivier Galibert
2009-06-23 20:37       ` Pavel Machek
2009-06-23 20:57       ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.