Re: [linux-usb-devel] suspending scsi devices

2006-06-29 Thread Alan Stern
umably this won't come up very often. If all the children devices are properly suspended first then there shouldn't be any calls to queuecommand while your device is being suspended. Alan Stern Using Tomcat but need to do more? Need to support web services, security? Get stuff done

Re: [linux-usb-devel] suspending scsi devices

2006-06-30 Thread Alan Stern
On Fri, 30 Jun 2006, Oliver Neukum wrote: > Am Freitag, 30. Juni 2006 04:17 schrieb Alan Stern: > > On Thu, 29 Jun 2006, Oliver Neukum wrote: > > > > > Hi, > > > > > > does anybody know what error to return from queuecommand for commands > &

Re: [linux-usb-devel] Fw: Problems with [USB] on Kernel 2.6.x [1/3]

2006-06-30 Thread Alan Stern
On Fri, 30 Jun 2006, Foli Ayivoh wrote: > Alan Stern wrote: > > On Wed, 28 Jun 2006, Andrew Morton wrote: > > > > > Begin forwarded message: > > > > > > Date: Tue, 27 Jun 2006 20:18:45 +0200 > > > From: Foli Ayivoh <[EMAIL PROTECTED]> >

Re: [linux-usb-devel] [PATCH 02/11] usbcore: add usb_device_driver

2006-06-30 Thread Alan Stern
On Fri, 30 Jun 2006, Greg KH wrote: > On Wed, Jun 28, 2006 at 11:27:40AM -0400, Alan Stern wrote: > > Greg: > > > > This patch (as732) adds a usb_device_driver structure, for representing > > drivers that manage an entire USB device as opposed to just an interface.

Re: [linux-usb-devel] Fw: usb-storage device wrongly seen as "write protect is on"

2006-07-01 Thread Alan Stern
he > appropriate place. I've googled a bit with no success... This does not sound like a problem with the USB stack. You can find out for certain what's really happening by using the usbmon facility in 2.6.17. Instructions are in the kernel source file Documentation/usb/usbmon.txt. My best

Re: [linux-usb-devel] How DMA engine in USB Host controller work ?

2006-07-01 Thread Alan Stern
I controllers, the DMA engine is configured by writing the Frame List Base Address to one of the controller's registers. This is the address of the main data structure used by the DMA engine (it contains pointers to other data structures). No extra configuration is needed. Alan Stern Usin

Re: [linux-usb-devel] [PATCH 02/11] usbcore: add usb_device_driver

2006-07-01 Thread Alan Stern
above plus the ten more recent ones (since you successfully applied 01/11). Since they have already been posted on the mailing list, I'll send them directly to you off-list. Alan Stern Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly wi

Re: [linux-usb-devel] Another power budget issue

2006-07-02 Thread Alan Stern
ly learn about the problems and what their options are. Do you feel up to writing a FAQ entry? Alan Stern P.S.: This business about drives requiring 1000 mA at startup... I don't know what the story is on that, but the USB spec does not permit a device to draw that much current.

Re: [linux-usb-devel] new EHCI scheduler and shudtown question / interrupt race

2006-07-02 Thread Alan Stern
; the interrupt its on. I don't understand the problem you are describing. The kernel doesn't kill off an IRQ unless it gets a lot of unhandled interrupts (99900 out of the last 10). But none of the interrupts you mention will be unhandled -- ehci-hcd will handle all of them. So w

Re: [linux-usb-devel] Fwd: new EHCI scheduler and shudtown question / interrupt race

2006-07-03 Thread Alan Stern
tatus in interrupt URBs for a given hub. > On 7/2/06, Alan Stern <[EMAIL PROTECTED]> wrote: > > > I don't understand the problem you are describing. The kernel doesn't > > kill off an IRQ unless it gets a lot of unhandled interrupts (99900 out of > > the last 100

Re: [linux-usb-devel] gadget zero device driver with windows host

2006-07-03 Thread Alan Stern
GETD stands for "Get Descriptor" and SETA stands for "Set Address". Yes, once the host has fetched the device, configuration, and string descriptors and set the device address then enumeration has completed. In fact, that's what enumeration _is_. Alan Stern Using To

Re: [linux-usb-devel] Fw: Problems with [USB] on Kernel 2.6.x [1/3]

2006-07-03 Thread Alan Stern
LINUX ONLY > 2.6.16 OK > > The affected keyboard is "KEYBOARD TWO" that is connected via the KVM-SWITCH. Does the keyboard work better if you attach it directly to one of the computers, bypassing the KVM swi

Re: [linux-usb-devel] Fw: Problems with [USB] on Kernel 2.6.x [1/3]

2006-07-03 Thread Alan Stern
e KVM switch? Perhaps the switch causes those > > communications errors. > > > > Also, can you post the output from "lsusb -v"? > > > > Alan Stern > > > I connected the keyboard to "HOST TWO" (Kernel 2.6.16) through an Belkin > 7-Port Hub >

Re: [linux-usb-devel] [PATCH 15/15] usbcore: add "suspended" sysfs attribute

2006-07-03 Thread Alan Stern
On Mon, 3 Jul 2006, Greg KH wrote: > On Sat, Jul 01, 2006 at 10:17:52PM -0400, Alan Stern wrote: > > Pavel Machek has stated that the current /sys/devices/.../power/state > > interface is broken and likely to be replaced. It seems like a good idea > > to add a separate priv

Re: [linux-usb-devel] Fw: Problems with [USB] on Kernel 2.6.x [1/3]

2006-07-03 Thread Alan Stern
7;re welcome. The _real_ test will be to see what shows up in the log when you disconnect the KVM switch... Alan Stern Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSp

Re: [linux-usb-devel] Fw: Problems with [USB] on Kernel 2.6.x [1/3]

2006-07-04 Thread Alan Stern
On Tue, 4 Jul 2006, Foli Ayivoh wrote: > > You're welcome. The _real_ test will be to see what shows up in the log > > when you disconnect the KVM switch... > > > > Alan Stern > > > Connecting the keyboard directly (without the KVM-SWITCH) > to

Re: [linux-usb-devel] new EHCI scheduler and shudtown question / interrupt race

2006-07-05 Thread Alan Stern
to the disconnected devices (your #1, I think); > > This can take over a second; usually not, but it can. In the > meantime, I'm getting up to an interrupt per endpoint per millisecond. This will continue only for as long as the failed URBs continue to be resubmitted. You should co

Re: [linux-usb-devel] Fwd: new EHCI scheduler and shudtown question / interrupt race

2006-07-05 Thread Alan Stern
s more pain than would be justified', correct? Ummm... I've lost track of the original question. What is suboptimal and would be painful to fix? Alan Stern Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to

Re: [linux-usb-devel] enumerating devices in a usb hub

2006-07-05 Thread Alan Stern
ilable for turning off power to hub ports: http://www.gniibe.org/ac-power-by-usb/ac-power-control.html The problem is that a lot of hubs don't actually support power switching on their ports. It would be best to attack your problem by first finding out what's going wrong. To s

Re: [linux-usb-devel] Fwd: new EHCI scheduler and shudtown question / interrupt race

2006-07-05 Thread Alan Stern
sure usbcore isn't in use, because the kernel won't let you unload modules that are being used. For usbcore, this means you first have to unload all the other USB driver modules and you have to unmount /proc/bus/usb. Alan Stern Using Tomcat but need to do more? Need to support web

Re: [linux-usb-devel] new EHCI scheduler and shudtown question / interrupt race

2006-07-05 Thread Alan Stern
n qh_completions() does the code even check for -EPROTO? When the devices are idle, how can qh_completions() possibly have any work to do at all? > Is this part of what you're referring to as a high level driver? No. The higher-level driver is the one that submits URBs. Examples are

Re: [linux-usb-devel] Fwd: new EHCI scheduler and shudtown question / interrupt race

2006-07-05 Thread Alan Stern
On Wed, 5 Jul 2006, Christopher Montgomery wrote: > On 7/5/06, Alan Stern <[EMAIL PROTECTED]> wrote: > > > Ummm... I've lost track of the original question. What is suboptimal and > > would be painful to fix? > > The fact that when I unplug a hub/device the

Re: [linux-usb-devel] Fw: usb-storage device wrongly seen as "write protect is on"

2006-07-05 Thread Alan Stern
ou need to do is delay mounting it for some five or six seconds. Or maybe it doesn't change its mind until after getting a bunch of READ commands. Who knows? Alan Stern Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated t

Re: [linux-usb-devel] Fwd: new EHCI scheduler and shudtown question / interrupt race

2006-07-05 Thread Alan Stern
asted > computation that *is* occurring. I'm not even claiming it's a huge > problem, just one I'd like to avoid if it's at all easy to do so. The way to avoid excess computation is to have intr_deschedule() and periodic_qh_schedule() do less work. There's no need

Re: [linux-usb-devel] enumerating devices in a usb hub

2006-07-05 Thread Alan Stern
you experienced are caused by the one of the hubs not initializing properly. Alan Stern Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v

Re: [linux-usb-devel] Fw: Problems with [USB] on Kernel 2.6.x [1/3]

2006-07-05 Thread Alan Stern
On Wed, 5 Jul 2006, Foli Ayivoh wrote: > Alan Stern wrote: > > > > The dump shows that the drive just stopped responding at one spot and then > > was reset. Sometimes devices do that; nobody seems to know why. > > > > The real test is to use CONFIG_USB_STORAG

Re: [linux-usb-devel] enumerating devices in a usb hub

2006-07-05 Thread Alan Stern
It depends on the type of hub you use. With some hubs, the program does indeed simulate unplugging/replugging. With other hubs, it is impossible to simulate unplugging in software. Alan Stern Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with p

Re: [linux-usb-devel] enumerating devices in a usb hub

2006-07-05 Thread Alan Stern
low-speed devices so they don't need a high-speed hub. > Any other ideas about simulating unplugging/plugging using software? Sorry, it sounds like your hardware does not permit it. Alan Stern Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly

Re: [linux-usb-devel] enumerating devices in a usb hub

2006-07-06 Thread Alan Stern
ld try doing "rmmod ehci-hcd". This would force everything to run at full-speed or low-speed, and then maybe the keyboard/hub combination would work better. Alan Stern Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrate

Re: [linux-usb-devel] Fw: Problems with [USB] on Kernel 2.6.x [1/3]

2006-07-06 Thread Alan Stern
> cce35c60 3670790155 C Bi:006:06 -104 0 -104 means that the request was cancelled by the computer. Probably because the device took too long to respond. Alan Stern Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technolog

Re: [linux-usb-devel] enumerating devices in a usb hub

2006-07-06 Thread Alan Stern
trying to > solve the problem without changing the hardware. > > Do you guys think there is a way (even if you don't know wich) to make it > work without changing the hardware? I don't know of any way. Can you just test all your hardware and find combinations of keyboards

[linux-usb-devel] What happened to patch as729?

2006-07-06 Thread Alan Stern
Greg: What happened to the patch in this message: http://marc.theaimsgroup.com/?l=linux-usb-devel&m=115133536619214&w=2 ? It's not in the current gregkh-all file but it does appear in your USB git tree at kernel.org. Alan Stern Using Tomcat but need to do more? Need to support

[linux-usb-devel] [PATCH] usbcore: add configuration_string to attribute group

2006-07-06 Thread Alan Stern
along with the active configuration. The patch also fixes a simple typo (which, oddly enough, doesn't seem to bother the compiler). Alan Stern Signed-off-by: Alan Stern <[EMAIL PROTECTED]> --- Index: usb-2.6/drivers/

[linux-usb-devel] [PATCH] EHCI: repair remote-wakeup support

2006-07-06 Thread Alan Stern
wakeup request arrives on a suspended port rather than when the root hub itself generates a wakeup request. Working remote wakeup support is an important part of autoresume and a prerequisite for autosuspend. Alan Stern Signed-off-by: Alan Stern <[EMAIL PROTECTED]> --- It's easy t

Re: [linux-usb-devel] Fwd: new EHCI scheduler and shudtown question / interrupt race

2006-07-07 Thread Alan Stern
ent version of libusb provides those features; I haven't actually checked. You certainly can do them using usbfs directly without libusb. Alan Stern Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make y

Re: [linux-usb-devel] Fw: Problems with [USB] on Kernel 2.6.x [1/3]

2006-07-07 Thread Alan Stern
On Fri, 7 Jul 2006, Foli Ayivoh wrote: > Alan Stern wrote: > > > > On Thu, 6 Jul 2006, Foli Ayivoh wrote: > > > > > Hi Alan, > > > > > > I could not find "boot device" related stuff in the thread!? > > > > What? You ment

Re: [linux-usb-devel] enumerating devices in a usb hub

2006-07-07 Thread Alan Stern
ugged_ from the hub, and then plug in the keyboard _after_ the computer has finished booting? Alan Stern Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.

Re: [linux-usb-devel] USB performance

2006-07-07 Thread Alan Stern
controller, yet they all affect the performance. Alan Stern Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-u

Re: [linux-usb-devel] Fw: Kernel crash with ehci when plugging my USB hard drive

2006-07-07 Thread Alan Stern
0 3e c0 11 0d 5c f0 3e c0 5b 5d > c3 > 55 89 e5 57 56 89 ce 53 57 57 89 45 f0 89 55 ec 8b 10 <8b> 1a eb 26 8b 7a f4 > 8d > 42 f4 ff 75 0c ff 75 08 ff 75 ec 50 ffEIP: [] > __wake_up_common+0x12/0x49 SS:ES

[linux-usb-devel] [PATCH] usbcore: fix bug in usb_uevent

2006-07-07 Thread Alan Stern
Greg: Somehow in all the confusion over that long series of patches last weekend, a few lines of code failed to be removed in usb_uevent(). This bug causes a nasty hang during bootup as soon as a USB host controller is probed. This patch (as744) removes the excess code. Alan Stern Signed

Re: [linux-usb-devel] enumerating devices in a usb hub

2006-07-07 Thread Alan Stern
me looks something like "2-3.4:1.0". You can find the existing hub names by doing ls /sys/bus/usb/drivers/hub but then you have to figure out which is the name of the hub you're interested in. If that doesn't work, I'll post a program for resetting the hub.

[linux-usb-devel] [PATCH] usb-storage: wait for URB to complete

2006-07-07 Thread Alan Stern
y uncommon, they do occur. Without this patch the code in 2.6.18-rc1 will fault within an interrupt handler, which is not nice at all. Alan Stern Signed-off-by: Alan Stern <[EMAIL PROTECTED]> --- Index: usb-2.6/drivers/usb/sto

Re: [linux-usb-devel] [PATCH 02/11] usbcore: add usb_device_driver

2006-07-09 Thread Alan Stern
On Sat, 8 Jul 2006, Andrew Morton wrote: > On Wed, 28 Jun 2006 11:27:40 -0400 (EDT) > Alan Stern <[EMAIL PROTECTED]> wrote: > > > This patch (as732) adds a usb_device_driver structure, for representing > > drivers that manage an entire USB device as opposed to just

Re: [linux-usb-devel] sorry,the question i submitted was wrong

2006-07-09 Thread Alan Stern
up? That speed is normal. The absolute maximum for full-speed USB is 9.28 Mb/s; in practice two-thirds of the maximum is good. > When write-in my nand flash,the speed is only 4Mbps,is it too slow? Too slow for what? Alan Stern

Re: [linux-usb-devel] [PATCH 02/11] usbcore: add usb_device_driver

2006-07-09 Thread Alan Stern
mine too. I'd appreciate a cc when appropriate, thanks. Next time there's a hot bugfix, I'll be sure to CC you. I apologize for the waste of time. Alan Stern - Using Tomcat but need to do more? Need to support w

Re: [linux-usb-devel] Device Detection Issues

2006-07-10 Thread Alan Stern
ice's data pins are intermittently making and breaking contact with the cable's pins. It has nothing to do with the host. Alan Stern - Using Tomcat but need to do more? Need to support web services, security? Get st

Re: [linux-usb-devel] enumerating devices in a usb hub

2006-07-10 Thread Alan Stern
er /dev, such as "/dev/usbdev1.4" -- the two filenames would refer to the same device. Alan Stern /* usbreset -- send a USB port reset to a USB device */ #include #include #include #include #include #include int main(int argc, char **argv) { const char *filename; int

[linux-usb-devel] [PATCH] usbcore: add back missing #include line

2006-07-10 Thread Alan Stern
Greg: This patch (as750) adds back a #include line that accidentally got deleted in that long series of patches last week. Alan Stern Signed-off-by: Alan Stern <[EMAIL PROTECTED]> --- Index: usb-2.6/drivers/usb/core/dr

[linux-usb-devel] [RFC] Patch to remove unnecessary calls to usb_resume_root_hub

2006-07-10 Thread Alan Stern
Dave: It seems to me that none of the calls to usb_resume_root_hub() below are really needed. Is there any reason not to remove them? Alan Stern Index: usb-2.6/drivers/usb/host/ehci-pci.c === --- usb-2.6.orig/drivers/usb/host

Re: [linux-usb-devel] Device Detection Issues

2006-07-11 Thread Alan Stern
suspend - reset - suspend - reset - > get_device_descriptor - reset - set_address sequence. The observations > on both these pc's is invariable. If it was a device oddity, then why > would it behave differently on two different hosts? I don't know. Have you tried usin

Re: [linux-usb-devel] LH7A404 usb-storage problem

2006-07-11 Thread Alan Stern
bug, and i don't know whethe it is the bug of > LH7A404 or usb-storage driver. if you used it normally, please give me > some suggestion, Thank you! It is not a problem with usb-storage. It could be a problem with the LH7A404 host dri

Re: [linux-usb-devel] Strange Observation

2006-07-11 Thread Alan Stern
Only in /home/ajain/mm6plus-26/linux/drivers/usb/: devio.c > Only in /home/ajain/mm6plus-26/linux/drivers/usb/: file.c Clearly something strange has happened to your ported version. Those files (buffer.c, config.c, and so on) belong in drivers/usb/core/, not in drivers/usb/. Alan Stern -

Re: [linux-usb-devel] enumerating devices in a usb hub

2006-07-11 Thread Alan Stern
but they are not being able to reproduce the bug. You could try sending them a misbehaving hub/keyboard pair. > Thank you a lot for helping me, for giving me those codes, for everything! > If some day I find the answer, I'll post it. Good luck, Alan Stern --

Re: [linux-usb-devel] Device Detection Issues

2006-07-11 Thread Alan Stern
ave one such sniffer, that causes my pc to > reboot off and on. There's one available on SourceForge: http://sourceforge.net/projects/usbsnoop/ Alan Stern - Using Tomcat but need to do more? Need to support web ser

Re: [linux-usb-devel] enumerating devices in a usb hub

2006-07-12 Thread Alan Stern
g... > Do you know anything else that could be done? I just remembered something that _might_ help. This patch: http://marc.theaimsgroup.com/?l=linux-usb-devel&m=115092788712812&w=2 was submitted too late to appear in 2.6.17. You should try applying to your kernel,

Re: [linux-usb-devel] fc5: udev: usb: hp virtual keyboard (solved?)

2006-07-12 Thread Alan Stern
vious version of FC5 tree, > if I did not use 'nousb' option the setup process not work). > > After the server's reboot, the USB loop problem has not been manifested > and the server work great! It would

Re: [linux-usb-devel] Fwd: Device Detection Issues

2006-07-12 Thread Alan Stern
n D+/gnd D-/gnd. If you still see the strange behavior with one side eliminated, then you will know the other side is responsible. Alan Stern - Using Tomcat but need to do more? Need to support web services, security? Get stuf

Re: [linux-usb-devel] OCHI host + mass storage performance

2006-07-12 Thread Alan Stern
set, then the system log will include some very verbose messages telling just what happens. Or if you build a kernel with CONFIG_DEBUG_FS and CONFIG_USB_MON set, you can follow the instructions in Documentation/usb/usbmon.txt

Re: [linux-usb-devel] Enumeration sequence issues

2006-07-12 Thread Alan Stern
s? In my tests, when asking for a config descriptor Windows always requests either 9 bytes or the correct total length. When asking for a string descriptor, Windows often -- but not always! -- requests 255 bytes (the maximum). > The sequence is always

Re: [linux-usb-devel] fc5: udev: usb: hp virtual keyboard

2006-07-12 Thread Alan Stern
On Wed, 12 Jul 2006, Frantz, Chris wrote: > Pete, > > Which kernel is running? > > A while back, Alan Stern and I worked out a patch for an issue that > sounds just like this one. The UHCI controller in iLO cannot meet the > timing requirements of the hub code in kerne

Re: [linux-usb-devel] [RFC] Patch to remove unnecessary calls to usb_resume_root_hub

2006-07-13 Thread Alan Stern
On Tue, 11 Jul 2006, David Brownell wrote: > On Monday 10 July 2006 9:16 am, Alan Stern wrote: > > Dave: > > > > It seems to me that none of the calls to usb_resume_root_hub() below are > > really needed. Is there any reason not to remove them? > > I'll h

[linux-usb-devel] CONFIG_USB_SUSPEND, autosuspend, and OHCI

2006-07-13 Thread Alan Stern
n CONFIG_PM instead of CONFIG_USB_SUSPEND? Do you want to change ohci-hcd, giving it a simple "auto-stop" facility like the one in uhci-hcd rather than an idiosyncratic autosuspend? Alan Stern --

Re: [linux-usb-devel] re-plug needed during ESD testing

2006-07-14 Thread Alan Stern
oftware on the device to help survive these > sorts of circumstances in the future? Not that I can think of, not without violating the spirit of the USB spec. It would be better to tackle the shortcomings of the host by fixing the

Re: [linux-usb-devel] [PATCH] Properly unregister reboot notifier in case of failure in ehci hcd

2006-07-14 Thread Alan Stern
registering" by keeping a private flag that you set when the notifier is registered. Then you can simply skip registering if the flag is already set. Alan Stern - Using Tomcat but need to do more? Need to support web se

Re: [linux-usb-devel] 2.6.17 hangs during boot on ASUS M2NPV-VM motherboard

2006-07-14 Thread Alan Stern
m more precisely, try adding a whole bunch of printk() statements to the quirk_usb_handoff_ohci() function in drivers/usb/host/pci-quirks.c. Alan Stern - Using Tomcat but need to do more? Need to support web services, security? Get

Re: [linux-usb-devel] [RFC: -mm patch] drivers/usb/core/driver.c: make 2 functions static

2006-07-15 Thread Alan Stern
; +static int usb_suspend_both(struct usb_device *udev, pm_message_t msg) > { > int status = 0; > int i = 0; There's no problem with making usb_device_match() static, but I've got a patch alm

Re: [linux-usb-devel] re-plug needed during ESD testing

2006-07-17 Thread Alan Stern
ng similar > that applies the same principle to the USB cable (not with a 1000V though!). These rapid repeated disconnects are a kind of stress testing the Linux USB host code is hardly ever exposed to. It's not surprising that eventually it would fail. Alan Stern -

[linux-usb-devel] [RFC 0/4] USB autosuspend/autoresume

2006-07-17 Thread Alan Stern
te wakeup; other suspend requests must succeed regardless. Also, various error messages are suppressed if this flag is set, since autosuspend is expected to fail fairly often. Okay, this is a lot of mate

[linux-usb-devel] [RFC 1/4] USB autosuspend/autoresume

2006-07-17 Thread Alan Stern
probe and disconnect. Signed-off-by: Alan Stern <[EMAIL PROTECTED]> Index: usb-2.6/include/linux/usb.h === --- usb-2.6.orig/include/linux/usb.h +++ usb-2.6/include/linux/usb.h @@ -19,6 +19,7 @@ #include /*

[linux-usb-devel] [RFC 2/4] USB autosuspend/autoresume

2006-07-17 Thread Alan Stern
d-off-by: Alan Stern <[EMAIL PROTECTED]> --- Index: usb-2.6/drivers/usb/core/hcd.c === --- usb-2.6.orig/drivers/usb/core/hcd.c +++ usb-2.6/drivers/usb/core/hcd.c @@ -1476,50 +1476,6 @@ int hcd_bus_resume (struct usb_bus *bus)

[linux-usb-devel] [RFC 3/4] USB autosuspend/autoresume

2006-07-17 Thread Alan Stern
usb_set_configuration. Signed-off-by: Alan Stern <[EMAIL PROTECTED]> Index: usb-2.6/drivers/usb/core/devio.c === --- usb-2.6.orig/drivers/usb/core/devio.c +++ usb-2.6/drivers/usb/core/devio.c @@ -558,12 +558,13 @@ static int usbde

[linux-usb-devel] [RFC 4/4] USB autosuspend/autoresume

2006-07-17 Thread Alan Stern
This patch (as742) adds autosuspend/autoresume support to the USB hub driver. The largest aspect of the change is that we no longer need a special flag for root hubs that want to be resumed. Now every hub is autoresumed whenever khubd needs to access it. Signed-off-by: Alan Stern <[EM

Re: [linux-usb-devel] USB device driver querry

2006-07-18 Thread Alan Stern
ile sharing (Samba, NFS, or any other flavor you like) and browse remotely to your heart's content. Alan Stern - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll ge

Re: [linux-usb-devel] USB device driver querry

2006-07-18 Thread Alan Stern
vice must not mount it or write to it until the USB connection is dropped. If this restriction is too strong, you also have the option of supporting CDC Ethernet. Then you could configure your device as a network file server and the host could mount it remotely, us

Re: [linux-usb-devel] [usb-storage] [PATCH] usb-storage: Add ZD1211 USB-WLAN support

2006-07-18 Thread Alan Stern
code and this new subdriver. Wouldn't it be easy enough to write a user program to send the necessary command URB via usbfs? Alan Stern - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net'

Re: [linux-usb-devel] [usb-storage] [PATCH] usb-storage: Add ZD1211 USB-WLAN support

2006-07-18 Thread Alan Stern
On Tue, 18 Jul 2006, Matthew Dharm wrote: > On Tue, Jul 18, 2006 at 05:01:32PM +0100, Daniel Drake wrote: > > Alan Stern wrote: > > >Wouldn't it be easy enough to write a user program to send the necessary > > >command URB via usbfs? > > That seems more r

Re: [linux-usb-devel] [Ueagleatm-dev] usbatm_complete failures

2006-07-20 Thread Alan Stern
ffecting ADSL modems in the UHCI driver for 2.6.17. Perhaps it is related to your problem. The driver in 2.6.18-rc2 seems to work better. Try running that instead. Alan Stern - Take Surveys. Earn Cash. Influence the Future

Re: [linux-usb-devel] [Ueagleatm-dev] usbatm_complete failures

2006-07-20 Thread Alan Stern
dth. > So if CONFIG_USB_BANDWIDTH is enabled (it is on default kernel > configuration), there are some urb submits that fail. The bandwidth allocation in uhci-hcd is completely broken. Nobody should even try to use it. It's one of the items on my needs-to-be-fixed list. Alan Stern

Re: [linux-usb-devel] lsusb stopped showing devices in 2.6.18-rc*

2006-07-21 Thread Alan Stern
nize my hp > printer. What does /proc/bus/usb/devices show? Note that you may need to mount /proc/bus/usb before you can see anything: mount -t usbfs usbfs /proc/bus/usb Try turning on CONFIG_USB_DEBUG and rebuilding the kernel. What shows up in the dmesg log when you turn on the

Re: [linux-usb-devel] USB snd-usb-audio wedges lsusb when unplugged while playing sound.

2006-07-22 Thread Alan Stern
n. Don't try to use it. Alan Stern - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics throu

Re: [linux-usb-devel] [usb-storage] [PATCH] usb-storage: Add ZD1211 USB-WLAN support

2006-07-24 Thread Alan Stern
t I would change the details in storage/usb.c. Check for US_FL_IGNORE_DEVICE in the get_device_info() routine, and make that routine return int instead of void. If the flag is present you can simply return -ENODEV. Then in storage_probe(), you check the return code and jump to BadDevice if it's non

Re: [linux-usb-devel] Mounting the USB device with IXP465 Embedded USB host

2006-07-24 Thread Alan Stern
e let me know how shall I procede. If you're not using udev then you may need to run the MAKEDEV script or something equivalent. Tell it to create the sd[a-z]... device entries. Alan Stern - Take Surveys. Earn Cash. Influe

Re: [linux-usb-devel] Mounting the USB device with IXP465 Embedded USB host

2006-07-24 Thread Alan Stern
t; /dev. What happens when you run "mount"? Turn on CONFIG_USB_DEBUG and CONFIG_USB_STORAGE_DEBUG, and rebuild the USB drivers. Then what shows up in the dmesg log when you run "mount"? Alan Stern - Take Surv

Re: [linux-usb-devel] BUG: Inconsistent lock state

2006-07-25 Thread Alan Stern
uot;inconsistent lock state" message involves the UHCI controller as well as the OHCI controller. And ironically, the error has nothing to do with the fact that a PCMCIA card was ejected. It could have happened any time a USB controller was turned off. Does the following patch help? Alan

Re: [linux-usb-devel] Patch for rtl8150 to fix unplug problems

2006-07-25 Thread Alan Stern
n expected sort of error), but otherwise don't treat it specially. Alan Stern - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your o

Re: [linux-usb-devel] BUG: Inconsistent lock state

2006-07-25 Thread Alan Stern
ew root-hub polling scheme since it is conditional on (!hcd->uses_new_polling). A few other changes would be needed as well, nothing serious. At any rate, it's obvious that the problem was caused when usb_rh_urb_dequeue() unconditionally re-enabled interrupts. My patch

Re: [linux-usb-devel] Dealias -110 in ohci-hcd

2006-07-25 Thread Alan Stern
t; return USB_STOR_XFER_ERROR; > > /* babble - the device tried to send more than we wanted to read */ > > As see, this makes this check meaningful. I need to do something about it. Isn't it true that whenever this error occurs, usb-sto

Re: [linux-usb-devel] BUG: Inconsistent lock state

2006-07-26 Thread Alan Stern
re especially tricky because they > need to defend against concurrent unlink from hcd_driver.remove (which is > what rmmod does, also pccardd in Matthias' case), usb_driver unlink calls, > and khubd cleanup during usb device unplug. Yes, worst case there can > be three CPUs raci

Re: [linux-usb-devel] BUG: Inconsistent lock state

2006-07-26 Thread Alan Stern
ntrol URB was running. Do you think it would be safe, given how non-standardized those HCD methods are? Alan Stern - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you&#

Re: [linux-usb-devel] 2.6.17 hangs during boot on ASUS M2NPV-VM motherboard

2006-07-27 Thread Alan Stern
The new location you found is in the driver core, and a bug was fixed in that region just about at the same time as you ran your test. You might try redoing everything with the current -mm tree plus hotfixes. And try running each test a few times. If there is a race, you could get differe

Re: [linux-usb-devel] Dealias -110 in ohci-hcd

2006-07-28 Thread Alan Stern
ably right about treating -ETIME errors with default handlers. In fact, there are plenty of places that test for EPROTO and/or EILSEQ where it's not really to any advantage. Did you check for any places where ETIMEDOUT actually should be changed to ETIME (or remove

Re: [linux-usb-devel] BUG: Inconsistent lock state

2006-07-28 Thread Alan Stern
On Wed, 26 Jul 2006, David Brownell wrote: > On Wednesday 26 July 2006 8:29 am, Alan Stern wrote: > > On Wed, 26 Jul 2006, David Brownell wrote: > > > > > > The patch uses spin_lock_irqsave() and spin_unlock_irqrestore() along > > > > with > > >

Re: [linux-usb-devel] lsusb stopped showing devices in 2.6.18-rc*

2006-07-28 Thread Alan Stern
artman <[EMAIL PROTECTED]> > > :04 04 879a23a817afb7237bb79a24d2b80ebf66ec52cd > a9f43bad474a0d1877db24a11282427e863a2718 Mdrivers > :04 04 167350de305feb4e79d2656f00b28475461405ce > e2957848b084cce6cbab275

[linux-usb-devel] [PATCH] usbmon: don't call dmapeek for non-DMA-able controllers

2006-07-28 Thread Alan Stern
Greg and Pete: usbmon crashed when I tried using it with dummy-hcd, because it doesn't check whether the bus's controller actually does use DMA before trying to map the buffer. This patch (as755) fixes it. Alan Stern Signed-off-by: Alan Stern <[EMAIL PROTECTED]> --- Index

Re: [linux-usb-devel] BUG: Inconsistent lock state

2006-07-28 Thread Alan Stern
e() and spin_unlock_irqrestore() along with a call to wait_event(). What happens if you end up calling wait_event() with interrupts disabled? Would it be better simply to spin? Alan Stern - Take Surveys. Earn Cash. Inf

Re: [linux-usb-devel] lsusb stopped showing devices in 2.6.18-rc*

2006-07-28 Thread Alan Stern
t; Well i come to think that maybe is a HAL problem. I have just read a > blog entry by HAL mantainer saying that i has just released a new > version of HAL with patches by Kay Sievers to make it work again with > kernels newer than 2.6.17. That certainly could explain part

Re: [linux-usb-devel] Dealias -110 in ohci-hcd

2006-07-29 Thread Alan Stern
On Wed, 26 Jul 2006, Pete Zaitcev wrote: > On Tue, 25 Jul 2006 17:11:56 -0400 (EDT), Alan Stern <[EMAIL PROTECTED]> > wrote: > > > > + /* > > > + * A timeout could have happened becasue we reloaded and > > > + * inherited a n

[linux-usb-devel] [PATCH] dummy-hcd: disable interrupts during req->complete

2006-07-29 Thread Alan Stern
Greg: This patch (as756) fixes a bug in dummy-hcd found by the lockdep checker. In one of the code paths, the driver did not disable interrupts before calling a request completion routine. Alan Stern Signed-off-by: Alan Stern <[EMAIL PROTECTED]> --- Index: usb-2.6/drivers/usb/

Re: [linux-usb-devel] [PATCH 1/4] pl2303: remove 80-columns limit violations in pl2303 driver

2006-07-29 Thread Alan Stern
uot; > > + "the baudrate requested (fix it)\n"); > > break; > > This segment looks ok. Actually it's not. There's no space character between "support" and "the" in the final string. Alan

Re: [linux-usb-devel] mentor graphics usb controller

2006-07-29 Thread Alan Stern
n other than the source code. Try reading sl811-hcd.c or isp116x-hcd.c; they are relatively simple self-contained drivers. > What's the purpose of generic hcd driver? Its purpose is to provide the common features needed by all HCDs. Alan Stern --

<    1   2   3   4   5   6   7   8   9   10   >