Re: [linux-usb-devel] drivers/usb/misc/iowarrior.c : timeouts too small in usb_control_msg calls

2007-04-19 Thread Eberhard Fahle
On Thursday 05 April 2007 11:13:21 Eberhard Fahle wrote: > The driver uses usb_control_msg() for exchanging data with the device. > When the driver lived freeley _outside_ the kernel tree (pre 2.6.21) the > timeouts for these calls where set to 5*HZ for reading, 1HZ for writing. > (These timeouts s

Re: [linux-usb-devel] Is libusb dead?

2007-04-19 Thread Oliver Neukum
Am Mittwoch, 18. April 2007 22:59 schrieb Pete Zaitcev: > On Wed, 18 Apr 2007 18:08:48 +0200, Oliver Neukum <[EMAIL PROTECTED]> wrote: > > > Am Mittwoch, 18. April 2007 17:54 schrieb Mike Panetta: > > > Just out of curiosity, why do we want to get rid of ioctl calls? > > > For a number of reason

[linux-usb-devel] [PATCH 2/3]USB: update gadget files for fsl_usb2_udc driver

2007-04-19 Thread Li Yang
Update Kconfig, Makefile, gadget_chip.c, ether.c for newly added Freescale Highspeed USB device driver. Signed-off-by: Li Yang <[EMAIL PROTECTED]> --- drivers/usb/gadget/Kconfig| 21 + drivers/usb/gadget/Makefile |1 + drivers/usb/gadget/ether.c|

[linux-usb-devel] [PATCH 3/3]USB: update MAINAINERS and CREDITS

2007-04-19 Thread Li Yang
Add MAINAINERS and CREDITS entry for Freescale Highspeed USB device driver. Signed-off-by: Li Yang <[EMAIL PROTECTED]> --- CREDITS |8 MAINTAINERS |7 +++ 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/CREDITS b/CREDITS index 6bd8ab8..276ae8c 100644 ---

[linux-usb-devel] Kernel Oopses in serial Gadget

2007-04-19 Thread Thomas Brinker
Hi! We are facing here kernel oopes in the USB-Gadget driver serial. Quiet seldomly the kernel oopses during heavy load on the serial line. The pc value of the Oops points not always to the same function, but always near to places where the list &dev->dev_req_list is in use. So we got the idea

Re: [linux-usb-devel] Kernel Oopses in serial Gadget

2007-04-19 Thread Oliver Neukum
Am Donnerstag, 19. April 2007 12:50 schrieb Thomas Brinker: > Hi! > > We are facing here kernel oopes in the USB-Gadget driver serial. > > Quiet seldomly the kernel oopses during heavy load on the serial line. > > The pc value of the Oops points not always to the same function, but always > nea

Re: [linux-usb-devel] Request for assistance

2007-04-19 Thread Mark Glassberg
I installed a 2.6.21-rc7 kernel with USB_DEBUG=y and USB_NET_RNDIS_HOST=y. Unfortunately, my dsl modem/router is not yet installed. Attached are the dmesg output, the detailed lsusb output, and the related section of the /proc/bus/usb/devices file. The latter shows no driver for the device, but d

Re: [linux-usb-devel] Request for assistance

2007-04-19 Thread Oliver Neukum
Am Donnerstag, 19. April 2007 14:07 schrieb Mark Glassberg: > I installed a 2.6.21-rc7 kernel with USB_DEBUG=y and USB_NET_RNDIS_HOST=y. > Unfortunately, my dsl modem/router is not yet installed. Attached are the > dmesg output, the detailed lsusb output, and the related section of the > /proc/bus

Re: [linux-usb-devel] Request for assistance

2007-04-19 Thread Mark Glassberg
I did EXACTLY as instructed. The compilation ended with this: make[3]: *** [drivers/usb/net/cdc_ether.o] Error 1 make[2]: *** [drivers/usb/net] Error 2 make[1]: *** [drivers/usb] Error 2 make: *** [drivers] Error 2 My modified cdc_ether.c is attached. Sorry, Mark On Thu, Apr 19, 2007 at 02:51:1

Re: [linux-usb-devel] Request for assistance

2007-04-19 Thread Oliver Neukum
Am Donnerstag, 19. April 2007 15:28 schrieb Mark Glassberg: > I did EXACTLY as instructed. The compilation ended with this: > make[3]: *** [drivers/usb/net/cdc_ether.o] Error 1 > make[2]: *** [drivers/usb/net] Error 2 > make[1]: *** [drivers/usb] Error 2 > make: *** [drivers] Error 2 > > My modif

Re: [linux-usb-devel] Request for assistance

2007-04-19 Thread Mark Glassberg
Your cdc_ether.c certainly helped. I am attaching the latest dmesg, lsusb, and usbdevices files. Unfortunately, as you can see from the latter file, I only have a driver for the comm side of the device, but none for the data side. As always, any assistance would be most welcome. Thanks again, Ma

[linux-usb-devel] how can i use usb_skeleton.c

2007-04-19 Thread nesta
hi all, 1. is skeleton.c a host driver? second i want to ask about the steps for using skeleton.c with my device which is OMAP kit. 1) i should change the vendor id and product id to be like the id of my kit. 2) mknod my_dev_node -c 180 0 3)in my user space application i can open (my_dev_node

[linux-usb-devel] Gadgetfs patch

2007-04-19 Thread Amrut Joshi
Hello, I am doing some work with gadgetfs and have fixed some bugs. I am attaching the patch here. It was not support highspeed endpoints in some of the functions and ep->driver_data was dereferenced to dev_data instead of ep_data in some fuctions. Patch is against 2.6.20.7 kernel. I am not sub

Re: [linux-usb-devel] current state of USB SUSPEND?

2007-04-19 Thread Jeroen Janssen
On 4/18/07, Alan Stern <[EMAIL PROTECTED]> wrote: > And to answer Jeroen's question: Yes, USB devices should be suspended > automatically by the kernel when you suspend-to-ram. You don't need to do > anything manually to suspend them. Thanks! It's good to hear this to working. I was slightly conf

Re: [linux-usb-devel] Request for assistance (2Wire netdev)

2007-04-19 Thread David Brownell
On Thursday 19 April 2007 5:07 am, Mark Glassberg wrote: > rndis_host 3-1:1.0: usb_probe_interface > rndis_host 3-1:1.0: usb_probe_interface - got id > rndis_host 3-1:1.0: missing cdc header union ether descriptor > usb 3-1: bad CDC descriptors One issue is that the CDC descriptors are in the wron

Re: [linux-usb-devel] [PATCH 1/3]USB: add Freescale high-speed USB SOC device controller driver

2007-04-19 Thread David Brownell
On Thursday 19 April 2007 2:53 am, Li Yang wrote: > +static void *fsl_alloc_buffer(struct usb_ep *_ep, unsigned bytes, > +   dma_addr_t *dma, gfp_t gfp_flags) > +{ > +   void *retval = NULL; > + > +   if (!bytes) > +   return 0; > + > +   /* We alloc normal(cacha

Re: [linux-usb-devel] [PATCH 2/3]USB: update gadget files for fsl_usb2_udc driver

2007-04-19 Thread David Brownell
On Thursday 19 April 2007 2:55 am, Li Yang wrote: > Update Kconfig, Makefile, gadget_chip.c, ether.c for newly added Freescale > Highspeed USB device driver. > > Signed-off-by: Li Yang <[EMAIL PROTECTED]> > > --- > drivers/usb/gadget/Kconfig| 21 + > drivers/usb/gad

Re: [linux-usb-devel] Request for assistance (2Wire netdev)

2007-04-19 Thread David Brownell
On Thursday 19 April 2007 10:48 am, David Brownell wrote: > But after Oliver's hack, there was still: > > > rndis_host 3-1:1.0: dev can't take 1558 byte packets (max 0) > > And that means something else: the device took the RNDIS > initialization request, but didn't return a sane response. > So

Re: [linux-usb-devel] Machine check in ohci_hub_status_data (powerpc)

2007-04-19 Thread David Brownell
On Wednesday 18 April 2007 8:42 am, Alan Stern wrote: > On Wed, 18 Apr 2007, Johannes Berg wrote: > > The comparable routine in uhci-hcd includes this code: > > if (!test_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags) || uhci->dead) > goto done; > > and likewise, ehci_hub_status_d

Re: [linux-usb-devel] [PATCH pd54] Remove Huawei unusual_devs entry

2007-04-19 Thread linlei 60022748
Hi everyone, We consider it's not the appropriate status of E220 which has no CD-ROM. In MS-Windows, while plug the device into PC with the driver already installed, the OS will send a SET_FEATURE command to it. Then our device receives the signal and switchs from one CD-ROM to one CD-ROM + two

Re: [linux-usb-devel] how can i use usb_skeleton.c

2007-04-19 Thread Alan Stern
On Thu, 19 Apr 2007, nesta wrote: > hi all, > > 1. is skeleton.c a host driver? It is an example of how to write a USB device driver. However it does run on the host computer, if that's what you want to know. > second i want to ask about the steps for using skeleton.c with my device > which

Re: [linux-usb-devel] how can i use usb_skeleton.c

2007-04-19 Thread Wael Adel
On 4/19/07, Alan Stern <[EMAIL PROTECTED]> wrote: > On Thu, 19 Apr 2007, nesta wrote: > > > hi all, > > > > 1. is skeleton.c a host driver? > > It is an example of how to write a USB device driver. However it does run > on the host computer, if that's what you want to know. yes, that is what i wa

Re: [linux-usb-devel] how can i use usb_skeleton.c

2007-04-19 Thread Alan Stern
On Thu, 19 Apr 2007, Wael Adel wrote: > Sorry may be i just express what i want in a wrong way so again what i > want is to load skeleton driver on my host computer side then make it > communicate with my OMAP kit. > > so i think this could be the steps for using skeleton driver: > 1) i should ch

Re: [linux-usb-devel] Machine check in ohci_hub_status_data (powerpc)

2007-04-19 Thread Benjamin Herrenschmidt
> The comparable routine in uhci-hcd includes this code: > > if (!test_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags) || uhci->dead) > goto done; > > and likewise, ehci_hub_status_data() includes this: > > if (!HC_IS_RUNNING(hcd->state)) > return 0; > > Someth

Re: [linux-usb-devel] how can i use usb_skeleton.c

2007-04-19 Thread Wael Adel
On 4/19/07, Alan Stern <[EMAIL PROTECTED]> wrote: > On Thu, 19 Apr 2007, Wael Adel wrote: > > > Sorry may be i just express what i want in a wrong way so again what i > > want is to load skeleton driver on my host computer side then make it > > communicate with my OMAP kit. > > > > so i think this

Re: [linux-usb-devel] how can i use usb_skeleton.c

2007-04-19 Thread Alan Stern
On Thu, 19 Apr 2007, Wael Adel wrote: > suppose that i have 2 different applications on the host and both > talks to the OMAP device so i can achieve this by making 2 device > nodes with different minor numbers or what? You don't have to do anything. Use one device node with one minor number an

Re: [linux-usb-devel] [PATCH 1/3]USB: add Freescale high-speed USB SOC device controller driver

2007-04-19 Thread Li Yang-r58472
Hi Dave, > -Original Message- > From: David Brownell [mailto:[EMAIL PROTECTED] > Sent: Friday, April 20, 2007 2:24 AM > To: Li Yang-r58472 > Cc: [EMAIL PROTECTED]; linux-usb-devel@lists.sourceforge.net; Schmid > Bruce-R62923 > Subject: Re: [PATCH 1/3]USB: add Freescale high-speed USB SOC

Re: [linux-usb-devel] [PATCH 1/3]USB: add Freescale high-speed USB SOC device controller driver

2007-04-19 Thread David Brownell
On Thursday 19 April 2007 7:53 pm, Li Yang-r58472 wrote: > Hi Dave, > > > -Original Message- > > From: David Brownell [mailto:[EMAIL PROTECTED] > > Sent: Friday, April 20, 2007 2:24 AM > > To: Li Yang-r58472 > > Cc: [EMAIL PROTECTED]; linux-usb-devel@lists.sourceforge.net; Schmid > > Bruc

Re: [linux-usb-devel] [PATCH 1/3]USB: add Freescale high-speed USB SOC device controller driver

2007-04-19 Thread Li Yang-r58472
> -Original Message- > From: David Brownell [mailto:[EMAIL PROTECTED] > Sent: Friday, April 20, 2007 11:20 AM > To: linux-usb-devel@lists.sourceforge.net > Cc: Li Yang-r58472; [EMAIL PROTECTED]; Schmid Bruce-R62923 > Subject: Re: [linux-usb-devel] [PATCH 1/3]USB: add Freescale high-speed US

Re: [linux-usb-devel] [PATCH 1/3]USB: add Freescale high-speed USB SOC device controller driver

2007-04-19 Thread David Brownell
On Thursday 19 April 2007 8:56 pm, Li Yang-r58472 wrote: > > > > > On Thursday 19 April 2007 2:53 am, Li Yang wrote: > > > > > +static void *fsl_alloc_buffer(struct usb_ep *_ep, unsigned bytes, > > > > > +   dma_addr_t *dma, gfp_t gfp_flags) > > > > > +{... > > > > > +} > > > > > > > >

Re: [linux-usb-devel] [Bugme-new] [Bug 8297] New: ldusb returns bad data on subsequent reads if no data is available.

2007-04-19 Thread Andrew Morton
On Tue, 17 Apr 2007 23:35:03 +0200 Oliver Neukum <[EMAIL PROTECTED]> wrote: > Am Dienstag, 17. April 2007 18:15 schrieb Alan Stern: > > On Tue, 17 Apr 2007, Oliver Neukum wrote: > > > > > > It looks like you are missing brackets around the else case. > > > > > > Which else case? > > > > The "de

Re: [linux-usb-devel] [PATCH 1/3]USB: add Freescale high-speed USB SOC device controller driver

2007-04-19 Thread Li Yang-r58472
> -Original Message- > From: David Brownell [mailto:[EMAIL PROTECTED] > Sent: Friday, April 20, 2007 12:53 PM > To: Li Yang-r58472 > Cc: linux-usb-devel@lists.sourceforge.net; [EMAIL PROTECTED]; Schmid > Bruce-R62923 > Subject: Re: [linux-usb-devel] [PATCH 1/3]USB: add Freescale high-speed

[linux-usb-devel] ISP1761 Porting from Linux-2.6.9 to Linux2.6.18

2007-04-19 Thread Prabhakar Kalasani
Hi all, I'm trying to port ISP1761 Linux-2.6.9 PCI Host Stack released by Philips/NXP (http://sourceforge.net/projects/isp176x-hcd) to Linux-2.6.18 ISP1761 PCI Host , I took Bernard Blackham's port on PXA Linux-2.6.17 ( http://www.ucc.asn.au/~dagobah/isp1761/) I get an error, [EMAIL PROTECTE