[linux-usb-devel] [PATCH] USB: don't allocate dma pools for PIO HCDs

2005-11-24 Thread Chris Humbert
USB: don't allocate dma pools for PIO HCDs hcd_buffer_alloc() and hcd_buffer_free() have a similar dma_mask check and revert to kmalloc()/kfree(), but hcd_buffer_create() doesn't check dma_mask and allocates unused dma pools. Signed-off-by: Chris Humbert <[EMAIL PROTECTED]> diff --git a/drivers/

Re: [linux-usb-devel] Linux USB Driver...

2005-11-24 Thread Greg KH
On Fri, Nov 25, 2005 at 09:39:05AM +0530, Kiran Jammula wrote: > Hi, > > I am new to Linux USB Subsystem. I have to develop driver for downloadign > the Images from PC to a Board. Board is supplied with Windows baed USB > driver to download. I have to Implement the same in Linux. Now my probe >

Re: [linux-usb-devel] PL2303 base USB to SERIAL cable on kernel 2.6.14-1.1637_FC4 - reenabling (changing ttyUSB*)

2005-11-24 Thread Greg KH
On Wed, Nov 23, 2005 at 10:49:09PM +0100, Zden?k Habala wrote: > > hub 2-0:1.0: port 2 disabled by hub (EMI?), re-enabling... > > usb 2-2: USB disconnect, address 2 > > PL-2303 ttyUSB0: PL-2303 converter now disconnected from ttyUSB0 > > pl2303 2-2:1.0: device disconnected You have a flaky con

[linux-usb-devel] Linux USB Driver...

2005-11-24 Thread Kiran Jammula
Hi, I am new to Linux USB Subsystem. I have to develop driver for downloadign the Images from PC to a Board. Board is supplied with Windows baed USB driver to download. I have to Implement the same in Linux. Now my probe function is being called when ever the boad is connected to PC. But I did

[linux-usb-devel] Re: [Linux-usb-users] Question

2005-11-24 Thread Ajay Jain
Alan Stern wrote: > On Thu, 24 Nov 2005, Ajay Jain wrote: > > >>Alan Stern wrote: >> >> >>>On Wed, 23 Nov 2005, Ajay Jain wrote: >>> >>> >>> Hi, I am doing a USB Host driver for my h/w on an arm board on linux. My question is regarding interrupt urbs. Are these things periodic?

Re: [linux-usb-devel] [PATCH] Fix locking for USB suspend/resume

2005-11-24 Thread Benjamin Herrenschmidt
On Thu, 2005-11-24 at 18:18 -0500, Alan Stern wrote: > On Fri, 25 Nov 2005, Benjamin Herrenschmidt wrote: > > > Ok, so my driver should dpm_runtime_suspend() on itself, which will > > cause the driver->suspend() routine to be called from which I can then > > call usb_suspend_device(), right ? > >

[linux-usb-devel] Re: [Linux-usb-users] Question

2005-11-24 Thread Alan Stern
On Thu, 24 Nov 2005, Ajay Jain wrote: > Alan Stern wrote: > > > On Wed, 23 Nov 2005, Ajay Jain wrote: > > > > > >>Hi, > >> > >>I am doing a USB Host driver for my h/w on an arm board on linux. My > >>question is regarding interrupt urbs. Are these things periodic? I mean > >>if I get an interru

Re: [linux-usb-devel] [PATCH] Fix locking for USB suspend/resume

2005-11-24 Thread Alan Stern
On Fri, 25 Nov 2005, Benjamin Herrenschmidt wrote: > Ok, so my driver should dpm_runtime_suspend() on itself, which will > cause the driver->suspend() routine to be called from which I can then > call usb_suspend_device(), right ? It's hard to answer your question, partly because you haven't expl

[linux-usb-devel] Re: [Linux-usb-users] Question

2005-11-24 Thread Ajay Jain
Alan Stern wrote: > On Wed, 23 Nov 2005, Ajay Jain wrote: > > >>Hi, >> >>I am doing a USB Host driver for my h/w on an arm board on linux. My >>question is regarding interrupt urbs. Are these things periodic? I mean >>if I get an interrupt urb done from the h/w and I call the >>urb->complete, t

Re: [linux-usb-devel] [PATCH] Fix locking for USB suspend/resume

2005-11-24 Thread Benjamin Herrenschmidt
> The infrastructure for dynamic local PM hasn't been created yet, so for > now you can do pretty much whatever you like. Not long ago David added a > usb_suspend_root_hub routine to usbcore to help with such things; I don't > know if you will want to use it. > > The safest thing is to call d

Re: [linux-usb-devel] [PATCH] Fix locking for USB suspend/resume

2005-11-24 Thread Alan Stern
On Fri, 25 Nov 2005, Benjamin Herrenschmidt wrote: > On Mon, 2005-11-21 at 11:58 -0500, Alan Stern wrote: > > Greg: > > > > The earlier USB locking updates didn't touch the suspend/resume routines. > > They need updating as well, since now the caller holds the device > > semaphore. This patch

Re: [linux-usb-devel] [PATCH] Fix locking for USB suspend/resume

2005-11-24 Thread Benjamin Herrenschmidt
On Mon, 2005-11-21 at 11:58 -0500, Alan Stern wrote: > Greg: > > The earlier USB locking updates didn't touch the suspend/resume routines. > They need updating as well, since now the caller holds the device > semaphore. This patch (as608) makes the necessary changes. It also adds > a line to s

Re: [linux-usb-devel] Re: /dev/sr0 not ready, but working

2005-11-24 Thread Alan Stern
On Thu, 24 Nov 2005, Mark Lord wrote: > Jeff Garzik wrote: > > The difference is between ide-cd.c and sr.c, most likely. > > Agreed. I get hundreds and hundreds of these when simply playing a DVD: > > sr0: CDROM not ready. Make sure there is a disc in the drive. > > Nothing really wrong here

[linux-usb-devel] Re: usbmon question

2005-11-24 Thread Alan Stern
On Wed, 23 Nov 2005, Pete Zaitcev wrote: > On Tue, 15 Nov 2005 16:08:08 -0500 (EST), Alan Stern <[EMAIL PROTECTED]> > wrote: > > > /* > > * Bulk is easy to shortcut reliably. > > * XXX Other pipe types need consideration. Currently, we overdo it > > * and collect garbage for

[linux-usb-devel] Re: [Linux-usb-users] Question

2005-11-24 Thread Alan Stern
On Wed, 23 Nov 2005, Ajay Jain wrote: > Hi, > > I am doing a USB Host driver for my h/w on an arm board on linux. My > question is regarding interrupt urbs. Are these things periodic? I mean > if I get an interrupt urb done from the h/w and I call the > urb->complete, then do I have to resubmit t

[linux-usb-devel] Starting a program with hotplug?

2005-11-24 Thread Guenther . Obrist
Hello! I would like to start a C-Server for my USB-Device every time it is plugged on. I tried it using udev but this did not work. I used as example to call the shell which starts eclipse: BUS="usb", SYSFS{serial}="1.0.0", NAME="usb/%k", SYMLINK= "usb/Moeller_HID_GW", PROGRAM="/usr/bin/eclips

Re: [linux-usb-devel] Re: /dev/sr0 not ready, but working

2005-11-24 Thread Mark Lord
Jeff Garzik wrote: On Tue, Nov 22, 2005 at 01:56:39PM -0500, Alan Stern wrote: .. Or maybe not... Maybe the drive _does_ send those "not ready" messages and the IDE driver ignores them instead of printing them in the system log. Or perhaps those messages are sent by the bus interface control

Re: [linux-usb-devel] Re: USB CDC WMC Device Management - Sony Ericsson 600i

2005-11-24 Thread Alex Kanavin
On Thu, 24 Nov 2005, Oliver Neukum wrote: It definitely does not belong into CDC ACM. It might be possible and is preferable to use this with libusb. However security concerns may force you to write a kernel driver. Do you have a link to the spec? Google doesn't get me anything usefull. The sp

Re: [linux-usb-devel] Re: USB CDC WMC Device Management - Sony Ericsson 600i

2005-11-24 Thread Oliver Neukum
Am Mittwoch, 23. November 2005 22:30 schrieb Alex Kanavin: > >> What would be the best way to support those? Since this interface seems > >> to speak the standard v.25ter AT set, would it make sense to just add > >> it to the cdc_acm driver? > > Is this the whole descriptor? cdc_acm will not work