Re: [Linux-usb-users] Possible bug with Linux USB driver stack

2005-09-08 Thread Robert Marquardt
Alan Stern wrote: That doesn't sound like a very good strategy in general. Configurations don't have to be listed in any particular order; why should the first one be treated specially? There are only two ways possible for preferencing a configuration. Ordering of the configurations or the c

Re: [Linux-usb-users] using a laptop as a USB keyboard

2005-09-08 Thread Robert Marquardt
The problem is that USB is not built that way. You would have to develop your own USB device which is not easy. To the PC it needs to be a USB keyboard and to the notebook it needs to be another HID device. This constitutes a bridge device for USB because it is impossible to connect two USB buse

Re: [Linux-usb-users] using a laptop as a USB keyboard

2005-09-08 Thread David I S Mandala
I'll bet you could actually build a USB serial to USB HID device. There are some companies that make a tty level serial to USBHID keyboard chip so you could take a USB-serial chip cross connect the tty-serial sides of the chip and one computer would see it as a USB serial port and the other wou

Re: [Linux-usb-users] Possible bug in usb storage (2.6.11 kernel)

2005-09-08 Thread Matthew Dharm
On Thu, Sep 08, 2005 at 02:28:09PM -0600, Jim Ramsay wrote: > On 9/8/05, Jim Ramsay <[EMAIL PROTECTED]> wrote: > > On 9/8/05, Matthew Dharm <[EMAIL PROTECTED]> wrote: > > > On Thu, Sep 08, 2005 at 11:14:36AM -0600, Jim Ramsay wrote: > > > > I think I have found a possible bug: > > > > [...] > > > >

Re: [Linux-usb-users] using a laptop as a USB keyboard

2005-09-08 Thread Stephen J. Gowdy
Not sure what protocol that uses but it could be specific to that cable so it almost certainly wouldn't masqueraded as a keyboard. On Thu, 8 Sep 2005, Joseph Mack NA3T wrote: > On Thu, 8 Sep 2005, Stephen J. Gowdy wrote: > > > I don't think you'll find an off the shelf cable for doing > > that. M

Re: [Linux-usb-users] Possible bug in usb storage (2.6.11 kernel)

2005-09-08 Thread Alan Stern
On Thu, 8 Sep 2005, Jim Ramsay wrote: > More information: > > The error only occurrs during device sensing when the > srb->request_buffer is assigned as follows, by usb/storage/transport.c > in the routine usb_stor_invoke_transport: > > old_request_buffer = srb->request_buffer; > srb->request_bu

Re: [Linux-usb-users] Possible bug in usb storage (2.6.11 kernel)

2005-09-08 Thread Jim Ramsay
On 9/8/05, Jim Ramsay <[EMAIL PROTECTED]> wrote: > On 9/8/05, Matthew Dharm <[EMAIL PROTECTED]> wrote: > > On Thu, Sep 08, 2005 at 11:14:36AM -0600, Jim Ramsay wrote: > > > I think I have found a possible bug: > > > [...] > > > I suppose the scsi code could be changed to guarantee that > > > srb->r

Re: [Linux-usb-users] using a laptop as a USB keyboard

2005-09-08 Thread Alan Stern
On Thu, 8 Sep 2005, Joseph Mack NA3T wrote: > On Thu, 8 Sep 2005, Stephen J. Gowdy wrote: > > > I don't think you'll find an off the shelf cable for doing > > that. Most of them look like network devices to each of > > the computers. > > I couldn't really tell. I saw this > > http://www.sewel

Re: [Linux-usb-users] Possible bug in usb storage (2.6.11 kernel)

2005-09-08 Thread Jim Ramsay
On 9/8/05, Matthew Dharm <[EMAIL PROTECTED]> wrote: > On Thu, Sep 08, 2005 at 11:14:36AM -0600, Jim Ramsay wrote: > > I think I have found a possible bug: > > [...] > > I suppose the scsi code could be changed to guarantee that > > srb->request_buffer is page-aligned or cache-aligned, but that seem

Re: [Linux-usb-users] using a laptop as a USB keyboard

2005-09-08 Thread Joseph Mack NA3T
On Thu, 8 Sep 2005, Stephen J. Gowdy wrote: I don't think you'll find an off the shelf cable for doing that. Most of them look like network devices to each of the computers. I couldn't really tell. I saw this http://www.sewelld.com/UsbCable.asp and assumed it was the USB equivalent of a nul

Re: [Linux-usb-users] Possible bug in usb storage (2.6.11 kernel)

2005-09-08 Thread Matthew Dharm
On Thu, Sep 08, 2005 at 11:14:36AM -0600, Jim Ramsay wrote: > I think I have found a possible bug: > [...] > I suppose the scsi code could be changed to guarantee that > srb->request_buffer is page-aligned or cache-aligned, but that seems > like the wrong solution for this bug. Fixing the SCSI lay

[Linux-usb-users] Possible bug in usb storage (2.6.11 kernel)

2005-09-08 Thread Jim Ramsay
I think I have found a possible bug: In usb/storage/transport.c, the routine usb_stor_Bulk_transport (and perhaps other releated routines as well) has the following in the "DATA STAGE" (around line 1020 in my file): result = usb_stor_bulk_transfer_sg(us, pipe,

Re: [Linux-usb-users] using a laptop as a USB keyboard

2005-09-08 Thread Stephen J. Gowdy
I don't think you'll find an off the shelf cable for doing that. Most of them look like network devices to each of the computers. Can't the teacher just take a floppy or a cd, or a USB Storage device? On Thu, 8 Sep 2005, Joseph Mack NA3T wrote: > Some of the kids at my son's school use a device c

Re: [Linux-usb-users] Possible bug with Linux USB driver stack

2005-09-08 Thread Alan Stern
On Thu, 8 Sep 2005, Robert Marquardt wrote: > I proposed a strategy using a list of known bad devices so it is > solvable. The HID blacklist is a sample for such a list already. Blacklists are a bad idea in general and are better avoided. For example, what happens when you plug in a new device

[Linux-usb-users] using a laptop as a USB keyboard

2005-09-08 Thread Joseph Mack NA3T
Some of the kids at my son's school use a device called an AlphaSmart to upload their homework and answers to tests into the teacher's computer. This device is a keyboard with a 10x40char LCD display and editor and enough memory to store a few pages of ascii text files. It appears as a USB ke