Re: [Linux-usb-users] [SOLVED] Serial buffer corruption [was Re: FTDI usb-serial possible bug]

2007-05-06 Thread Alan Cox
> To conclude, the store the *last* N bytes received seems a more > reasonable policy for the input buffers managed by the kernel. If the For your use maybe, but it is not the normal behaviour and it is not the behaviour supported by hardware, which generally buffers the first few bytes (and some

Re: [Linux-usb-users] [SOLVED] Serial buffer corruption [was Re: FTDI usb-serial possible bug]

2007-05-06 Thread Alan Cox
> However, whatever policy the buffer uses, the fundamental point it's that > when I flush the input buffer I should be sure that each byte read > after the flush is *new* (current) data and not old one. This because Define "new" and "old" in this case. I don't believe you can give a precise defin

Re: [Linux-usb-users] [SOLVED] Serial buffer corruption [was Re: FTDI usb-serial possible bug]

2007-05-05 Thread Alan Cox
On Sat, 5 May 2007 20:07:15 +0200 Oliver Neukum <[EMAIL PROTECTED]> wrote: > Am Samstag, 5. Mai 2007 18:36 schrieb Alan Cox: > > > In the serial driver this usually just results in dropping > > > RTS to signal the remote end to stop sending. The serial > >

Re: [Linux-usb-users] [SOLVED] Serial buffer corruption [was Re: FTDI usb-serial possible bug]

2007-05-05 Thread Alan Cox
> > This is a bug in cdc-acm really. It should not double buffer, but to be > > fair to the authors prior to the new tty buffering it *had* to do this. > > I assume this applies to all serial drivers in the wider sense? When possible at least. Obviously there will always be some buffering in the

Re: [Linux-usb-users] [SOLVED] Serial buffer corruption [was Re: FTDI usb-serial possible bug]

2007-05-05 Thread Alan Cox
> In the serial driver this usually just results in dropping > RTS to signal the remote end to stop sending. The serial > driver always immediately gives receive data to the tty buffering > without regard to the throttled state. > > I would argue that cdc-acm should do the same as the serial drive

[Linux-usb-users] Re: [linux-usb-devel] Re: usbvision [Virus checked]

2002-07-09 Thread Alan Cox
> -obj-$(CONFIG_VIDEO_DEV) +=3D videodev.o > +obj-$(CONFIG_VIDEO_DEV) +=3D videodev.o tuner.o That looks wrong. Tuner is only needed for some cards. Put the proper rules in --- This sf.net email is sponsored by:ThinkGeek Stuff, things, and muc

[Linux-usb-users] Re: [linux-usb-devel] Re: Hack to make Datafab KECF-USB work

2002-02-07 Thread Alan Cox
> > Possible, but not required for the initial INQUIRY > > The Linux SCSI layer performs a single INQUIRY for the device discovery > process. It was proposed to shorten this INQUIRY to 36 bytes. Which is fine. We do a 36 byte inquiry just like windows. If the device turns out to be scsi-4 we can

[Linux-usb-users] Re: [linux-usb-devel] Re: Hack to make Datafab KECF-USB work

2002-02-07 Thread Alan Cox
> A SCSI device that is broken for INQUIRY is definitely broken for SCSI. > FYI, we need at least 56 bytes of INQUIRY data to be possible for SPC2 > (SCSI 4). Possible, but not required for the initial INQUIRY ___ [EMAIL PROTECTED] To unsubscribe, use

[Linux-usb-users] Re: [linux-usb-devel] Re: Hack to make Datafab KECF-USB work

2002-02-07 Thread Alan Cox
> If understand Martin's proposal right, the SCSI layer should first issue > a standard 36 byte INQUIRY, even if an application or high level SCSI > driver wants to get more data; and if byte 4 of the returned data > indicates that the device can provide more data, a second INQUIRY is > issued. P

[Linux-usb-users] Re: [linux-usb-devel] Re: Hack to make Datafab KECF-USB work

2002-02-07 Thread Alan Cox
> > SCSI layer proper. The only problem I can see is a broken device > > that violates the specs by truncating the additonal length > > parameter to the buffer length provided. Other than that, > > I have the documentation from a scanner vendor which indicates exactly > this broken behaviour. So

[Linux-usb-users] Re: Hack to make Datafab KECF-USB work

2002-02-06 Thread Alan Cox
> Umm.. I'm talking about the SCSI probing function... it requests 255 bytes > of then throws it away after processing the first 36. The remainder never > gets sent to anywhere (if I'm reading the code right). It would be up to > the scanner driver to request an INQUIRY data again... Which it w

[Linux-usb-users] Re: Hack to make Datafab KECF-USB work

2002-02-06 Thread Alan Cox
> The Linux-SCSI people (now on the CC:) have rejected the idea of making all > INQUIRYs 36-bytes. Apparently, there are some HBA drivers which want to > snoop the INQUIRY data in the vendor-specific area for some reason. For one the full INQ data is needed by some scanner drivers > I'm thinkin

Re: [linux-usb-devel] [Linux-usb-users] Re: usb-ohci freeze at line 2027

2001-06-01 Thread Alan Cox
> I try to do a readl() just before the writel, the readl freeze the > computer too. It seems that it's the access to this I/O port that freeze > the machine. I don't have any knowledge on these chip to understand what > happens I wonder if the USB controller started in some kind of powered down

[Linux-usb-users] Re: [linux-usb-devel] usb-ohci freeze at line 2027

2001-05-31 Thread Alan Cox
> I put printk instructions in the module, the usb-ohci freeze during > writel instructions line 2027: > > writel(0x628,&ohci->regs->fminterval); Change it to { unsigned long flags2; save_flags(flags2); __cli(); pr