On Tue, May 21, 2002 at 04:46:50AM +0200, [EMAIL PROTECTED] wrote:
> == Andries, what kind of USB problems did you have with 2.5.16?
> 
> It is a bit late, but I just compiled a kernel.
> 
> CONFIG_USB=y
> CONFIG_USB_DEVICEFS=y
> CONFIG_USB_UHCI_HCD=y
> 
> etc.
> 
> Now usbview doesnt work, even though usbdevfs is mounted.
> I consider that a bug in the usbdevfs code.
> After the mount the file devices should exist, but might
> of course be empty.
> 
> [create_special_files is called by usbfs_add_bus(), so never
> happens if usbfs_add_bus() never happens]

If usbfs is mounted, the 'devices' and 'drivers' files will not be
created until a host controller driver is added.  This is different from
the way 2.4 and 2.2 works, due to the change in the usbfs code (much
smaller codebase, and it now uses the vfs layer much better.)

> The reason that usbfs_add_bus never happens turns out to be
> that nothing in the host directory is compiled.
> Maybe
> 
> --- Makefile~   Sat May 18 16:25:54 2002
> +++ Makefile    Tue May 21 04:33:03 2002
> @@ -14,6 +14,7 @@
>  subdir-$(CONFIG_USB_OHCI)      += host
>  subdir-$(CONFIG_USB_UHCI_ALT)  += host
>  subdir-$(CONFIG_USB_UHCI)      += host
> +subdir-$(CONFIG_USB_UHCI_HCD)  += host
>  
>  subdir-$(CONFIG_USB_ACM)       += class
>  subdir-$(CONFIG_USB_AUDIO)     += class
> 
> is needed in linux/drivers/usb?

Ah, good catch, this is correct.  I'll add this patch (and also add it
for CONFIG_USB_UHCI_HCD_ALT.)

> After doing this, and with only a keyboard connected, I see
> 
> Initializing USB Mass Storage driver...
> usb.c: registered new driver usb-storage
> usb-uhci-hcd.c: ENXIO (Control)  80000400, flags 0, urb ce1b9120, burb ce1b90c0, 
>propably device driver bug...
> input: USB HID v1.00 Device [05e3:000a] on usb-00:07.2-1.1
> usb-uhci-hcd.c: ENXIO (Control)  80000480, flags 0, urb ce1b9180, burb ce1b90c0, 
>propably device driver bug...
> USB Mass Storage support registered.
> 
> Certainly "propably" is a typo.
> 
> Did not look further - am not sure whether things are supposed to work
> with only CONFIG_USB_UHCI_HCD selected.

The driver "should" work, but that's George's problems, not mine :)

thanks for the patch.

greg k-h

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to