Re: [linux-usb-devel] USB on alpha

2006-01-12 Thread Arjan van de Ven
On Thu, 2006-01-12 at 23:33 -0800, Andrew Morton wrote: > David Brownell <[EMAIL PROTECTED]> wrote: > > > > On Wednesday 11 January 2006 2:54 am, Andrew Morton wrote: > > > > > > I'm getting bored of fixing these things. It's someone else's turn ;) > > > > Here's a patch that should solve the

Re: [linux-usb-devel] USB on alpha

2006-01-12 Thread Andrew Morton
David Brownell <[EMAIL PROTECTED]> wrote: > > On Wednesday 11 January 2006 2:54 am, Andrew Morton wrote: > > > > I'm getting bored of fixing these things. It's someone else's turn ;) > > Here's a patch that should solve the net2280 one, Danke. > but I'm not clear why this one happens: Beca

Re: [linux-usb-devel] USB on alpha

2006-01-12 Thread David Brownell
On Wednesday 11 January 2006 2:54 am, Andrew Morton wrote: > > I'm getting bored of fixing these things. It's someone else's turn ;) Here's a patch that should solve the net2280 one, but I'm not clear why this one happens: > drivers/usb/gadget/inode.c: In function `gadgetfs_fill_super': > drive

Re: [linux-usb-devel] Regarding non-PCI based HCD implementation .

2006-01-12 Thread Chris Humbert
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2006-01-12 05:19]: > An OHCI interface works by having a set of 32 bit registers in > an IO or memory window, and various data structures in host RAM . > PCMCIA/CF is too limited an interface for the device to gain access to > host RAM, so, the

[linux-usb-devel] USB HUB port power control from user space

2006-01-12 Thread NIIBE Yutaka
Thanks for your time. Alan Stern wrote: > You must not have sent a Set-Port-Feature request. This warning gets > invoked only when the recipient part of bRequestType is ENDPOINT or > INTERFACE, and for Set-Port-Feature the recipient is OTHER. [...] > You are allowed to send control messages whose

Re: [linux-usb-devel] Fw: USB problem after upgrade from 2.6.12.6 to 2.6.15

2006-01-12 Thread David Ronis
That was it. Thanks for the help. David On Tue, 2006-01-10 at 10:07 -0500, Alan Stern wrote: > On Mon, 9 Jan 2006, Andrew Morton wrote: > > > Begin forwarded message: > > > > Date: Sun, 08 Jan 2006 21:44:01 -0500 > > From: David Ronis <[EMAIL PROTECTED]> > > To: linux-kernel@vger.kernel.org >

[linux-usb-devel] Re: USB/SCSI slab corruption.

2006-01-12 Thread James Bottomley
On Thu, 2006-01-12 at 18:36 -0500, Dave Jones wrote: > > SCSI device sdb: 321672960 512-byte hdwr sectors (164697 MB) > > slab error in cache_free_debugcheck(): cache `sgpool-8': double free, or > > memory outside object was overwritten > > [] cache_free_debugcheck+0x1ab/0x22f [] > >

Re: [linux-usb-devel] Regarding non-PCI based HCD implementation .

2006-01-12 Thread David Brownell
On Thursday 12 January 2006 5:18 am, [EMAIL PROTECTED] wrote: > > Hello , > > I have a PCMCIA multifunction card with a USB port and a serial port. > The USB controller on the card is OHCI-similar however it has the > following peculiarity - > An OHCI interface works by having a set of 3

[linux-usb-devel] Re: USB/SCSI slab corruption.

2006-01-12 Thread Stefan Richter
Dave Jones wrote: A nasty 2.6.15 report from one of our Fedora users. Dave > then when it got to map my USB drive: > SCSI device sdb: 321672960 512-byte hdwr sectors (164697 MB) > slab error in cache_free_debugcheck(): cache `sgpool-8': double free, or > memory outside ob

[linux-usb-devel] USB/SCSI slab corruption.

2006-01-12 Thread Dave Jones
A nasty 2.6.15 report from one of our Fedora users. Dave > then when it got to map my USB drive: > SCSI device sdb: 321672960 512-byte hdwr sectors (164697 MB) > slab error in cache_free_debugcheck(): cache `sgpool-8': double free, or > memory outside object was overwritten

Re: [linux-usb-devel] [patch/rft 2.6.recent] ehci and unlink processing

2006-01-12 Thread David Brownell
(For the onlookers ... try this patch even if it doesn't solve Rene's problem. I know other folk have had unlinking issues, and it's more probable that this patch will improve those behaviors ...) On Thursday 12 January 2006 1:38 pm, Rene Herman wrote: >Very noisy obviously, but once thi

[linux-usb-devel] Re: [PATCH] usbhid: interpret error codes correctly

2006-01-12 Thread Alan Stern
On Thu, 12 Jan 2006, Willi Mann wrote: > > Willi, perhaps you can try this patch in place of the one I sent you > > earlier. Hopefully it will work just as well; if it doesn't please let us > > know. > And I had to reboot because the machine froze. (no mouse, no keyboard, > no network, frozen

Re: [linux-usb-devel] [patch/rft 2.6.recent] ehci and unlink processing

2006-01-12 Thread Rene Herman
David Brownell wrote: Darn, I was hoping ... solving that one seems like it may need a PCI analyser. Either there's some bizarre path where the driver is turning that schedule on/off, or the controller itself is doing that. Unless there's a clue somewhere in an email I've not yet read, then I'

[linux-usb-devel] Re: [PATCH] usbhid: interpret error codes correctly

2006-01-12 Thread Willi Mann
Willi, perhaps you can try this patch in place of the one I sent you earlier. Hopefully it will work just as well; if it doesn't please let us know. Jan 12 21:51:51 wmiwilli kernel: usbhid 2-1:1.0: retrying intr urb Jan 12 21:52:54 wmiwilli kernel: usbhid 2-1:1.0: retrying intr urb Jan 12 21

Re: [linux-usb-devel] [patch/rft 2.6.recent] ehci and unlink processing

2006-01-12 Thread David Brownell
On Thursday 12 January 2006 6:21 am, Rene Herman wrote: > David Brownell wrote: > > > I suspect this patch will help some of the folk having issues with > > the EHCI driver not unlinking things correctly, including in > > disconnect paths. Those issues don't happen with all systems. > > > > Let

Re: [linux-usb-devel] Re: need for packed attribute

2006-01-12 Thread David Brownell
On Thursday 12 January 2006, Pete Zaitcev wrote (in another snide postscript): > > P.P.S. The USB stack was careful to use correct sizes historically. > One grep of the source will tell you that all this stench emanates from > the newer code, in particular the gadget and its attendant components,

[linux-usb-devel] Re: [PATCH 00/13] USBATM: summary

2006-01-12 Thread Duncan Sands
> I only got 2 of these, is my mail just being slow (which it does at odd > times), or did you stop sending them based on some problems on your end? I stopped sending them based on problems on my end. I'll send the rest tomorrow. Ciao, Duncan. -

[linux-usb-devel] Help: device not accepting address 10, error -110

2006-01-12 Thread Shivahshankar Shankarnarayan Rao
Hi All, I am porting linux to a custom ARM board. It has an onboard PCI USB hub. The hub is detected properly but when I plugin a keyboard it give the above mentioned error. ACPI is not enabled. Also, whenever I plugout the device and plug it back, i can see that the /proc interrupts for th

[linux-usb-devel] Re: need for packed attribute

2006-01-12 Thread Benjamin LaHaise
On Fri, Jan 06, 2006 at 06:38:46PM +, Russell King wrote: > > /* All standard descriptors have these 2 fields at the beginning */ > > struct usb_descriptor_header { > > __u8 bLength; > > __u8 bDescriptorType; > > }; > > sizeof(struct usb_descriptor_header) will be 4 on ARM. If this

[linux-usb-devel] Re: [PATCH 00/13] USBATM: summary

2006-01-12 Thread Greg KH
On Thu, Jan 12, 2006 at 05:29:51PM +0100, Duncan Sands wrote: > Hi Greg, here are some fixes and improvements to the USB ATM > modem drivers, in thirteen patches: I only got 2 of these, is my mail just being slow (which it does at odd times), or did you stop sending them based on some problems on

[linux-usb-devel] [PATCH 02/13] USBATM: add flags field

2006-01-12 Thread Duncan Sands
Have minidrivers and the core signal special requirements using a flags field in struct usbatm_data. For the moment this is only used to replace the need_heavy_init bind parameter, but there'll be new flags in later patches. Signed-off-by: Duncan Sands <[EMAIL PROTECTED]> diff -x '*.orig' -x '*.

[linux-usb-devel] Re: [PATCH 01/13] USBATM: trivial modifications

2006-01-12 Thread Duncan Sands
Sorry, it wasn't a -p1 patch (I should really automate this). Signed-off-by: Duncan Sands <[EMAIL PROTECTED]> diff -x '*.orig' -x '*.base' -u -r Linux/drivers/usb/atm.orig/cxacru.c Linux/drivers/usb/atm/cxacru.c --- Linux/drivers/usb/atm.orig/cxacru.c 2006-01-12 18:27:56.0 +0100 +++ Linux

[linux-usb-devel] Re: need for packed attribute

2006-01-12 Thread Pete Zaitcev
On Thu, 12 Jan 2006 17:26:17 +, Russell King <[EMAIL PROTECTED]> wrote: > On Thu, Jan 12, 2006 at 09:20:06AM -0800, Pete Zaitcev wrote: > > P.S. I am repeating myself as Katon, but I am yet to see why any of > > this matters. Neither Russell nor Oliver ever presented a case where > > an unpack

Re: [linux-usb-devel] Re: need for packed attribute

2006-01-12 Thread Russell King
On Thu, Jan 12, 2006 at 05:22:47PM +, David Vrabel wrote: > Russell King wrote: > > BTW, it's worth noting that the new EABI stuff has it's own set of > > problems. We have r0 to r6 to pass 32-bit or 64-bit arguments. > > With EABI, 64-bit arguments will be aligned to an _even_ numbered > > re

[linux-usb-devel] Re: KPC650 EVDO wireless with NEC USB -> usbserial -> ohci-hcd -> pcmcia -> pppd problem (14358294)

2006-01-12 Thread Howard Miller
You'll need to add the USB_SERIAL_OPTION to your kernel. I think the drvier was added in 2.6.12. It's under the USB Serial Converter support. see http://sourceforge.net/mailarchive/message.php?msg_id=13033838 for information about creating a patch. You'll need to add the vendor 0x0c88 and pr

[linux-usb-devel] Re: need for packed attribute

2006-01-12 Thread Russell King
On Thu, Jan 12, 2006 at 09:20:06AM -0800, Pete Zaitcev wrote: > P.S. I am repeating myself as Katon, but I am yet to see why any of > this matters. Neither Russell nor Oliver ever presented a case where > an unpacked struct caused breakage in USB. If you would like to refresh your memory (which is

Re: [linux-usb-devel] Re: need for packed attribute

2006-01-12 Thread David Vrabel
Russell King wrote: > BTW, it's worth noting that the new EABI stuff has it's own set of > problems. We have r0 to r6 to pass 32-bit or 64-bit arguments. > With EABI, 64-bit arguments will be aligned to an _even_ numbered > register. Is there a reason for this alignment requirement? David Vrabel

[linux-usb-devel] Re: need for packed attribute

2006-01-12 Thread Pete Zaitcev
On Thu, 12 Jan 2006 13:27:12 +0100 (MET), Mikael Pettersson <[EMAIL PROTECTED]> wrote: > [...] Do you have any > information about why gcc is doing this on ARM/Linux? Russell forgot to explain it, but the reason for this weirdness is real. It is so you can do things like this: struct foo {

[linux-usb-devel] Re: need for packed attribute

2006-01-12 Thread Russell King
On Thu, Jan 12, 2006 at 05:30:11PM +0100, Mikael Pettersson wrote: > OK, thanks for this info. It means that GCC is the definitive authority > on calling conventions and data layouts, not the AAPCS; I wasn't aware of > that before. BTW, it's worth noting that the new EABI stuff has it's own set of

[linux-usb-devel] [PATCH 01/13] USBATM: trivial modifications

2006-01-12 Thread Duncan Sands
Formatting, changes to variable names, comments, log level changes, printk rate limiting. Signed-off-by: Duncan Sands <[EMAIL PROTECTED]> Index: kernel/cxacru.c === --- kernel.orig/cxacru.c 2006-01-10 08:42:02.0 +0100 +++ ker

[linux-usb-devel] Re: need for packed attribute

2006-01-12 Thread Mikael Pettersson
Russell King writes: > > As fas as I can tell, the AAPCS document (v2.03 7th Oct 2005) requires > > that a simple "struct foo { unsigned char c; };" should have both size > > and alignment equal to 1, but gcc makes them both 4. Do you have any > > information about why gcc is doing this on ARM/

[linux-usb-devel] [PATCH 00/13] USBATM: summary

2006-01-12 Thread Duncan Sands
Hi Greg, here are some fixes and improvements to the USB ATM modem drivers, in thirteen patches: 01: trivial modifications (formatting, changes to variable names, comments, log level changes, printk rate limiting). 02: have minidrivers tell the core about special requirements using a flags field.

[linux-usb-devel] Re: KPC650 EVDO wireless with NEC USB -> usbserial -> ohci-hcd -> pcmcia -> pppd problem (14358294)

2006-01-12 Thread Nathan Kirk
Howard, Where is the "option" driver that you mentioned that you used with the Kyocera KPC650. I am seeing frequent stalls with the generic usbserial driver, I would like to try the "option" driver that you mentioned. Thanks, - Nathan. -- ___ Chec

Re: [linux-usb-devel] Re: 2.6.15-mm3 [USB lost interrupt bug]

2006-01-12 Thread Alan Stern
On Thu, 12 Jan 2006, Reuben Farrelly wrote: > >> Initializing USB Mass Storage driver... > >> irq 193: nobody cared (try booting with the "irqpoll" option) > >> handlers: > >> [] (usb_hcd_irq+0x0/0x56) > >> Disabling IRQ #193 > > > > USB lost its interrupt. Could be USB, more likely ACPI. > >

Re: [linux-usb-devel] resets on all USB2.0

2006-01-12 Thread Alan Stern
On Thu, 12 Jan 2006, Eildert Groeneveld,TZV,+44(0)5034-871155,+49(0)5034-4426 wrote: > It seems that I have problems with all USB2.0 devices (various sticks and > USB disk drives): > usb 4-4: new high speed USB device using ehci_hcd and address 2 > usb 4-4: new high speed USB device using ehci_hc

Re: [linux-usb-devel] USB HUB port power control from user space

2006-01-12 Thread Alan Stern
On Thu, 12 Jan 2006, NIIBE Yutaka wrote: > Alan Stern wrote: > > You have completely misunderstood David's point. You _don't_ need to > > modify the kernel at all. > > Ah, well. I should have explained what I did, I was so excited when I > succeeded to control port power. > > I think that we n

Re: [linux-usb-devel] [patch/rft 2.6.recent] ehci and unlink processing

2006-01-12 Thread Rene Herman
David Brownell wrote: I suspect this patch will help some of the folk having issues with the EHCI driver not unlinking things correctly, including in disconnect paths. Those issues don't happen with all systems. Let us know if this improves things; the patch should apply to most 2.6 kernels, t

[linux-usb-devel] Re: need for packed attribute

2006-01-12 Thread Russell King
On Thu, Jan 12, 2006 at 01:47:29PM +, Russell King wrote: > Due to lack of manpower on the Linux side (iow, more or less just me) > this became the ABI of the early ARM Linux a.out toolchain. At that > time, I did not consider this to be a problem - it wasn't a problem > as far as the kernel w

[linux-usb-devel] Re: need for packed attribute

2006-01-12 Thread Russell King
On Thu, Jan 12, 2006 at 01:27:12PM +0100, Mikael Pettersson wrote: > On Fri, 6 Jan 2006 18:38:46 +, Russell King wrote: > >> is there any architecture for which packed is required in structures like > >> this: > >> > >> /* All standard descriptors have these 2 fields at the beginning */ > >>

[linux-usb-devel] Regarding non-PCI based HCD implementation .

2006-01-12 Thread monali.katkar
Hello , I have a PCMCIA multifunction card with a USB port and a serial port. The USB controller on the card is OHCI-similar however it has the following peculiarity - An OHCI interface works by having a set of 32 bit registers in an IO or memory window, and various data structures

[linux-usb-devel] Re: need for packed attribute

2006-01-12 Thread Mikael Pettersson
On Fri, 6 Jan 2006 18:38:46 +, Russell King wrote: >> is there any architecture for which packed is required in structures like >> this: >> >> /* All standard descriptors have these 2 fields at the beginning */ >> struct usb_descriptor_header { >> __u8 bLength; >> __u8 bDescriptor

[linux-usb-devel] Re: 2.6.15-mm3 [USB lost interrupt bug]

2006-01-12 Thread Reuben Farrelly
On 12/01/2006 5:33 p.m., Andrew Morton wrote: hub 5-0:1.0: USB hub found hub 5-0:1.0: 2 ports detected Initializing USB Mass Storage driver... irq 193: nobody cared (try booting with the "irqpoll" option) [] dump_stack+0x17/0x19 [] __report_bad_irq+0x27/0x83 [] note_interrupt+0x7e/0x21d

[linux-usb-devel] resets on all USB2.0

2006-01-12 Thread Eildert Groeneveld,TZV,+44(0)5034-871155,+49(0)5034-4426
It seems that I have problems with all USB2.0 devices (various sticks and USB disk drives): usb 4-4: new high speed USB device using ehci_hcd and address 2 usb 4-4: new high speed USB device using ehci_hcd and address 20 usb 4-4: new high speed USB device using ehci_hcd and address 32 usb 4-4: new

[linux-usb-devel] [patch/rft 2.6.recent] ehci and unlink processing

2006-01-12 Thread David Brownell
I suspect this patch will help some of the folk having issues with the EHCI driver not unlinking things correctly, including in disconnect paths. Those issues don't happen with all systems. Let us know if this improves things; the patch should apply to most 2.6 kernels, this changes some pretty o