[linux-usb-devel] [PATCH & Question] lh7a404 Host OHCI driver

2004-04-06 Thread Marc Singer
I've got a patch that adds OHCI support for a new SoC. I'd say it is all good except that it requires a work-around for accessing OHCI registers. The code needs to hijack readl() so that it can perform the read twice. What it does is define OHCI_readl() and then replace uses of readl() with that

Re: [linux-usb-devel] EHCI bulk throughput performance

2004-04-06 Thread Eric Blossom
On Tue, Apr 06, 2004 at 07:42:55PM -0700, David Brownell wrote: > Eric Blossom wrote: > >Hi, > > > >Does anyone have bulk transfer throughput measurements for any of the > >EHCI controllers? > > Nothing organized, let us know what you find out. Thanks. > > The original NEC EHCI 0.95 controller

Re: [linux-usb-devel] EHCI bulk throughput performance

2004-04-06 Thread David Brownell
Eric Blossom wrote: Hi, Does anyone have bulk transfer throughput measurements for any of the EHCI controllers? Nothing organized, let us know what you find out. We're looking for controllers that can sustain 32MB/sec in both directions (half duplex of course). Our software radio peripheral can

Re: [linux-usb-devel] Card insert event in card reader?

2004-04-06 Thread Timmy Li
Thanks. I use card reader in an embedded device and polling the card increases power consumption and makes power measure unstable in our hardware. Currenly I send SCSI commands 'INQUIRY' and 'TEST UNIT READY' to check the existence of certain card. Do you have any suggestion on how to check the c

[linux-usb-devel] Re: bug 2400

2004-04-06 Thread Mike Anderson
PS, I am traveling today so future comments will be delayed a bit. Alan Stern [EMAIL PROTECTED] wrote: > All right, let's look at sd.c. I'll show you that _it_ doesn't obey the > object lifetime rules. In sd_open we see this code (lightly edited): > > > static int sd_open(struct inode

Re: [linux-usb-devel] Casio QV-R40: unneeded Protocol entry in unusual_devs.h

2004-04-06 Thread Matthew Dharm
On Tue, Apr 06, 2004 at 09:34:32AM -0400, Alan Stern wrote: > On Tue, 6 Apr 2004, docks wrote: > > > Hi, > > > > I found this message in my syslog: > > > > usb-storage: This device (07cf,1001,5010 S 05 P 01) has an unneeded Protocol entry > > in unusual_devs.h > > Please send a copy of this mes

Re: [linux-usb-devel] Oops with bluetooth dongle

2004-04-06 Thread Simone Gotti
On Tuesday 06 April 2004 16:47, Alan Stern wrote: > Soeren: > > I read your message in > > http://marc.theaimsgroup.com/?l=linux-kernel&m=108123430100151&w=2 > > and it seems to be roughly the same problem reported by the other > recipients (maybe not exactly the same). However I'm unfamiliar with

Re: [linux-usb-devel] Re: Oops with bluetooth dongle

2004-04-06 Thread Erik Tews
Am Di, den 06.04.2004 schrieb Alan Stern um 22:59: > Please, folks, don't just say it oopses. Post a crash dump so I have > some chance of figuring out what's going wrong! > > So many people have reported problems with the USB bluetooth driver that I > can't keep them straight. Some of them cras

[linux-usb-devel] EHCI bulk throughput performance

2004-04-06 Thread Eric Blossom
Hi, Does anyone have bulk transfer throughput measurements for any of the EHCI controllers? We're looking for controllers that can sustain 32MB/sec in both directions (half duplex of course). Our software radio peripheral can do that using the Intel 82801DB EHCI. We'd like to figure out what ot

Re: [linux-usb-devel] [2.6] USB OHCI endian issues on Motorola MPC5200

2004-04-06 Thread David Brownell
Sylvain Munaut wrote: I'm working on a linux 2.6 port for the motorola MPC5200 processor. This processor has on chip 1.1 OHCI (so they say...) controller. But I have two problems : - The first is about the get_frame_number. I see that the 'glue' driver can provide a function to read this value

Re: [linux-usb-devel] Oops with bluetooth dongle

2004-04-06 Thread Soeren Sonnenburg
On Tue, 2004-04-06 at 18:49, Alan Stern wrote: > I've seen a couple of different problems coming up with this bluetooth > stuff. One of them may be fixed by a recent patch, as David Brownell > mentioned. Below is the relevant part excerpted from that patch; maybe it > will help some of you. Y

Re: [linux-usb-devel] Re: Oops with bluetooth dongle

2004-04-06 Thread Alan Stern
On Tue, 6 Apr 2004, Erik Tews wrote: > On Tue, Apr 06, 2004 at 08:47:36PM +0200, Alex Riesen wrote: > > > > no change for me. Still oopses. > > I have been running 2.6.5 with the bk-usb patch broken out of mm1. I > still got the problem. > > If I rmmod uhci-hcd, the kernel oopses too. > > Stil

Re: [linux-usb-devel] 2.6.5-rc3-mm4 breaks xsane, hangs on device scan at launch

2004-04-06 Thread Gene Heskett
On Tuesday 06 April 2004 15:11, David Brownell wrote: >Gene Heskett wrote: >> Nope, 2.6.5-mm1 hangs xsane just like 2.6.5-rc3-mm4 did... > >Ah, I think I see the problem. This .text.lock.devio entry is more >like devio::driver_disconnect(), which wouldn't previously have been >called on that path.

Re: [linux-usb-devel] Re: Oops with bluetooth dongle

2004-04-06 Thread Erik Tews
On Tue, Apr 06, 2004 at 08:47:36PM +0200, Alex Riesen wrote: > Alan Stern, Tue, Apr 06, 2004 18:49:51 +0200: > > I've seen a couple of different problems coming up with this bluetooth > > stuff. One of them may be fixed by a recent patch, as David Brownell > > mentioned. Below is the relevant p

[linux-usb-devel] Re: Oops with bluetooth dongle

2004-04-06 Thread Alex Riesen
Alan Stern, Tue, Apr 06, 2004 18:49:51 +0200: > I've seen a couple of different problems coming up with this bluetooth > stuff. One of them may be fixed by a recent patch, as David Brownell > mentioned. Below is the relevant part excerpted from that patch; maybe it > will help some of you. >

Re: [linux-usb-devel] Card insert event in card reader?

2004-04-06 Thread Andrew Zabolotny
On Tue, 6 Apr 2004 12:57:19 -0400 (EDT) Alan Stern <[EMAIL PROTECTED]> wrote: > > Is there any notifications when a card(eg. CF card) > > is being inserted into a USB card reader? My main > > purpose is to know if the card is really there. > There is no notification. That is, the card reader d

Re: [linux-usb-devel] Re: bug 2400

2004-04-06 Thread James Bottomley
On Tue, 2004-04-06 at 11:55, Alan Stern wrote: > In principle, yes. However... The kernel still has to process requests > correctly while the stack is partially deconstructed. It also has to > protect against userland helpers trying to pull things apart in the wrong > order. This I agree wit

[linux-usb-devel] [patch 2.6.5] usb, retry some descriptor fetches

2004-04-06 Thread David Brownell
This helps Linux handle certain enumeration problems better, by retrying most stalled descriptor fetches; on some devices, those indicate temporary problems. This match makes at least one such (old) device enumerate reliably. Please merge. - Dave --- 1.49/drivers/usb/core/message.c Wed Mar 3

Re: [linux-usb-devel] Card insert event in card reader?

2004-04-06 Thread Alan Stern
On Tue, 6 Apr 2004, Timmy Li wrote: > Is there any notifications when a card(eg. CF card) > is being inserted into a USB card reader? My main > purpose is to know if the card is really there. > Currently I use a user mode program to scan the SCSI > generic driver and send some SCSI commands t

Re: [linux-usb-devel] Re: bug 2400

2004-04-06 Thread Alan Stern
On 6 Apr 2004, James Bottomley wrote: > Supposing we did no hotplug at all and just relied on the fact that a > driver responds DID_NO_CONNECT to a missing device. > > We have a mounted fs on a CD on SCSI on USB which gets disconnected. No > event is generated because no hotplug. Now every read o

Re: [linux-usb-devel] Oops with bluetooth dongle

2004-04-06 Thread Simone Gotti
On Tuesday 06 April 2004 18:21, David Brownell wrote: > I'm thinking some of those may be fixed in the 2.6.5-mm1 patch ... Hi, I've tried the 2.6.5-mm1 patch, and I've found that I can't manage my usb dongle anymore. If I use for example "sdptool" I get a timeout error. The same problem if I tr

Re: [linux-usb-devel] Oops with bluetooth dongle

2004-04-06 Thread Alan Stern
I've seen a couple of different problems coming up with this bluetooth stuff. One of them may be fixed by a recent patch, as David Brownell mentioned. Below is the relevant part excerpted from that patch; maybe it will help some of you. Alan Stern --- 1.47/drivers/usb/core/message.c Tu

Re: [linux-usb-devel] Re: [PATCH] USB fixes for 2.4.26-pre4

2004-04-06 Thread James Lamanna
Sergey Vlasov wrote: This thing is seriously broken, both for 2.4.x and 2.6.x: 1) Allocating "struct hiddev_usage_ref_multi uref_multi" on the stack in hiddev_ioctl() is not good - with HID_MAX_USAGES==1024, it is more than 4K. Does anyone have any further comment on this? Yes it was an oversight

Re: [linux-usb-devel] Oops with bluetooth dongle

2004-04-06 Thread David Brownell
I'm thinking some of those may be fixed in the 2.6.5-mm1 patch ... --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from funda

Re: [linux-usb-devel] Re: bug 2400

2004-04-06 Thread David Brownell
James Bottomley wrote: that's intra subsystem synchronisation, not inter subsystem I'd say that device_driver.remove() calls from the bus management code to a given device driver are inter-subsystem... so using a subsystem provided API from another subsystem constitutes inter subsytem synchronisati

Re: [linux-usb-devel] Re: bug 2400

2004-04-06 Thread James Bottomley
On Tue, 2004-04-06 at 10:10, David Brownell wrote: > James Bottomley wrote: > > that's intra subsystem synchronisation, not inter subsystem > > I'd say that device_driver.remove() calls from the bus management > code to a given device driver are inter-subsystem... so using a subsystem provided A

[linux-usb-devel] Returned mail: Host unknown (Name server: adc.hitachi-ul.co.jp.: host not found)

2004-04-06 Thread Mail Delivery Subsystem
The original message was received at Wed, 7 Apr 2004 00:38:48 +0900 (JST) from localhost [127.0.0.1] - The following addresses had permanent fatal errors - <[EMAIL PROTECTED]> - Transcript of session follows - 550 <[EMAIL PROTECTED]>... Host unknown (Name server: adc.hitachi

Re: [linux-usb-devel] Re: bug 2400

2004-04-06 Thread David Brownell
James Bottomley wrote: that's intra subsystem synchronisation, not inter subsystem I'd say that device_driver.remove() calls from the bus management code to a given device driver are inter-subsystem... Look, the rules are very simple: - Every subsystem gives out refcounted objects. - Every subs

[linux-usb-devel] Oops with bluetooth dongle

2004-04-06 Thread Alan Stern
Soeren: I read your message in http://marc.theaimsgroup.com/?l=linux-kernel&m=108123430100151&w=2 and it seems to be roughly the same problem reported by the other recipients (maybe not exactly the same). However I'm unfamiliar with the computer architecture you're using and I can't pin down th

[linux-usb-devel] Re: 2.4.25 kernel oops

2004-04-06 Thread Peter Santoro
Pete Zaitcev wrote: This looks like what I fixed for Red Hat some time ago for our partner Dell who shipped some pretty silly Lexar OEM USB keys. Please try the attached patch, it migth fix the oops. It is important for me to know the result, because I plan to push this into Marcelo's 2.4.27. Howev

[linux-usb-devel] Re: 2.4.25 kernel oops

2004-04-06 Thread Alan Stern
On Tue, 6 Apr 2004, Peter Santoro wrote: > I've applied the patch, rebuilt the kernel, and did one test (boot PC, > login as root, insert Lexar JumpDrive, try to mount the vfat formatted > device). As before, the mount command took about ~30 sec, but did > successfully complete. I could read

[linux-usb-devel] Re: bug 2400

2004-04-06 Thread Alan Stern
On Mon, 5 Apr 2004, Patrick Mansfield wrote: > Yes. > > If we are in middle opening an sd, and are anywhere between the > kobj_lookup having completed call to up_read(domain->sem) [called via > do_open calling get_gendisk] and sd_open calling scsi_device_get(), and > separately an sd_remove call

[linux-usb-devel] Re: bug 2400

2004-04-06 Thread James Bottomley
On Tue, 2004-04-06 at 09:04, Jens Axboe wrote: > Only change is the err -> error, correct? Not quite; there was a cleanup goto issue as well (don't want to goto the release if you couldn't get the object). > > The attached (hopefully) is what I compiled and tested with. The test, > > incidentall

[linux-usb-devel] Re: bug 2400

2004-04-06 Thread Jens Axboe
On Tue, Apr 06 2004, James Bottomley wrote: > On Tue, 2004-04-06 at 04:22, Jens Axboe wrote: > > Really? It doesn't even compile :-) > > Heh, I really must learn that I have to copy the file from the test > machine to the email machine *before* attaching it. You got a stale > copy of an older inc

Re: [linux-usb-devel] Re: bug 2400

2004-04-06 Thread James Bottomley
On Tue, 2004-04-06 at 01:52, Oliver Neukum wrote: > Pure refcounting can never protect you against races with freeing objects. > The counters themselves must be protected. Try as you might you need > locks for that and rules on how this locks are to be used. Which part of On Mon, 2004-04-05 at 20

[linux-usb-devel] Re: bug 2400

2004-04-06 Thread Alan Stern
On 5 Apr 2004, James Bottomley wrote: > On Sun, 2004-04-04 at 22:17, Alan Stern wrote: > > Of course it would! That's exactly what this thread is about: bugs caused > > by improper handling of open/disconnect races. > > So you're quietly shifting your ground away from this assertion: > > On Sat

[linux-usb-devel] Re: bug 2400

2004-04-06 Thread James Bottomley
On Tue, 2004-04-06 at 04:22, Jens Axboe wrote: > Really? It doesn't even compile :-) Heh, I really must learn that I have to copy the file from the test machine to the email machine *before* attaching it. You got a stale copy of an older incarnation, I think. The attached (hopefully) is what I c

Re: [linux-usb-devel] Casio QV-R40: unneeded Protocol entry in unusual_devs.h

2004-04-06 Thread Alan Stern
On Tue, 6 Apr 2004, docks wrote: > Hi, > > I found this message in my syslog: > > usb-storage: This device (07cf,1001,5010 S 05 P 01) has an unneeded Protocol entry > in unusual_devs.h > Please send a copy of this message to <[EMAIL PROTECTED]> > > # uname -a > Linux bow 2.6.4-gentoo #12 Thu M

[linux-usb-devel] Ghost on /proc..

2004-04-06 Thread Kari Veneranta
Hi. Is it possible that kernel don't update /proc/bus/usb/devices information when i plug my device in? I am trying to do my own usb device using Atmel 43USB355 uC. They did provide some start up images whit the dev kit and i loaded one example from them and it seemed work in fedora and windows ok

[linux-usb-devel] VIRUS (Worm/NetSky.P) IN YOUR MAIL

2004-04-06 Thread amavisd-new
VIRUS ALERT Our virus checker found virus: Worm/NetSky.P in your email to the following recipient: -> [EMAIL PROTECTED] Delivery of the email was stopped! Please check your system for viruses, or ask your system administrator to do so. For your reference, here are headers from your email: -

[linux-usb-devel] Re: 2.6.4: disabling SCSI support not possible

2004-04-06 Thread Marc-Christian Petersen
On Tuesday 06 April 2004 12:46, Marc-Christian Petersen wrote: Hi again, > 02_menu-Kconfig-cleanups-09-USB-vs-SCSI-fix.patch > Fix SCSI dependency for USB-Storage support. > - Rip out "select SCSI" > - Make a comment when SCSI is not selected grmpf, change !SCSI to SCSI=n. Agai

[linux-usb-devel] Re: 2.6.4: disabling SCSI support not possible

2004-04-06 Thread Marc-Christian Petersen
On Tuesday 06 April 2004 10:42, Russell King wrote: Hi, > > Intuitive isn't the issue, if you can't figure out why you can't turn > > off SCSI, you leave it on, which you need to make USB storage work. If > > you're trying to make a small kernel you presumably would have turned > > off USB if you

[linux-usb-devel] failure notice

2004-04-06 Thread MAILER-DAEMON
Hi. This is the qmail-send program at tsi-gmbh.de. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. <[EMAIL PROTECTED]>: Sorry, no mailbox here by that name. vpopmail (#5.1.1) --- Below this line is a

[linux-usb-devel] Re: bug 2400

2004-04-06 Thread Jens Axboe
On Mon, Apr 05 2004, James Bottomley wrote: > On Sun, 2004-04-04 at 23:33, Patrick Mansfield wrote: > > How is unregister_cdrom(&cd->cdi) called if the device is not open? > > OK, the attached does everything correctly (as I should have done at > first) by using a kobject to hold the compound refe

[linux-usb-devel] Re: bug 2400

2004-04-06 Thread Jens Axboe
On Mon, Apr 05 2004, James Bottomley wrote: > On Mon, 2004-04-05 at 09:03, Jens Axboe wrote: > > Doesn't quite work, how about something like this as a work-around? > > I'm not sure we want to be introducing yet another refcount. What was > the problem? Same as in this thread, cdrom gets unregis

[linux-usb-devel] Card insert event in card reader?

2004-04-06 Thread Timmy Li
Is there any notifications when a card(eg. CF card) is being inserted into a USB card reader? My main purpose is to know if the card is really there. Currently I use a user mode program to scan the SCSI generic driver and send some SCSI commands to see if the card is really there. I think this

[linux-usb-devel] sony hc14 usb-videostream

2004-04-06 Thread Markus Schepp
Hallo, does anybody know, if there is a way to catch the videostream of a dv-cam like the Sony HC14 via USB? Drivers from sony are only available for m$ as far as I know. Many thanks for an answer Markus Schepp --- This SF.Net email is spons