Re: [linux-usb-devel] Re: More questions/comments about the UHCI driver

2003-07-24 Thread Gene Heskett
On Thursday 24 July 2003 22:20, Alan Stern wrote: >On Thu, 24 Jul 2003, David Brownell wrote: >> Alan Stern wrote: >> > You can't set periodic_iso_limit to 1024 on UHCI, because the >> > driver reserves a grace period of 10 frames. The largest legal >> > value is therefore UHCI_NUMFRAMES - 11. > >

Re: [linux-usb-devel] System stalls using usb-storage

2003-07-24 Thread Matthew Dharm
As an experiment, can you renice the usb-storage control thread to something like -10 or so, and see if that improves things any? Matt On Thu, Jul 24, 2003 at 07:52:50PM +0200, kri wrote: > > Many people, including myself, have observed system stalls when using > > usb-storage. It happens when c

[linux-usb-devel] Re: PATCH: (as71) Rename usb_connect() to usb_choose_address()

2003-07-24 Thread Alan Stern
On Thu, 24 Jul 2003, David Brownell wrote: > Alan Stern wrote: > > > But doesn't there have to be _something_ there so that URBs won't fail the > > bogus-maxpacket check in usb_submit_urb()? > > Handled by usb_new_device(), which is the first thing to actually > issue a request (SET_ADDRESS) to

Re: [linux-usb-devel] Re: More questions/comments about the UHCIdriver

2003-07-24 Thread Alan Stern
On Thu, 24 Jul 2003, David Brownell wrote: > Alan Stern wrote: > > > > You can't set periodic_iso_limit to 1024 on UHCI, because the driver > > reserves a grace period of 10 frames. The largest legal value is > > therefore UHCI_NUMFRAMES - 11. Shortly after sending that off, I realized it was n

Re: [linux-usb-devel] Enabling Remote Wakeup in OHCI

2003-07-24 Thread David Brownell
Pering, Trevor wrote: Hello -- I'm trying to understand the OHCI spec in order to enable remote wakeup. My understanding is that when the system is about to enter the suspend state, that I need to instruct the individual devices to activate remote wakeup by setting the Device_Remote_Wakeup feature

[linux-usb-devel] Re: PATCH: (as71) Rename usb_connect() to usb_choose_address()

2003-07-24 Thread David Brownell
Alan Stern wrote: On Thu, 24 Jul 2003, David Brownell wrote: Alan Stern wrote: If David agrees, this is ready to be applied. Looks fine to me except that register_root_hub() shouldn't set a potentially bogus (at high speed) bMaxPacketSize0: + usb_dev->descriptor.bMaxPacketSize0 = 8; 64 is legal

[linux-usb-devel] [patch 2.6.0-test1] usbnet: zaurus c-750, motorolasb4100, cleanup

2003-07-24 Thread David Brownell
[RESEND - this time with patch!] This patch: - Makes the cdc code handle a Motorola cable modem that stores CDC descriptors in the wrong place. The workaround might be helpful for other hardware too. (This was a 2.4 regression.) - Recognizes another Zaurus (PXA 255 based clamshell,

[linux-usb-devel] Enabling Remote Wakeup in OHCI

2003-07-24 Thread Pering, Trevor
Hello -- I'm trying to understand the OHCI spec in order to enable remote wakeup. My understanding is that when the system is about to enter the suspend state, that I need to instruct the individual devices to activate remote wakeup by setting the Device_Remote_Wakeup feature bit. I'm unclear on ho

[linux-usb-devel] Re: OHCI problems with suspend/resume

2003-07-24 Thread Pavel Machek
Hi! > > In 2.6.0-test1, OHCI is non-functional after first suspend/resume, and > > kills machine during secon suspend/resume cycle. > > I experience similar problems with UHCI: > > Before suspending to S3 I unload usb modules and afterwards I reload them, but it > does not work again. > (For te

Re: [linux-usb-devel] OHCI problems with suspend/resume

2003-07-24 Thread Pavel Machek
Hi! > >Can you try echo 4 > /proc/acpi/sleep? echo 3 breaks it, too, but that > >is little harder to set up. > > I usually test with "apm -s" ... since I've yet to come up with > an ACPI configuration that works properly. IRQ misconfiguration > for USB is still a blocking issue for many people (

[linux-usb-devel] Re: OHCI problems with suspend/resume

2003-07-24 Thread Pavel Machek
Hi! > > In 2.6.0-test1, OHCI is non-functional after first suspend/resume, and > > kills machine during secon suspend/resume cycle. > > I experience similar problems with UHCI: Strange, UHCI worked for me last time I tried. I'll try again soon...

[linux-usb-devel] Re: PATCH: (as71) Rename usb_connect() to usb_choose_address()

2003-07-24 Thread Alan Stern
On Thu, 24 Jul 2003, David Brownell wrote: > Alan Stern wrote: > > > > If David agrees, this is ready to be applied. > > Looks fine to me except that register_root_hub() shouldn't > set a potentially bogus (at high speed) bMaxPacketSize0: > > > + usb_dev->descriptor.bMaxPacketSize0 = 8; > >

Re: [linux-usb-devel] Re: More questions/comments about the UHCIdriver

2003-07-24 Thread Alan Stern
On Thu, 24 Jul 2003, David Brownell wrote: > >>>It'd also be good to let USB device drivers know the biggest iso period > >>>that can be scheduled. It's not necessarily the same as the biggest > >>>interrupt period, and on EHCI it's also configurable. Otherwise drivers > >>>will not be able to t

Re: [linux-usb-devel] System stalls using usb-storage

2003-07-24 Thread kri
> Where did you see an option to 'enable extra checks in new queueing > code'? In the SCSI section ^^;; Sorry I forgot to mention that. (and that after correctng my mail TWICE X( ) -- Today is Setting Orange, the 59th day of Confusion in the YOLD 3169 pgp0.pgp Description: PGP signature

[linux-usb-devel] Re: PATCH: (as71) Rename usb_connect() to usb_choose_address()

2003-07-24 Thread David Brownell
Alan Stern wrote: If David agrees, this is ready to be applied. Looks fine to me except that register_root_hub() shouldn't set a potentially bogus (at high speed) bMaxPacketSize0: + usb_dev->descriptor.bMaxPacketSize0 = 8; 64 is legal for both full and high speed root hubs. (There's no such thing

[linux-usb-devel] [patch 2.6.0-test1] usbnet: zaurus c-750, motorola sb4100, cleanup

2003-07-24 Thread David Brownell
This patch: - Makes the cdc code handle a Motorola cable modem that stores CDC descriptors in the wrong place. The workaround might be helpful for other hardware too. (This was a 2.4 regression.) - Recognizes another Zaurus (PXA 255 based clamshell, not yet sold by Sharp in the US).

[linux-usb-devel] PATCH: (as71) Rename usb_connect() to usb_choose_address()

2003-07-24 Thread Alan Stern
This patch renames usb_connect() to usb_choose_address(). It also adds equivalent functionality for root hubs into usb_register_root_hub() so that host controller drivers won't need to call it. That makes the function internal to usbcore, so it's not exported any more. Since the hc_simple dri

Re: [linux-usb-devel] USB device not accepting new address=* (error=-71)

2003-07-24 Thread David Brownell
Vedran Rodic wrote: indefinitely: hub.c: new USB device 00:12.2-1, assigned address 2 usb.c: USB device not accepting new address=2 (error=-71) hub.c: new USB device 00:12.2-1, assigned address 3 usb.c: USB device not accepting new address=3 (error=-71) It turns out this is a hardware problem. W

[linux-usb-devel] usb-serial generic driver and Cypress bulk endpoint tests

2003-07-24 Thread Charles Lepple
I was looking at using the generic usb-serial driver as a debug console, and so I tried a simple loopback test. I doubt I got all the config registers set up correctly, but to double-check, I loaded Cypress's bulktest firmware (which copies everything from EP2OUT to EP2IN) and couldn't get that to

Re: [linux-usb-devel] Re: re: usb-ohci & kernel oops

2003-07-24 Thread David Brownell
Ferenc-Jan wrote: You're not making sense to me. If it fails in the same way, it oopses; if it doesn't oops, you've got a different failure. My apologies, I quoted too little of my previous posts. The "Subject:" ought to suffice. In setting up bluetooth networking something fails and connect

Re: [linux-usb-devel] Re: More questions/comments about the UHCIdriver

2003-07-24 Thread David Brownell
It'd also be good to let USB device drivers know the biggest iso period that can be scheduled. It's not necessarily the same as the biggest interrupt period, and on EHCI it's also configurable. Otherwise drivers will not be able to tell in advance what requests are legal. Is it always as large or

Re: [linux-usb-devel] System stalls using usb-storage

2003-07-24 Thread Matthew Dharm
Where did you see an option to 'enable extra checks in new queueing code'? Matt On Thu, Jul 24, 2003 at 07:52:50PM +0200, kri wrote: > > Many people, including myself, have observed system stalls when using > > usb-storage. It happens when copying large amounts of data to a USB > > device-- ever

Re: [linux-usb-devel] USB device not accepting new address=* (error=-71)

2003-07-24 Thread Vedran Rodic
On Wed, Jul 16, 2003 at 08:13:32PM +0200, Vedran Rodic wrote: > Hi > > When connecting the usb storage device to USB 2 VIA host controller > I get these messages repeated (with address incremented by one) > indefinitely: > > hub.c: new USB device 00:12.2-1, assigned address 2 > usb.c: USB device

Re: [linux-usb-devel] host controller process error: who done it?

2003-07-24 Thread Alan Stern
On Fri, 18 Jul 2003, Duncan Sands wrote: > Hi Alan, Johannes, how about this? I tried to make as few changes to the > existing code as possible. In my opinion it would make more sense to have > the list of TDs belong to the QH and not the urb_priv, and free them when the > QH is freed, but that

Re: [linux-usb-devel] Re: More questions/comments about the UHCIdriver

2003-07-24 Thread Alan Stern
On Thu, 24 Jul 2003, Johannes Erdfelt wrote: > On Thu, Jul 24, 2003, David Brownell <[EMAIL PROTECTED]> wrote: > > Johannes Erdfelt wrote: > > > This should probably go into the core since every HCD needs it to be set > > > to 0. > > > > If we keep it, yes. But the only use of error_count seems

Re: [linux-usb-devel] System stalls using usb-storage

2003-07-24 Thread kri
> Many people, including myself, have observed system stalls when using > usb-storage. It happens when copying large amounts of data to a USB > device-- everything (except the USB access) just stops for a little > while. My best guess is that the block cache is filling up (easy since Confirmed.

Re: [linux-usb-devel] Re: More questions/comments about the UHCIdriver

2003-07-24 Thread David Brownell
Johannes Erdfelt wrote: On Thu, Jul 24, 2003, David Brownell <[EMAIL PROTECTED]> wrote: Johannes Erdfelt wrote: This should probably go into the core since every HCD needs it to be set to 0. If we keep it, yes. But the only use of error_count seems to be in debug printk() calls ... is there a re

Re: [linux-usb-devel] Re: More questions/comments about the UHCI driver

2003-07-24 Thread Johannes Erdfelt
On Thu, Jul 24, 2003, David Brownell <[EMAIL PROTECTED]> wrote: > Johannes Erdfelt wrote: > > This should probably go into the core since every HCD needs it to be set > > to 0. > > If we keep it, yes. But the only use of error_count seems to be > in debug printk() calls ... is there a real reason

Re: [linux-usb-devel] Re: More questions/comments about the UHCIdriver

2003-07-24 Thread David Brownell
Johannes Erdfelt wrote: My brain wasn't functioning well. error_count has been in since 2.4. It's just as broken in uhci.o. In fact it seems like only ehci and the sl811hs code initialize it... two drivers, curiously enough, where the ISO code doesn't work so well. This should probably go into th

Re: [linux-usb-devel] OHCI problems with suspend/resume

2003-07-24 Thread David Brownell
Pavel Machek wrote: Hi! Good morning to you too! In 2.6.0-test1, OHCI is non-functional after first suspend/resume, and kills machine during secon suspend/resume cycle. Hmm, last time I tested suspend/resume it worked fine. That was 2.5.67, but the OHCI code hasn't had any relevant changes since

[linux-usb-devel] Re: More questions/comments about the UHCI driver

2003-07-24 Thread Johannes Erdfelt
On Thu, Jul 24, 2003, Alan Stern <[EMAIL PROTECTED]> wrote: > On Wed, 23 Jul 2003, Johannes Erdfelt wrote: > > > > UHCI does not initialize urb->error_count to 0 anywhere. Again, > > > that probably ought to be done in usb_submit_urb(), anyway. > > > > I must have missed when urb->error_count

[linux-usb-devel] Re: More questions/comments about the UHCI driver

2003-07-24 Thread Alan Stern
On Wed, 23 Jul 2003, Johannes Erdfelt wrote: > > UHCI does not initialize urb->error_count to 0 anywhere. Again, > > that probably ought to be done in usb_submit_urb(), anyway. > > I must have missed when urb->error_count was added. What is it for? Why > didn't the patch that added it implem

[linux-usb-devel] Re: OHCI problems with suspend/resume

2003-07-24 Thread Dominik Brugger
Hello again, I have a few things to add: 1) If uhci_hcd was never loaded before suspend, one has to press a key on the keyboard after `echo 3 > /proc/acpi/sleep` in order to get the machine suspended. Wakeup does not work in that case, reboot required. 2) It makes no difference whether the Log

[linux-usb-devel] Re: OHCI problems with suspend/resume

2003-07-24 Thread Dominik Brugger
> In 2.6.0-test1, OHCI is non-functional after first suspend/resume, and > kills machine during secon suspend/resume cycle. I experience similar problems with UHCI: Before suspending to S3 I unload usb modules and afterwards I reload them, but it does not work again. (For testing I also plugged

Re: [linux-usb-devel] OHCI problems with suspend/resume

2003-07-24 Thread Pavel Machek
Hi! > >In 2.6.0-test1, OHCI is non-functional after first suspend/resume, and > >kills machine during secon suspend/resume cycle. > > Hmm, last time I tested suspend/resume it worked fine. > That was 2.5.67, but the OHCI code hasn't had any > relevant changes since then. > Evidently your system

Re: [linux-usb-devel] pwc stops if the system is loaded

2003-07-24 Thread Detlef Schmicker \(Siebertz Electronic GmbH\)
Hello after a couple of days, I am quite sure, that the problem is fixed (or at least makes it less critical) by the patch you send me. I have still problems in case of bad USB connection, as far as I understand it (on my PCB there is not the very best wirering of the USB connection). This seems t