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

2004-04-05 Thread Oliver Neukum
> The point is that all the disconnection event does is inform a subsystem > that the entity represented by the other object has gone. What it > chooses to do with the information is up to it. It could set it's own > connected object to degraded, never use the other object again and drop > the r

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

2004-04-05 Thread James Bottomley
On Mon, 2004-04-05 at 18:23, David Brownell wrote: > "Irrelevant" is pointlessly strong, even for what I'm guessing > you really mean to be saying. No, it's the very point. If we have to enforce ordering on the event propagation across subsystems, that can't be done without inter subsystem synchr

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

2004-04-05 Thread David Brownell
James Bottomley wrote: On Sun, 2004-04-04 at 22:54, David Brownell wrote: Which directly follows from what I said ... USB propagates that knowledge in carefully defined ways. Other layers can do the same, although clearly state associated with open file descriptors needs to use a slightly differ

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

2004-04-05 Thread docks
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 Mar 25 01:14:30 CET 2004 i686 Intel(R) Pentium(R) M pr

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

2004-04-05 Thread Peter Santoro
Second test result from IBM PC300PL with usb-storage debugging enabled. I'll try Pete Zaitcev's patch next. Thanks for your help, Peter Santoro == ksymoops 2.4.9 on i686 2.4.25. Options used -v /usr/src/linux/vmlinux (specified

[linux-usb-devel] Re: bug 2400

2004-04-05 Thread Patrick Mansfield
On Sun, Apr 04, 2004 at 11:17:55PM -0400, Alan Stern wrote: > As it turns out, the block layer guarantees that when sd_open runs the > bd_disk pointer will be valid. It does this by following the pattern I > mentioned in an earlier message -- drivers/base/map.c uses a > subsystem-wide semaphore,

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

2004-04-05 Thread James Bottomley
On Sun, 2004-04-04 at 22:54, David Brownell wrote: > Which directly follows from what I said ... USB propagates > that knowledge in carefully defined ways. Other layers can > do the same, although clearly state associated with open file > descriptors needs to use a slightly different strategy. A

[linux-usb-devel] Re: bug 2400

2004-04-05 Thread James Bottomley
On Sun, 2004-04-04 at 22:17, Alan Stern wrote: > On 4 Apr 2004, James Bottomley wrote: > > On Sun, 2004-04-04 at 12:46, Alan Stern wrote: > > > Ah, you have left out the third, bad alternative: open succeeds, user gets > > > an fd that points to a deallocated device. More details below... > > >

Re: [linux-usb-devel] Kernel OOPS in usb_serial_disconnect (usbserial) 2.4.22

2004-04-05 Thread Greg KH
On Sat, Apr 03, 2004 at 07:36:03PM -0800, Robert White wrote: > The usbserial.o driver module reliably/repeatedly produces an oops. This should be fixed in the latest kernel version. If not, please let us know. thanks, greg k-h --- This SF.N

[linux-usb-devel] Re: bug 2400

2004-04-05 Thread James Bottomley
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 references. I've stressed this one nicely. Unfortunately

Re: [linux-usb-devel] panic on ThinkPad X40, 2.6.5-rc3-mm4, uhci, bluetooth usb

2004-04-05 Thread Alan Stern
On Sun, 4 Apr 2004, Adam Goode wrote: > If I have no USB devices plugged in, I get no crashes at all. > > When I plug in my trusty old ov511+ camera, I either get a solid lockup > right away (with no messages displayed at all), or I get one after > suspend/resume. > > I thought because these sta

[linux-usb-devel] Re: bug 2400

2004-04-05 Thread James Bottomley
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? James --- This SF.Net email is sponsored

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

2004-04-05 Thread Pete Zaitcev
On Mon, 05 Apr 2004 15:53:48 -0400 Peter Santoro <[EMAIL PROTECTED]> wrote: > >>EIP; c021cc1b<= > Trace; c021bfb7 > Trace; c0108a74 > Trace; c010b118 > Trace; c0146ed1 > Trace; c013a7d3 > Trace; c013ab93 > Trace; c010734f > >>EIP; c0241cdb<= > > Trace; c0241077 > Trac

[linux-usb-devel] Problem with iPod (USB 2.0) and UDEV (running gentoo)

2004-04-05 Thread Devsforev
Hey everyone. I just recently upgraded to UDEV as an alternative to devfs. MOST things work, but I seem to have trouble with my iPod. I am using the USB 2.0 setup, and everything worked fine before. In my script when GTKPOD quit, I would have it execute something like this: 1) RMMOD the follow

[linux-usb-devel] kernel oops in 2.6.5

2004-04-05 Thread Daniel Lakeland
When attempting to run a program that sends data down the Keyspan PDA usb serial port: Kernel 2.6.5 fresh off the kernel.org, it also happened with 2.6.4, similar errors I think. This works with my 2.4.22 kernel. Unfortunately it's a server that I can't do a lot of testing on (serves email and su

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

2004-04-05 Thread Alan Stern
On Mon, 5 Apr 2004, Peter Santoro wrote: > Below are the results of running my first test (boot PC, login as root, > insert lexar jumpdrive, attempt to mount the vfat formatted device). > When I ran the test on my IBM PC300PL 6862-U8U (500Mhz P3), the mount > command hung for ~30 sec and then t

Re: [linux-usb-devel] [PATCH] Do not wait for release of unclaimed interface (2.6.5-rc2)

2004-04-05 Thread Alan Stern
On Mon, 5 Apr 2004, Martin Habets wrote: > To be honest, it seemed logical at the time... Somehow the completion > just does not happen. > > What I gather from the other mails is that you consider the fix temporary. > Would it be of use if I try to track this one down? (with out the patch > I gue

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

2004-04-05 Thread Peter Santoro
The crash dump results from my Dell Inspiron are listed below. I also tried the test again on my ASUS PC and it also crashed this time. The difference between the 1st and 2nd ASUS PC test (which may mean nothing with this minimal amount of testing) is that I inserted the Lexar JumpDrive into

Re: [linux-usb-devel] Usb patch : interval of iso urb doesn't get initialized.

2004-04-05 Thread areversat
If you want me to i can test it tonight to see if it does correct the problem for which i initially posted. I'll let you know if it does. Bye Le lun 05/04/2004 à 20:40, David Brownell a écrit : > areversat wrote: > > Hi, I'd like to know why the patch didn't get included in the 2.6.5 is > > it the

Re: [linux-usb-devel] Usb patch : interval of iso urb doesn't get initialized.

2004-04-05 Thread David Brownell
areversat wrote: Hi, I'd like to know why the patch didn't get included in the 2.6.5 is it the lack of time or anything else ? Nobody confirmed that it actually did the right thing... But I was going to dig it up and forward it to Greg for the 2.6.6-pre patches (and 2.6.5-mm), since it looks right

Re: [linux-usb-devel] Usb patch : interval of iso urb doesn't get initialized.

2004-04-05 Thread areversat
Hi, I'd like to know why the patch didn't get included in the 2.6.5 is it the lack of time or anything else ? Thanks, Antoine REVERSAT aka Crevetor Le jeu 18/03/2004 à 00:08, David Brownell a écrit : > Olaf Hering wrote: > > On Wed, Mar 17, David Brownell wrote: > > >>Actually what's needed is

Re: [linux-usb-devel] [PATCH] Do not wait for release of unclaimed interface (2.6.5-rc2)

2004-04-05 Thread Martin Habets
On Sat, Apr 03, 2004 at 08:11:50PM -0500, Alan Stern wrote: > On Sun, 4 Apr 2004 [EMAIL PROTECTED] wrote: > > > Hi, > > > > I have an Epson Stylus CX3200. When I turn it off I see: > > > > Apr 2 00:46:04 palantir8 kernel: usb 1-2: USB disconnect, address 3 > > Apr 2 00:46:04 palantir8 kernel:

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

2004-04-05 Thread Peter Santoro
Ok, I ran the same test as previously reported earlier today on my Dell Inspiron 3800 (700Mhz P3, slackware 9.1, kernel 2.4.25, hotplug 2003_08_05). The mount command also hung for ~30 secs before crashing. I will submit a ksymoops crash dump later today, after I copy the info off the screen.

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

2004-04-05 Thread Peter Santoro
Below are the results of running my first test (boot PC, login as root, insert lexar jumpdrive, attempt to mount the vfat formatted device). When I ran the test on my IBM PC300PL 6862-U8U (500Mhz P3), the mount command hung for ~30 sec and then the system crashed. When I ran the test on my hom

[linux-usb-devel] Re: bug 2400

2004-04-05 Thread James Bottomley
On Sun, 2004-04-04 at 23:33, Patrick Mansfield wrote: > How is unregister_cdrom(&cd->cdi) called if the device is not open? Yes, I need to pull the same kobject trick that sd does for the same reason. James --- This SF.Net email is sponsored

[linux-usb-devel] Re: bug 2400

2004-04-05 Thread Jens Axboe
On Fri, Apr 02 2004, James Bottomley wrote: > On Thu, 2004-04-01 at 18:32, James Bottomley wrote: > > Now, the questions are, whose issue is this and how do we fix it? I can > > see that a driver needs early notification of unplugs so it can deny all > > access to a gone device. On the other hand

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

2004-04-05 Thread Oliver Neukum
> > Open process: Disconnect process: > > > > Get minor number from inode > > Lookup USB interface using > > minor number > > Get device pointer from the > > interface's private data > > and check it's not NULL > > This is what's wrong. Here you

Re: [linux-usb-devel] Problem between mass storage & usbdevfs

2004-04-05 Thread Oliver Neukum
Am Samstag, 3. April 2004 03:54 schrieb David Brownell: > >We've talked about this before on the mailing lists... we've never > > come up with a good solution. > > It seems to me that the problem screams for a semaphore. The question > is just which semaphore. > >>> > >>>That,

[linux-usb-devel] Re: [patch] datafab fix and unusual devices

2004-04-05 Thread Andries Brouwer
On Mon, Apr 05, 2004 at 08:39:56AM -0300, Marcelo Tosatti wrote: > On Tue, Mar 30, 2004 at 01:56:14PM -0800, Greg KH wrote: > > On Tue, Mar 30, 2004 at 12:44:09AM +0200, [EMAIL PROTECTED] wrote: > > > datafab.c has an often-seen bug: the SCSI READ_CAPACITY command > > > does not need the number of

[linux-usb-devel] Re: [patch] datafab fix and unusual devices

2004-04-05 Thread Marcelo Tosatti
On Tue, Mar 30, 2004 at 01:56:14PM -0800, Greg KH wrote: > On Tue, Mar 30, 2004 at 12:44:09AM +0200, [EMAIL PROTECTED] wrote: > > datafab.c has an often-seen bug: the SCSI READ_CAPACITY command > > does not need the number of sectors but the last sector. > > Applied, thanks. Hi guys, We also pr

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

2004-04-05 Thread Sylvain Munaut
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 and that's good news f

Re: [linux-usb-devel] [PATCH] (linux 2.4.25) hangup on disconnect for usbserial module

2004-04-05 Thread Oliver Neukum
Am Montag, 5. April 2004 07:49 schrieb Robert White: > Pasting the whole program is impractical, so here is the psudocode > > Open /dev/usb/ttyUSB0 > Build Poll structure with events = POLLIN for this descriptor > Call poll(&structure,1,-1) > > (Without the patch) If you pull the usb cable out of t

[linux-usb-devel] Re: pilot USB HotSync broken in -mm kernels

2004-04-05 Thread Norbert Preining
Hello USB List, hello Andrew! On Mon, 05 Apr 2004, Andrew Morton wrote: > Hopefully someone on linux-usb can help. There's a >400k USB patch in -mm > and I wouldn't know which change might have caused this. One more probe point: I could successfully install SMALL files (a few k), but as soon as

[linux-usb-devel] Re: pilot USB HotSync broken in -mm kernels

2004-04-05 Thread Andrew Morton
Hopefully someone on linux-usb can help. There's a >400k USB patch in -mm and I wouldn't know which change might have caused this. Norbert Preining <[EMAIL PROTECTED]> wrote: > > Hi Andrew, hil lists! > > USB HotSyncing is not working ATM with -mm kernels: I tried 2.6.5 > (vanilla) and had no