Re: [linux-usb-devel] USB devices

2007-06-25 Thread Greg KH
On Fri, Jun 22, 2007 at 07:37:20PM -0400, Bill Cunningham wrote: > Well on my linux whenever I plug in my usb flash cards all the system > says to me is address:2 then tries again with address:3 and everytime it > does this I get error code -110. I don't know what's wrong. I don't know if >

[linux-usb-devel] USB devices

2007-06-22 Thread Bill Cunningham
Well on my linux whenever I plug in my usb flash cards all the system says to me is address:2 then tries again with address:3 and everytime it does this I get error code -110. I don't know what's wrong. I don't know if I've uninstalled and RPM or what. I use a somewhat aged RH 9. Bill ---

Re: [linux-usb-devel] USB devices fail unnecessarily on unpowered hubs

2006-06-08 Thread Pavel Machek
Hi! > > > If that does the job we need to somehow inherit the power supply maximum > > > from > > > PCI when we allocate the root hub's device structure. > > > > I don't think there is such a convention that's generic for PCI. There > > might > > be ACPI-specific tables holding that value, but

Re: [linux-usb-devel] USB devices fail unnecessarily on unpowered hubs

2006-06-06 Thread Oliver Neukum
Am Montag, 5. Juni 2006 16:32 schrieb David Brownell: > On Saturday 03 June 2006 2:29 am, Oliver Neukum wrote: > > If that does the job we need to somehow inherit the power supply maximum > > from > > PCI when we allocate the root hub's device structure. > > I don't think there is such a convent

Re: [linux-usb-devel] USB devices fail unnecessarily on unpowered hubs

2006-06-05 Thread David Brownell
On Saturday 03 June 2006 2:29 am, Oliver Neukum wrote: > Am Dienstag, 30. Mai 2006 22:01 schrieb Pavel Machek: > > Actually I have exactly opposite problem: my computer (spitz) can't > > supply full 500mA on its root hub, and linux tries to power up > > 'hungry' devices, anyway, leading to very we

Re: [linux-usb-devel] USB devices fail unnecessarily on unpowered hubs

2006-06-03 Thread Oliver Neukum
Am Dienstag, 30. Mai 2006 22:01 schrieb Pavel Machek: > Hi! > > > Starting with 2.6.16, some USB devices fail unnecessarily on unpowered > > hubs. Alan Stern explains, > > > > "The idea is that the kernel now keeps track of USB power budgets. When a > > bus-powered device requires more current

Re: [linux-usb-devel] USB devices fail unnecessarily on unpowered hubs

2006-06-02 Thread David Liontooth
Alan Stern wrote: > Trying to draw too much current from an unpowered hub can and does cause > data loss. > I consider this issue closed; thank you for looking at it. The workaround is reasonably simple for the common situation of mounting a USB stick on a keyboard, perhaps with a mouse attache

Re: [linux-usb-devel] USB devices fail unnecessarily on unpowered hubs

2006-06-02 Thread Alan Stern
On Thu, 1 Jun 2006, David Liontooth wrote: > What are the reasons not to do this? What happens if a USB stick is > underpowered to one unit? Nothing? Slower transmission? Data loss? Flash > memory destruction? If it's just speed, it's a price well worth paying. I do wish people would read the ear

Re: [linux-usb-devel] USB devices fail unnecessarily on unpowered hubs

2006-06-02 Thread Oliver Neukum
Am Freitag, 2. Juni 2006 02:03 schrieb David Liontooth: > The MaxPower value does not appear to be a reliable index of this. My > USB stick has a MaxPower value of 178mA and works flawlessly off an > unpowered hub. Unfortunately devices don't seem to tell us what their It works flawlessly on all

Re: [linux-usb-devel] USB devices fail unnecessarily on unpowered hubs

2006-06-01 Thread David Brownell
On Thursday 01 June 2006 5:03 pm, David Liontooth wrote: > > However, obeying the USB power rules is not an end in itself -- the > relevant question is the minimum power the device requires to operate > correctly and without damage. We don't know the minimum, or much care about it since the minim

Re: [linux-usb-devel] USB devices fail unnecessarily on unpowered hubs

2006-06-01 Thread David Liontooth
Greg KH wrote: > On Thu, Jun 01, 2006 at 10:58:43AM -0400, Alan Stern wrote: > >> On Thu, 1 Jun 2006, Andrew Morton wrote: >> >> >>> On Thu, 01 Jun 2006 02:18:20 -0700 >>> David Liontooth <[EMAIL PROTECTED]> wrote: >>> >>> Starting with 2.6.16, some USB devices fail unnecessaril

Re: [linux-usb-devel] USB devices fail unnecessarily on unpowered hubs

2006-06-01 Thread Dagfinn Ilmari Mannsåker
Lennart Sorensen <[EMAIL PROTECTED]> writes: > A scanner certainly uses more power with the scanner light on than with > it off, and it starts out off until it is in use on most scanners. Of > course I have never seen a usb powered scanner, so it doesn't seem to > matter. Oh, they've been around

Re: [linux-usb-devel] USB devices fail unnecessarily on unpowered hubs

2006-06-01 Thread Mark Lord
Andrew Morton wrote: > On Thu, 01 Jun 2006 02:18:20 -0700 > .. >> This is generating a lot of grief and appears to be unnecessarily >> strict. Common USB sticks with a MaxPower value just above 100mA, for >> instance, typically work fine on unpowered hubs supplying 100mA. >> >> Is a more user-frien

Re: [linux-usb-devel] USB devices fail unnecessarily on unpowered hubs

2006-06-01 Thread Alan Stern
On Thu, 1 Jun 2006, Andrew Morton wrote: > On Thu, 1 Jun 2006 10:58:43 -0400 (EDT) > Alan Stern <[EMAIL PROTECTED]> wrote: > > > As an alternative, we could allow an "over-budget window" of say 10%. > > That, plus we should provide a suitable i-know-what-im-doing user override, > with the appr

Re: [linux-usb-devel] USB devices fail unnecessarily on unpowered hubs

2006-06-01 Thread linux-os (Dick Johnson)
On Thu, 1 Jun 2006, Oliver Neukum wrote: > Am Donnerstag, 1. Juni 2006 17:09 schrieb linux-os (Dick Johnson): >> Many, most, perhaps all such devices don't take more power when they >> are "enabled". Everything is already running and sucking up maximum >> current when you plug it in! If the mothe

Re: [linux-usb-devel] USB devices fail unnecessarily on unpowered hubs

2006-06-01 Thread Alan Stern
On Thu, 1 Jun 2006, linux-os (Dick Johnson) wrote: > > If they do, they are violating the spec. A device in the unconfigured > > (state 0) > > state must not draw more than 100mA. ... > Hmmm, the USB-IF recommends 100 mA per port, not requires. See section 7.2.1 of the USB 2.0 specification (p.

[linux-usb-devel] usb devices and O_EXCL

2006-04-16 Thread Andreas Jellinghaus
Hi, openct uses open(device, O_EXCL | O_RDWR); so, I would assume that only one process can open a device like this. unfortunatly this is not true: I have two processes that have the same device opened this way. note: I used /dev/bus/usb/*/* files, not the old usbfs. any idea what is wr

Re: [linux-usb-devel] usb devices have disappeared

2005-02-01 Thread Malcolm Apps
On Mon, 2005-01-31 at 11:00 -0800, David Brownell wrote: > On Monday 31 January 2005 10:49 am, Alan Stern wrote: > > On Mon, 31 Jan 2005, Malcolm Apps wrote: > > > > > > > After a bit of rummaging and playing I've come up with a solution that > > > I'm happy with because I can scan and print agai

Re: [linux-usb-devel] usb devices have disappeared

2005-01-31 Thread David Brownell
On Monday 31 January 2005 10:49 am, Alan Stern wrote: > On Mon, 31 Jan 2005, Malcolm Apps wrote: > > > > After a bit of rummaging and playing I've come up with a solution that > > I'm happy with because I can scan and print again. OTOH I'm not happy > > because it's a bit of a hack and my SmartCa

Re: [linux-usb-devel] usb devices have disappeared

2005-01-31 Thread Alan Stern
On Mon, 31 Jan 2005, Malcolm Apps wrote: > > > If I do "modprobe ohci_hcd" from the command line, lsusb gives me : > > > > > > Bus 002 Device 001: ID : > > > Bus 001 Device 001: ID : > > > > > > but nothing else. > > > > What shows up in the system log when you do the modprobe m

Re: [linux-usb-devel] usb devices have disappeared

2005-01-31 Thread Malcolm Apps
On Mon, 2005-01-31 at 12:02 -0500, Alan Stern wrote: > On Mon, 31 Jan 2005, Malcolm Apps wrote: > > > If I turn off kudzu in rc5.d there's nothing in /var/log/messages about > > USB / ohci_hcd after rebooting. > > So ohci-hcd doesn't get loaded. Okay. > > > If I then run kudzu from the command

Re: [linux-usb-devel] usb devices have disappeared

2005-01-31 Thread Alan Stern
On Mon, 31 Jan 2005, Malcolm Apps wrote: > If I turn off kudzu in rc5.d there's nothing in /var/log/messages about > USB / ohci_hcd after rebooting. So ohci-hcd doesn't get loaded. Okay. > If I then run kudzu from the command line, it exits immediately with no > output but an exit status of 0.

Re: [linux-usb-devel] usb devices have disappeared

2005-01-31 Thread Malcolm Apps
> Maybe I'm dense, but I don't see anything in this log to indicate that > kudzu is or is not involved. I didn't explain very well. If I turn off kudzu in rc5.d there's nothing in /var/log/messages about USB / ohci_hcd after rebooting. If I then run kudzu from the command line, it exits immedia

Re: [linux-usb-devel] usb devices have disappeared

2005-01-31 Thread Alan Stern
On Mon, 31 Jan 2005, Malcolm Apps wrote: > Turning off kudzu won't help fix the problem. > > But ... I changed it from S05kudzu to x05kudzu in rc5.d and then ran it > manually. The entries in /var/log/messages certainly show that kudzu's > involved somewhere: > > PCI: Found IRQ 11 for device 000

Re: [linux-usb-devel] usb devices have disappeared

2005-01-31 Thread Malcolm Apps
> > I've seen FC3 do that; for its own mysterious reasons, it just > > removed all the USB host controllers. I think it was Kudzu. > > Turn off Kudzu? What's the pros and cons? > > Malcolm Silly of me. Turning off kudzu won't help fix the problem. But ... I changed it from S05kudzu to x05kudz

Re: [linux-usb-devel] usb devices have disappeared

2005-01-30 Thread Malcolm Apps
> I've seen FC3 do that; for its own mysterious reasons, it just > removed all the USB host controllers. I think it was Kudzu. Turn off Kudzu? What's the pros and cons? Malcolm --- This SF.Net email is sponsored by: IntelliVIEW -- Interacti

Re: [linux-usb-devel] usb devices have disappeared

2005-01-30 Thread David Brownell
On Sunday 30 January 2005 12:19 pm, Alan Stern wrote: > On Sun, 30 Jan 2005, Malcolm Apps wrote: > > > I'm at a complete loss here. > > > > I'm running Fedora 2.6.9-1.681_FC3 > > > > > > ohci_hcd :00:01.2: remove, state 1 > > usb usb1: USB disconnect, address 1 > >

Re: [linux-usb-devel] usb devices have disappeared

2005-01-30 Thread Alan Stern
On Sun, 30 Jan 2005, Malcolm Apps wrote: > I'm at a complete loss here. > > I'm running Fedora 2.6.9-1.681_FC3 > > > Sequence of events: > > Installed an nVidia graphics card, everything was lovely, all USB > devices working fine (HP Deskjet 6540d, Epson Perfection 1670 scanner, > Belkin smart

[linux-usb-devel] usb devices have disappeared

2005-01-30 Thread Malcolm Apps
I'm at a complete loss here. I'm running Fedora 2.6.9-1.681_FC3 Sequence of events: Installed an nVidia graphics card, everything was lovely, all USB devices working fine (HP Deskjet 6540d, Epson Perfection 1670 scanner, Belkin smartcard read and Nokia nGage). 2 weeks later, removed nVidia gra

[linux-usb-devel] USB devices not detected

2004-08-30 Thread Rudolf Ladyzhenskii
Hi, all Curerntly I am running on a PC, but turned it into embedded system. Kernel is 2.6.7 USB controler on main board works OK. I want to try to use a PCI USB card. The one I have sues VIA VT6202 chip. Card is being detected by Linus and I can see USB 2.0 and USB 1.1 controllers appear in /pro

[linux-usb-devel] USB devices randomly disconnects

2004-07-19 Thread Wce Dev
Hi, I am developing a driver for usb based vga frame grabber (it uses cypress ez-usb fx2 chip). Everything works fine, except on some VIA 8235 USB EHCI our device gets disconnected after some period of work (usually somewhere between 2 and 24 hrs of continues USB transfers). After that disconnec

Re: [linux-usb-devel] USB-devices no longer detected in kernel 2.6 / found reason

2004-03-04 Thread David Brownell
Ullrich Sigwanz wrote: In 2.4.21 drivers/usb/usb.c line 2157 was: err = usb_get_string(dev, dev->string_langid, index, tbuf, 255); Now in 2.6.0 drivers/usb/core/message.c line 1208: err = usb_get_string(dev, dev->string_langid, index, tbuf, len); after setting to parameter len = 255 the device work

[linux-usb-devel] USB-devices no longer detected in kernel 2.6 / found reason

2004-03-04 Thread Ullrich Sigwanz
Hello, After compiling a new 2.6 kernel my Hewlett Packard Scanner 4300C was no longer detected. The console output was usb_control/bulk_msg: timeout I investigated the source code (and some posts) and found a difference in the file of 2.6 compared to 2.4 In 2.4.21 drivers/usb/usb.c line 2157 wa

Re: [linux-usb-devel] USB devices not detected under Linux, but work in Win98

2004-01-12 Thread Gabucino
No idea? -- Gabucino MPlayer Core Team pgp0.pgp Description: PGP signature

[linux-usb-devel] USB devices not detected under Linux, but work in Win98

2004-01-09 Thread Gabucino
Greetings, I have a PCI VIA USB 2.0 adapter. My problem is that Linux 2.4.22 or 2.6.0 doesn't recognize any devices plugged on it. Windows 98 does, on the same machine. I've tried everything in the BIOS, in the kernel config, removing other devices from those interrupts, booting init=/bin/sh, but

Re: [linux-usb-devel] usb devices require too much busmaster activity

2003-10-13 Thread Oliver Neukum
Am Montag, 13. Oktober 2003 07:33 schrieb Petr Olivka: > I do not know details about USB, but all modern devices use interrupts. > I hope that USB too. Serial or PS/2 mouse do not require check move, they > send data ourself. USB doesn't use interrupts on a bus level. Devices are polled, which may

Re: [linux-usb-devel] usb devices require too much busmaster activity

2003-10-12 Thread Petr Olivka
I do not know details about USB, but all modern devices use interrupts. I hope that USB too. Serial or PS/2 mouse do not require check move, they send data ourself. In notebook, when CPU can't use all power save modes, power increase about 10-20%, only because I need external mouse. It is unexpect

Re: [linux-usb-devel] usb devices require too much busmaster activity

2003-10-11 Thread David Brownell
Petr Olivka wrote: Hi ! I have still problem with USB devices. When I plug in any devices, then USB require continuous busmaster activity. This behaviour disable powersave state for CPU in kernel 2.6.test7 When I have loaded modules usb-core, uhci-hcd, hid, all work fine. But whn I plug in mous

[linux-usb-devel] usb devices require too much busmaster activity

2003-10-09 Thread Petr Olivka
Hi ! I have still problem with USB devices. When I plug in any devices, then USB require continuous busmaster activity. This behaviour disable powersave state for CPU in kernel 2.6.test7 When I have loaded modules usb-core, uhci-hcd, hid, all work fine. But whn I plug in mouse or card reader,

Re: [linux-usb-devel] USB devices major/minor numbers

2002-01-02 Thread Mark McClelland
Amira Solomovici wrote: >>What kind of device do you have? >> >A SmartCard reader. Are there allocated major:minor numbers for such devices >(as there are for scanners, for example)? > Check out this link: http://www.linuxnet.com/software.html You'll need to install PC/SC Lite and the appropria

Re: [linux-usb-devel] USB devices major/minor numbers

2002-01-01 Thread Greg KH
On Tue, Jan 01, 2002 at 08:28:56AM +0200, Amira Solomovici wrote: > > > > What kind of device do you have? > > A SmartCard reader. Are there allocated major:minor numbers for such devices > (as there are for scanners, for example)? No there isn't. You have to apply for one, and convince me, a

RE: [linux-usb-devel] USB devices major/minor numbers

2001-12-31 Thread Amira Solomovici
> What kind of device do you have? A SmartCard reader. Are there allocated major:minor numbers for such devices (as there are for scanners, for example)? > > 3. If my driver should be able to manage more than one device, should I > > register at init() or probe() all the entries? or do it only

Re: [linux-usb-devel] USB devices major/minor numbers

2001-12-31 Thread Greg KH
On Mon, Dec 31, 2001 at 10:29:42AM +0200, Amira Solomovici wrote: > Hi, > > Thanks for your help. > > Assuming that the usb driver is written for kernel v2.4 and above, I suppose > I can use the devfs and dynamic allocation of major and minor numbers > instead of fixed minors. No, you still ne

RE: [linux-usb-devel] USB devices major/minor numbers

2001-12-31 Thread Amira Solomovici
Hi, Thanks for your help. One small question I still have: > You in the driver decide the minor. If I use the DEVFS_FL_AUTO_DEVNUM flag in devfs_register(), can I still control the minor given? Or is this given automatically as well? Thanks, Amira. ___

RE: [linux-usb-devel] USB devices major/minor numbers

2001-12-31 Thread Oliver.Neukum
> 1. What's the difference between usbdevfs and devfs? Is there a way of > searching the /proc/bus/usb directory for a file entry (driver) that manages > a certain device (by checking its vendor and product id)? Usbdevfs is a file system for getting information about usb devices and user space dr

RE: [linux-usb-devel] USB devices major/minor numbers

2001-12-31 Thread Amira Solomovici
[mailto:[EMAIL PROTECTED]] Sent: Sunday, December 30, 2001 7:21 PM To: Amira Solomovici Cc: Linux_Usb_Develop (E-mail) Subject: Re: [linux-usb-devel] USB devices major/minor numbers On Thu, Dec 27, 2001 at 01:39:00PM +0200, Amira Solomovici wrote: > Hi, > > I am writing a usb device driver t

Re: [linux-usb-devel] USB devices major/minor numbers

2001-12-30 Thread Greg KH
On Thu, Dec 27, 2001 at 01:39:00PM +0200, Amira Solomovici wrote: > Hi, > > I am writing a usb device driver that is loaded as a module into the kernel. > My question is who allocates the major and minor numbers for my device > driver (it's for a smartcard reader)? I saw in the device list that t

[linux-usb-devel] USB devices major/minor numbers

2001-12-27 Thread Amira Solomovici
Hi, I am writing a usb device driver that is loaded as a module into the kernel. My question is who allocates the major and minor numbers for my device driver (it's for a smartcard reader)? I saw in the device list that there are allocated major number for other usb devices, but not for the type