[linux-usb-devel] [PATCH] Bus glue split-up and SA-1111 support/fixes

2002-06-06 Thread Christopher Hoover
OK, here's the patch against 2.5.20. I broke into three pieces -- one that pulls the PCI support out of core/hcd.c, one that fixes a bug or two in the old ohci driver, and one for the new ohci driver that splits the bus glue out and adds SA- support. It works on SA-1110/SA-0 when dropped

[linux-usb-devel] Oops in 2.4.19-pre10

2002-06-06 Thread Duncan Sands
I use the userspace driver for my Alcatel USB speedtouch modem. On system shutdown I get the following oops. I have attached some system info to this email. Ciao, Duncan. ksymoops 2.4.5 on i586 2.4.19-pre10. Options used -V (default) -k /var/log/ksymoops/20020605092043.ksyms (specif

[linux-usb-devel] [PATCH] Bus glue split-up and SA-1111 support/fixes [2/3]

2002-06-06 Thread Christopher Hoover
diff -X dontdiff.txt -Naur linux-2.5.20/drivers/usb/host/usb-ohci.c linux-2.5.20-usbwork/drivers/usb/host/usb-ohci.c --- linux-2.5.20/drivers/usb/host/usb-ohci.cSun Jun 2 18:44:44 2002 +++ linux-2.5.20-usbwork/drivers/usb/host/usb-ohci.cWed Jun 5 17:41:37 2002 @@ -66,7 +66,12 @@ #inclu

[linux-usb-devel] [PATCH] Bus glue split-up and SA-1111 support/fixes [3/3]

2002-06-06 Thread Christopher Hoover
diff -X dontdiff.txt -Naur linux-2.5.20/drivers/usb/host/ohci-hcd.c linux-2.5.20-usbwork/drivers/usb/host/ohci-hcd.c --- linux-2.5.20/drivers/usb/host/ohci-hcd.cSun Jun 2 18:44:41 2002 +++ linux-2.5.20-usbwork/drivers/usb/host/ohci-hcd.cWed Jun 5 18:27:07 2002 @@ -12,6 +12,9 @@ * *

RE: [linux-usb-devel] patch

2002-06-06 Thread Christopher Hoover
The SA- OHCI (at least the one on my board) sometimes get in a screwy mode and reports no interfaces. I haven't been able to track down why yet. -ch > -Original Message- > From: Greg KH [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 05, 2002 4:55 PM > To: Christopher Hoover >

RE: [linux-usb-devel] [PATCH] SA-1111 support for ohci-hcd

2002-06-06 Thread Christopher Hoover
Greg, Ah. Our patches crossed in the mail. I just sent a set of patches to linux-usb-devel against 2.5.20. There are three parts -- one of them is pretty similar to yours below and the other two address usb-ohci and ohci-hcd. arm: the patch works in 2.5.18-rmk1 if you tweak the Makefiles an

Re: [linux-usb-devel] Re: hotplugging to deal with firmware download

2002-06-06 Thread Andries . Brouwer
> I seem to recall pointing you at usb-storage once already, > as the only USB driver today which needs to do such stuff. > It has a notion of device identity, based ISTR on serial > numbers, and saves that state. UTSL. You quote this as an example of how to do things. I am not especially happy w

[linux-usb-devel] Blocking INT URB

2002-06-06 Thread Thomas Wahrenbruch
Hi all, I'm developing a driver for our USB smart card reader. We use a custom made USB-serial converter with interrupt endpoints. In the open() method I want to start reading. Therefore I'm sending an INT URB. But the system blocks after the usb_submit_urb() call. What I am missing? I attach

[linux-usb-devel] [Fwd: Re: USB mass storage..]

2002-06-06 Thread Ernest Beinrohr
Could you submit this line to /driver/usb/storage/unusual_devs.h ? UNUSUAL_DEV( 0x0686, 0x400a, 0x0001, 0x0001, "Minolta", "Dimage S404", US_SC_SCSI, US_PR_BULK, NULL, US_FL_START_STOP ), according to http://www.qbik.ch/usb/devices/showdev.php?id=1187 -- Ernest Beinrohr, OERNii eAdmin

Re: [linux-usb-devel] Re: hotplugging to deal with firmware download

2002-06-06 Thread Oliver Neukum
> > The genric layer that did request the resumption must be told > > that this was impossible and the device should be purged. > > Last time I did suspend/resume of a system with USB, the hub > driver _already_ handled that. Presumably it still does. Sadly I cannot test that. The ohci driver c

Re: [linux-usb-devel] [PATCH] SA-1111 support for ohci-hcd

2002-06-06 Thread David Brownell
> Here's a patch against 2.5.20 that splits out the pci specific parts of > hcd.c into hcd-pci.c. > > ... > > Christopher, does this patch make your patch easier? > > David, any complaints about this patch? Only the interference with this patch. It's certainly along the right lines,

[linux-usb-devel] USB Digital Cameras

2002-06-06 Thread Riley Williams
Hi there. Is this the right list on which to ask about the status of support for specific USB devices? In case it is, I'm asking about the following devices: 1. A friend of mine has a USB "Pen Camera" whose box labels it as being the "Trio PenCam VGA" and is running the recently released

Re: [linux-usb-devel] Re: hotplugging to deal with firmware download

2002-06-06 Thread David Brownell
[EMAIL PROTECTED] wrote: >>I seem to recall pointing you at usb-storage once already, >>as the only USB driver today which needs to do such stuff. >>It has a notion of device identity, based ISTR on serial >>numbers, and saves that state. UTSL. > > > You quote this as an example of how to do thi

Re: [linux-usb-devel] Special keys in USB keyboard don't work in 2.5.x

2002-06-06 Thread David Brownell
This info needs to get to HID and/or usb-uhci-hcd folk, not me ... :) Marcelo de Paula Bezerra wrote: > On Thu, 2002-06-06 at 00:55, David Brownell wrote: > > >>Modify the dbg statement -- it's just a regular printf format, >>so add a "%d" and pass the return value in the argument list. >> >>-

Re: [linux-usb-devel] USB Digital Cameras

2002-06-06 Thread Greg KH
On Thu, Jun 06, 2002 at 03:30:32PM +0100, Riley Williams wrote: > Hi there. > > Is this the right list on which to ask about the status of support for > specific USB devices? In case it is, I'm asking about the following > devices: Not really the correct place, there's a link off of linux-usb.or

Re: [linux-usb-devel] Special keys in USB keyboard don't work in 2.5.x

2002-06-06 Thread Georg Acher
On Thu, Jun 06, 2002 at 10:17:38AM -0700, David Brownell wrote: > This info needs to get to HID and/or usb-uhci-hcd folk, not me ... :) > > > Marcelo de Paula Bezerra wrote: > >On Thu, 2002-06-06 at 00:55, David Brownell wrote: > > > > > >>Modify the dbg statement -- it's just a regular printf f

[linux-usb-devel] Re: device model documentation 2/3

2002-06-06 Thread Pavel Machek
Hi! > > > SUSPEND_DISABLE tells the device to stop I/O transactions. When it > > > stops transactions, or what it should do with unfinished transactions > > > is a policy of the driver. After this call, the driver should not > > > accept any other I/O requests. > > > > Does this mean that memory

Re: [linux-usb-devel] Re: device model documentation 2/3

2002-06-06 Thread David Brownell
> > All calls are made with interrupts enabled, except for the > > SUSPEND_POWER_DOWN level. > > This is a slight problem for USB. We need to switch on interupts > to send a message to the device. For example, to enable remote wakeup (whenever we start to support that). I understand that a

Re: [linux-usb-devel] Re: hotplugging to deal with firmware download

2002-06-06 Thread Andries . Brouwer
> Named media is one of the standard models for volume management, Yes, but the names used by usb-storage are sda, sdb, ... Names that are quite unrelated to the media. If I put card 1 in reader 1, and then card 2 in reader 1, and then card 1 in reader 2 what do you want to happen? No, names sho

Re: [linux-usb-devel] Re: hotplugging to deal with firmware download

2002-06-06 Thread Oliver Neukum
Well, to defend Matt, he's doing the best that can be done under the circumstances. A device driver is asked to do things that a higher layer should do. But this should point us to not using this code unless really necessary. If the bus is physically detached and reattached we can do nothing. If

[linux-usb-devel] remove USB_QUEUE_BULK urb flag?

2002-06-06 Thread David Brownell
In the interest of de-complicating the API and code, I wonder how folk would react to removing the flag that enables bulk queuing ... doing it as needed but without needing an explicit request. How it works today: when the UHCI drivers find a bulk URB being submitted to an endpoint that already

Re: [linux-usb-devel] remove USB_QUEUE_BULK urb flag?

2002-06-06 Thread Matthew Dharm
My only concern is that the behavior be _very_ well defined for this. I can think of all sorts of corner-cases (URBs about to complete, endpoints halted, zero-length packets, etc) which all need to be covered before we make a change like this. Matt On Thu, Jun 06, 2002 at 12:41:54PM -0700, Davi

Re: [linux-usb-devel] remove USB_QUEUE_BULK urb flag?

2002-06-06 Thread David Brownell
Matthew Dharm wrote: > My only concern is that the behavior be _very_ well defined for this. I > can think of all sorts of corner-cases (URBs about to complete, endpoints > halted, zero-length packets, etc) which all need to be covered before we > make a change like this. I'm not clear on what y

Re: [linux-usb-devel] remove USB_QUEUE_BULK urb flag?

2002-06-06 Thread Matthew Dharm
On Thu, Jun 06, 2002 at 01:11:06PM -0700, David Brownell wrote: > Matthew Dharm wrote: > > My only concern is that the behavior be _very_ well defined for this. I > > can think of all sorts of corner-cases (URBs about to complete, endpoints > > halted, zero-length packets, etc) which all need to

Re: [linux-usb-devel] Re: device model documentation 2/3

2002-06-06 Thread Pavel Machek
Hi! > What did seem to be missing was anything saying whether > those device methods would be called in_interrupt() or > whether instead they could sleep. I'd hope all of them > would be specified to allow blocking as needed, like their > current analogues in PCI and USB. Look better, it was th

Re: [linux-usb-devel] Re: device model documentation 2/3

2002-06-06 Thread Oliver Neukum
> ... though FWIW I missed seeing anything that showed how > those API summaries would place constraints on allocating > memory, so I didn't assume there could be any. It specified that there would be no valid assumptions on the order of devices woken up. Thus the devices that would be paged to

[linux-usb-devel] Lossage when dd'ing from usb-storage attached CF card

2002-06-06 Thread Christopher Hoover
Details: 2.5.18-rmk1 + 2.5.20 usb + my ohci-hcd (although it will happen with usb-ohci-sa too as well as 2.5.18-rmk1 usb). I can do small dd's off the device just fine: == Initializing USB Mass Storage driver... usb.c: registe

Re: [linux-usb-devel] remove USB_QUEUE_BULK urb flag?

2002-06-06 Thread Matthew Dharm
On Thu, Jun 06, 2002 at 02:06:30PM -0700, David Brownell wrote: > > I'd like to see all those URBs terminated immediately, but > > I'm sure others would like to see them all executed as if nothing had > > happened. > > I agree that it makes no sense to continue processing later URBs queued > on t

[linux-usb-devel] [BK PATCH] USB changes for 2.5.20

2002-06-06 Thread Greg KH
More USB changes for 2.5.20 Pull from: bk://linuxusb.bkbits.net/linus-2.5 drivers/usb/class/Config.in |1 drivers/usb/class/Makefile |1 drivers/usb/class/usb-midi.c | 2228 +++ drivers/usb/class/usb-midi.h | 143 ++ drivers/usb/core/Makef

Re: [linux-usb-devel] USB Digital Cameras

2002-06-06 Thread Guest section DW
On Thu, Jun 06, 2002 at 03:30:32PM +0100, Riley Williams wrote: > 2. I have a serial digital camera (the Fuji MX2700), and have obtained > a USB reader for the SmartMedia cards that it takes. This reader > came in a plain white box with nothing but the price sticker on it, > and no m

[linux-usb-devel] Re: [BK PATCH] USB changes for 2.5.20

2002-06-06 Thread Greg KH
# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet1.447.2.5 -> 1.447.2.6 # drivers/usb/cor

[linux-usb-devel] Re: [BK PATCH] USB changes for 2.5.20

2002-06-06 Thread Greg KH
# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet1.447.2.6 -> 1.447.2.7 # drivers/usb/cla

[linux-usb-devel] Re: [BK PATCH] USB changes for 2.5.20

2002-06-06 Thread Greg KH
# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet1.466 -> 1.467 # drivers/usb/core/hc

Re: [linux-usb-devel] Special keys in USB keyboard don't work in 2.5.x

2002-06-06 Thread Brad Hards
On Thu, 6 Jun 2002 13:52, Brad Hards wrote: > On Thu, 6 Jun 2002 13:40, Marcelo de Paula Bezerra wrote: > > On Thu, 2002-06-06 at 00:24, Brad Hards wrote: > > > I have a similar keyboard (only Rev 1.14). I'll try it out on 2.5. > > > > > > Is there any chance that you can test this on another moth

Re: [linux-usb-devel] [PATCH] SA-1111 support for ohci-hcd

2002-06-06 Thread Greg KH
On Thu, Jun 06, 2002 at 09:51:03AM -0700, David Brownell wrote: > > Here's a patch against 2.5.20 that splits out the pci specific parts of > > hcd.c into hcd-pci.c. > > > > ... > > > > Christopher, does this patch make your patch easier? > > > > David, any complaints about this patch? > > On

Re: [linux-usb-devel] patch

2002-06-06 Thread Greg KH
On Thu, Jun 06, 2002 at 12:37:57AM -0700, Christopher Hoover wrote: > > The SA- OHCI (at least the one on my board) sometimes get in a > screwy mode and reports no interfaces. I haven't been able to track > down why yet. So the USB device reports no interfaces? This isn't a host controlle

Re: [linux-usb-devel] remove USB_QUEUE_BULK urb flag?

2002-06-06 Thread David Brownell
Note that this doesn't provide any reason not to get rid of that flag a bit later in the 2.5 series. This sub-thread addresses different issues related to bulk queueing. Ones I agree also need to be handled consistently. >>>I'd like to see all those URBs terminated immediately, but >>>I'm sure

Re: [linux-usb-devel] [PATCH] SA-1111 support for ohci-hcd

2002-06-06 Thread David Brownell
> I just sent on my previous hcd-pci.c split up patch to Linus, so > hopefully it will make it into the next kernel release. Then I'd be > glad to take either of David's or Christopher's patches on top of that > one. I took the two parts of my patch and sent them separately ... I know those "uhc

[linux-usb-devel] [PATCH 2.5.20] uhci-hcd misc

2002-06-06 Thread David Brownell
This has two minor tweaks to the uhci-hcd driver: - removes some duplicated code (HCD framework does that test) - corrects a FIXME comment (no issue) Appropriate for merging to Linus' latest. - Dave --- ./drivers/usb-dist/host/uhci-hcd.c Mon Jun 3 11:11:11 2002 +++ ./drivers/usb/host/uhci-h

[linux-usb-devel] [PATCH 2.5.20] relocate error checks

2002-06-06 Thread David Brownell
As was discussed a few weeks back, this moves most of the sanity checks and input conditioning for the HCD framework's usb_submit_urb() support directly into usb_submit_urb(), so that all HCDs (not just those using the sharable HCD framework support) can rely on them. Please merge to Linus' tree.

Re: [linux-usb-devel] [PATCH 2.5.20] uhci-hcd misc

2002-06-06 Thread Johannes Erdfelt
On Thu, Jun 06, 2002, David Brownell <[EMAIL PROTECTED]> wrote: > This has two minor tweaks to the uhci-hcd driver: > > - removes some duplicated code (HCD framework does that test) > - corrects a FIXME comment (no issue) > > Appropriate for merging to Linus' latest. Looks good to me. Thanks fo

[linux-usb-devel] [patch] 2.5.20 ov511.c compile fixes

2002-06-06 Thread Mark McClelland
This patch allows ov511 to build again by removing references to urb->next. It now resubmits in the completion handler and properly sets urb->interval. The driver compiles fine now, but I can't promise that it works since 2.5.20 wouldn't boot for me. Please apply. Thanks! -- Mark McClelland

Re: [linux-usb-devel] Special keys in USB keyboard don't work in2.5.x

2002-06-06 Thread Marcelo de Paula Bezerra
So the keyboard generates 2 event devices? 1 for the regular keys, and another for the special keys? (this is expected behavior). Anyway, I'll contact the uchi mantainer again. On Thu, 2002-06-06 at 19:00, Brad Hards wrote: > On Thu, 6 Jun 2002 13:52, Brad Hards wrote: > > On Thu, 6 Jun 2002 13:

Re: [linux-usb-devel] Howto write a USB driver ?

2002-06-06 Thread Jim Richardson
On Mon, Jun 03, 2002 at 10:35:58PM -0700, Mark McClelland wrote: > Jim Richardson wrote: > > >On Sat, Jun 01, 2002 at 11:23:47AM -0700, Dmitri wrote: > > > > > >>On Wed, 2002-05-29 at 20:58, an unknown sender wrote: > >> > >> > >>>The ProScope appears to use the Divio Prolink chipset, at leas

Re: [linux-usb-devel] Special keys in USB keyboard don't work in 2.5.x

2002-06-06 Thread Brad Hards
On Fri, 7 Jun 2002 14:35, Marcelo de Paula Bezerra wrote: > So the keyboard generates 2 event devices? > 1 for the regular keys, and another for the special keys? (this is > expected behavior). Yes. All works fine with OHCI (2.4 and 2.5). > Anyway, I'll contact the uchi mantainer again. I did a q