Re: [linux-usb-devel] kernel oops in case of USB serial device disconnection

2003-11-19 Thread Greg KH
On Wed, Nov 19, 2003 at 10:01:01AM +0100, Zodel Wolfgang (MPI/SFS) wrote: > Hi, > > we have built a linux kernel (version 2.4.22) with hot-plugging USB device > support: This should be fixed in 2.4.23-rc2. Please try that kernel and let me know if you still have the problem or not. thanks, gre

[linux-usb-devel] MENSALIDADE NUNCA MAIS. (TITULO REMIDO)

2003-11-19 Thread Unknown
ACADEMIA WALL STREET FITNESS (O verão está ai e você vai ficar parado...) Caro aluno, A pedidos mais uma vez no final de ano, o lançamos das cotas de (TituloRemido individual). Trata-se do que, vendemos 20 cotadas da academia Wall Street Fitness. O portador do titulo tem o direito de fazer ginás

[linux-usb-devel] MENSALIDADE NUNCA MAIS. (TITULO REMIDO)

2003-11-19 Thread Unknown
ACADEMIA WALL STREET FITNESS (O verão está ai e você vai ficar parado...) Caro aluno, A pedidos mais uma vez no final de ano, o lançamos das cotas de (TituloRemido individual). Trata-se do que, vendemos 20 cotadas da academia Wall Street Fitness. O portador do titulo tem o direito de fazer ginás

[linux-usb-devel] MENSALIDADE NUNCA MAIS. (TITULO REMIDO)

2003-11-19 Thread Unknown
ACADEMIA WALL STREET FITNESS (O verão está ai e você vai ficar parado...) Caro aluno, A pedidos mais uma vez no final de ano, o lançamos das cotas de (TituloRemido individual). Trata-se do que, vendemos 20 cotadas da academia Wall Street Fitness. O portador do titulo tem o direito de fazer ginás

Re: [linux-usb-devel] What the calling process of a USB device driver?

2003-11-19 Thread Randy.Dunlap
On Thu, 20 Nov 2003 12:09:54 +0800 lrd <[EMAIL PROTECTED]> wrote: | Randy.Dunlap wrote: | > | > How did you build the driver module? (what commands) | My make files are from the book 'Linux Device Driver 2nd Edition'. I | just change the source file name to mine. I know this book only focuses

Re: [linux-usb-devel] What the calling process of a USB device driver?

2003-11-19 Thread lrd
Randy.Dunlap wrote: How did you build the driver module? (what commands) My make files are from the book 'Linux Device Driver 2nd Edition'. I just change the source file name to mine. I know this book only focuses on 2.4, then, should I do any additional works for 2.6? BTW: These make files work

Re: [linux-usb-devel] short get_descriptor request breaks enumeration

2003-11-19 Thread lrd
Kyle Harris wrote: Hi, I'm trying to connect a scanner to my embedded linux PXA platform (2.6.0-test2 with Cypress 67300 controller). It appears the device fails to enumerate due to linux only reading 8 bytes during the initial GetDescriptor frame. The device works properly when connected to a

[linux-usb-devel] Usbnet and Zaurus (on 2.4.22)

2003-11-19 Thread don
I think I have found an error in the usbnet.c included in Linux 2.4.22. My Zaurus won't connect unless I modify this file. drivers/usb/usbnet.c has USB_DEVICE_ID_MATCH_INT_INFO set for Zaurus devices: { .match_flags= USB_DEVICE_ID_MATCH_INT_INFO | USB_

Re: [linux-usb-devel] What the calling process of a USB device driver?

2003-11-19 Thread linux
Title: Re: [linux-usb-devel] What the calling process of a USB device driver? Oliver Neukum wrote: > Am Dienstag, 18. November 2003 19:40 schrieb lrd: > >> Hi all: >> >> I\'m new to Linux device driver development and am writing a driver for my USB device. Now, I encounter severa

[linux-usb-devel] short get_descriptor request breaks enumeration

2003-11-19 Thread Kyle Harris
Hi, I'm trying to connect a scanner to my embedded linux PXA platform (2.6.0-test2 with Cypress 67300 controller). It appears the device fails to enumerate due to linux only reading 8 bytes during the initial GetDescriptor frame. The device works properly when connected to a Windoze machine, w

[linux-usb-devel] Backport of printer 2.6=>2.4

2003-11-19 Thread Pete Zaitcev
I have a couple of oops reports filed against RHL 9 & FC1, which can be attributed to printer using: while (urb->status == -EINPROGRESS) I see some lessons take a while to absorb. Fortunately, 2.6 is fixed in this regard, and this this backport. Would someone test and let me know? I need someone w

Re: [linux-usb-devel] Re: Unaligned scatter-gather buffers and usb-storage

2003-11-19 Thread Kai Makisara
On Wed, 19 Nov 2003, Jens Axboe wrote: > On Wed, Nov 19 2003, Kai Makisara wrote: ... > > As usual, I am against this 512-byte alignment (thinking as st > > maintainer). Don't default to more strict aligment requirements than is > > necessary. It creates hidden performance problems for character d

Re: [linux-usb-devel] kernel oops in case of USB serial device disconnection

2003-11-19 Thread Wolfgang Mües
Hello, Am Mittwoch, 19. November 2003 10:01 schrieb Zodel Wolfgang (MPI/SFS): > we have built a linux kernel (version 2.4.22) with hot-plugging USB device > I have successfully connected one USB serial device (tty console) to the > USB bus and opened (/dev/usb/ttyUSB0) by an application (termina

[linux-usb-devel] Comment in usblp

2003-11-19 Thread Pete Zaitcev
I know Linus is not taking cleanups at this point, but perhaps you can delete it in your tree. Seems like someone (Oliver?) fixed all the garbage in old printer.c, so the comment is not needed anymore. I reviewed changes, and usblp.c looks correct. I'm doing backport to 2.4 for Fedora right now.

Re: [linux-usb-devel] Re: Unaligned scatter-gather buffers and usb-storage

2003-11-19 Thread Jens Axboe
On Wed, Nov 19 2003, Kai Makisara wrote: > On Wed, 19 Nov 2003, Jens Axboe wrote: > > > On Wed, Nov 19 2003, James Bottomley wrote: > > > > > Alternatively, we could add this as yet another parameter to the host > > > > > and template structures. Any preferences? > > > > > > > > I suppose you hav

Re: [linux-usb-devel] Re: Unaligned scatter-gather buffers and usb-storage

2003-11-19 Thread Kai Makisara
On Wed, 19 Nov 2003, Jens Axboe wrote: > On Wed, Nov 19 2003, James Bottomley wrote: > > > > Alternatively, we could add this as yet another parameter to the host > > > > and template structures. Any preferences? > > > > > > I suppose you have to, if you want LLD to be able to pass it down. > > >

Re: [linux-usb-devel] What the calling process of a USB device driver?

2003-11-19 Thread Randy.Dunlap
On Wed, 19 Nov 2003 14:56:00 +0800 lrd <[EMAIL PROTECTED]> wrote: | Randy.Dunlap Wrote: | > On Wed, 19 Nov 2003 13:35:15 +0800 lrd <[EMAIL PROTECTED]> wrote: | > | > | > | 2. 'insmod' fails in Linux2.6.0-test9. It says: Invalid module | > | format. | The code is modified to fit the chages from

[linux-usb-devel] OHCI weirdness

2003-11-19 Thread Francois Menneteau
Hi all. I have an OHCI device that is recognized by ucLinux (the driver is registered, the dump of the OHCI registers is ok and I even get interrupts when I program the OHCI to do so). Now, when I plug a device (a camera for example) ucLinux detects nothing. I have periodically dumped all the OCH

Re: [linux-usb-devel] What the calling process of a USB device driver?

2003-11-19 Thread lrd
Paulo Marques wrote: lrd wrote: Randy.Dunlap wrote: If you are building the hardware of a USB client "from scratch", there still might be some timing issues, or something, that escape the Windows core, but don't pass the Linux test :) Yes, I find my board is not stable enough to work. Windows

[linux-usb-devel] Re: [usb-storage] PATCH 2.5/6: limit transfer size for more compatibility

2003-11-19 Thread Matthew Dharm
On Wed, Nov 19, 2003 at 12:06:52AM -0800, Greg KH wrote: > On Wed, Nov 19, 2003 at 12:00:56AM -0800, Matthew Dharm wrote: > > Greg -- > > > > I never saw this patch get applied. I'm getting quite a few reports of > > devices that don't work without this patch. What's your plan? > > It's in my q

[linux-usb-devel] Re: Unaligned scatter-gather buffers and usb-storage

2003-11-19 Thread Jens Axboe
On Wed, Nov 19 2003, Alan Stern wrote: > On Wed, 19 Nov 2003, Jens Axboe wrote: > > > > any main code path, and it wouldn't get invoked by anything using the st > > > or sg drivers. In fact, it looks like scsi_ioctl.c:scsi_cmd_ioctl() is > > > only called from within the sd driver. > > > > It's

[linux-usb-devel] Re: Unaligned scatter-gather buffers and usb-storage

2003-11-19 Thread Alan Stern
On Wed, 19 Nov 2003, Jens Axboe wrote: > > any main code path, and it wouldn't get invoked by anything using the st > > or sg drivers. In fact, it looks like scsi_ioctl.c:scsi_cmd_ioctl() is > > only called from within the sd driver. > > It's invoked from user space. Don't mix block and scsi scs

Re: [linux-usb-devel] Help: Compile and Load USB gamepad module

2003-11-19 Thread Randy.Dunlap
On Wed, 19 Nov 2003 08:53:42 -0500 [EMAIL PROTECTED] wrote: | Hi All, | | Anyone knows what patches I need for RH 8.0 shipped with 2.4.18? I have | compile error when I tried to build the kernel by myself. Here is my config | file. Look here for vendor/distro kernel info: http://kernelnewbies.or

[linux-usb-devel] Re: Unaligned scatter-gather buffers and usb-storage

2003-11-19 Thread Jens Axboe
On Wed, Nov 19 2003, Alan Stern wrote: > On Wed, 19 Nov 2003, Jens Axboe wrote: > > > The queue already has such a restriction embedded, see bio_map_user() > > and queue_dma_alignment(). > > Searching through the 2.6 kernel source gave some interesting results. > > queue_dma_alignment() does not

[linux-usb-devel] Cypress Semi USB - RS232 Serial driver for this beast?

2003-11-19 Thread Roe Peterson
I've just been handed a USB RS232 converter, which, for some strange reason, identifies itself as an HID device. Has anyone out there ever seen one of these? If so, any ideas about linux support? I have no problem writing drivers, and it looks like we'll be using a bunch of these (if I can get th

[linux-usb-devel] Re: Unaligned scatter-gather buffers and usb-storage

2003-11-19 Thread Alan Stern
On Wed, 19 Nov 2003, Jens Axboe wrote: > The queue already has such a restriction embedded, see bio_map_user() > and queue_dma_alignment(). Searching through the 2.6 kernel source gave some interesting results. queue_dma_alignment() does nothing but set the dma_alignment field of the request que

Re: [linux-usb-devel] Re: Unaligned scatter-gather buffers and usb-storage

2003-11-19 Thread Jens Axboe
On Wed, Nov 19 2003, James Bottomley wrote: > > > Alternatively, we could add this as yet another parameter to the host > > > and template structures. Any preferences? > > > > I suppose you have to, if you want LLD to be able to pass it down. > > Well, what I was fishing for: Is this property us

Re: [linux-usb-devel] Re: Unaligned scatter-gather buffers and usb-storage

2003-11-19 Thread James Bottomley
On Wed, 2003-11-19 at 08:39, Jens Axboe wrote: > > but, regardless, the queue is already set up (for all devices, including > > st) in either slave_alloc, or slave_configure, so you could call the > > alignment setting routine there. > > That was my point, yes. I know, just driving it home. I'll

Re: [linux-usb-devel] Re: Unaligned scatter-gather buffers and usb-storage

2003-11-19 Thread Jens Axboe
On Wed, Nov 19 2003, James Bottomley wrote: > On Wed, 2003-11-19 at 07:04, Jens Axboe wrote: > > On Wed, Nov 19 2003, Oliver Neukum wrote: > > > > > > > > You could add a scsi_host fields or bits specifying alignment > > > > > restrictions, and enforce them as needed in upper level drivers. > > >

Re: [linux-usb-devel] Re: Unaligned scatter-gather buffers and usb-storage

2003-11-19 Thread James Bottomley
On Wed, 2003-11-19 at 07:04, Jens Axboe wrote: > On Wed, Nov 19 2003, Oliver Neukum wrote: > > > > > > You could add a scsi_host fields or bits specifying alignment > > > > restrictions, and enforce them as needed in upper level drivers. > > > > > > The queue already has such a restriction embedd

Re: [linux-usb-devel] Help: Compile and Load USB gamepad module

2003-11-19 Thread mail2mikez
Hi All, Anyone knows what patches I need for RH 8.0 shipped with 2.4.18? I have compile error when I tried to build the kernel by myself. Here is my config file. Thanks, Mike "Randy.Dunlap" <[EMAIL PROTECTED]> wrote: >On Mon, 17 Nov 2003 20:29:30 -0800 "Randy.Dunlap" <[EMAIL PROTECTED]> wrote:

Re: [linux-usb-devel] Talking to own driver via usbfs (was: Get info about physical location of new device within driver)

2003-11-19 Thread Oliver Neukum
> I tried this. I added the ioctl function to my driver. If I call this ioctl > with the registered device file opened, it works fine. > If I try to do this via usbfs (/proc/bus/usb/001/0xx), the open call doesn't > invoke the open function of my driver. Can someone give my a hint what I miss

Re: [linux-usb-devel] Re: Unaligned scatter-gather buffers and usb-storage

2003-11-19 Thread Jens Axboe
On Wed, Nov 19 2003, Oliver Neukum wrote: > > > > You could add a scsi_host fields or bits specifying alignment > > > restrictions, and enforce them as needed in upper level drivers. > > > > The queue already has such a restriction embedded, see bio_map_user() > > and queue_dma_alignment(). > >

Re: [linux-usb-devel] Re: Unaligned scatter-gather buffers and usb-storage

2003-11-19 Thread Oliver Neukum
> > You could add a scsi_host fields or bits specifying alignment > > restrictions, and enforce them as needed in upper level drivers. > > The queue already has such a restriction embedded, see bio_map_user() > and queue_dma_alignment(). Very well, as far as sd and sr are concerned, but it doesn

Re: [linux-usb-devel] What the calling process of a USB device driver?

2003-11-19 Thread Paulo Marques
lrd wrote: Randy.Dunlap wrote: I think the following lines do this. Those VID/PID are defined by my device and work fine in MS Windows's driver which is written by me. #define USB_ZBOARD_VENDOR_ID0x1234 #define USB_ZBOARD_PRODUCT_ID0x static struct usb_device_id g_ZBoard_IDS [] = {

Re: [linux-usb-devel] USB2 webcam support

2003-11-19 Thread Niek Bergboer
On Tue, Nov 18, 2003 at 04:27:17PM +, Major A wrote: > > * Is the ADS USBx-2020 supported? And if so: anyone has experience? > Both cameras are also sold in IEEE 1394 versions. If you just want to > have a working camera, that might be a safer bet, as these cameras > just use the standard DV-ov

[linux-usb-devel] kernel oops in case of USB serial device disconnection

2003-11-19 Thread Zodel Wolfgang (MPI/SFS)
Hi, we have built a linux kernel (version 2.4.22) with hot-plugging USB device support: /proc/tty/driver/usb-serial usbserinfo: 1.0 driver: v1.4 0: module: ftdi_sio name: "FTDI 8U232 AM Compatible" vendor: 0403 product: 6001 num-ports: 1 port: 1 path: usb-00:07.2-1 usb-uhci.c: v1.275

[linux-usb-devel] Re: Unaligned scatter-gather buffers and usb-storage

2003-11-19 Thread Jens Axboe
On Tue, Nov 18 2003, Patrick Mansfield wrote: > On Tue, Nov 18, 2003 at 10:20:17AM -0500, Alan Stern wrote: > > > Alignment to a 512-byte boundary would suffice and page alignment would be > > more than enough. The cleanest way to fix the problem would be to have st > > and sg refuse to do direct

[linux-usb-devel] Talking to own driver via usbfs (was: Get info about physical location of new device within driver)

2003-11-19 Thread Thorsten Wiedemer
Hi ! Sorry to disturb again ... I think the las thread I started became accidently private. [snip] >> My first idea was doing this as a script. But how can I find the relation >> between the device file minor number / name (registered in the device >> driver) and the topology location ? >> I th

[linux-usb-devel] Re: [usb-storage] PATCH 2.5/6: limit transfer size for more compatibility

2003-11-19 Thread Greg KH
On Wed, Nov 19, 2003 at 12:00:56AM -0800, Matthew Dharm wrote: > Greg -- > > I never saw this patch get applied. I'm getting quite a few reports of > devices that don't work without this patch. What's your plan? It's in my queue of patches to apply after 2.6.0. Is that ok with you? thanks, g

[linux-usb-devel] Re: [usb-storage] PATCH 2.5/6: limit transfer size for more compatibility

2003-11-19 Thread Matthew Dharm
Greg -- I never saw this patch get applied. I'm getting quite a few reports of devices that don't work without this patch. What's your plan? Matt On Sun, Nov 02, 2003 at 11:01:29AM -0800, Matthew Dharm wrote: > This patch limits the amount of data that will be transferred in a single > command

Re: [linux-usb-devel] What the calling process of a USB device driver?

2003-11-19 Thread lrd
Randy.Dunlap Wrote: On Wed, 19 Nov 2003 13:35:15 +0800 lrd <[EMAIL PROTECTED]> wrote: | > | 2. 'insmod' fails in Linux2.6.0-test9. It says: Invalid module | format. | The code is modified to fit the chages from 2.4 to 2.6 and | compiled | successfully. Then, what does this message mean? I'm sur