Re: [linux-usb-devel] oops on usb storage device disconnect with 2.6.14-rc1

2005-09-15 Thread James Bottomley
On Thu, 2005-09-15 at 21:52 -0400, Alan Stern wrote: > You're forgetting something: Devices can be removed at any time, no matter > what state the host is in. It's even possible for thread A to be removing > a device while thread B is removing the host. The A thread will interfere > with the B th

Re: [linux-usb-devel] g_file_storage do_wrtie() timeout!

2005-09-15 Thread Alan Stern
On Fri, 16 Sep 2005, xiu zhanyu wrote: > I connect the Gadget to Windows XP , In Windows XP , do_write() > crashed very much! so I can't write file to the gadget accurately !! > > but, I had a test that connecting the gadget to Windows 2K yesterday > ,Great! The Wadget work ok! do_write() crash

Re: [linux-usb-devel] oops on usb storage device disconnect with 2.6.14-rc1

2005-09-15 Thread Alan Stern
On Thu, 15 Sep 2005, Greg KH wrote: > On Thu, Sep 15, 2005 at 05:08:03PM -0400, James Bottomley wrote: > > On Thu, 2005-09-15 at 15:57 -0400, James Bottomley wrote: > > > I haven't had time to review the eh changes, but I was going to reply to > > > the other one (basically there's a better way to

Re: [linux-usb-devel] oops on usb storage device disconnect with 2.6.14-rc1

2005-09-15 Thread Alan Stern
On Thu, 15 Sep 2005, James Bottomley wrote: > Well, I think the symptoms are racing scsi_remove_host() calls and the > solution is to enforce the state model on removal (as in if the host is > already in the remove state, don't try to remove it again). You're forgetting something: Devices can be

Re: [linux-usb-devel] oops on usb storage device disconnect with 2.6.14-rc1

2005-09-15 Thread James Bottomley
On Thu, 2005-09-15 at 16:55 -0700, Mike Anderson wrote: > James Bottomley <[EMAIL PROTECTED]> wrote: > > On Thu, 2005-09-15 at 15:19 -0700, Mike Anderson wrote: > > > A side effect of not applying Alan's previous patch that added > > > SHOST_RECOVERY to the SHOST_CANCEL: state is that we will not m

Re: [linux-usb-devel] g_file_storage do_wrtie() timeout!

2005-09-15 Thread xiu zhanyu
2005/9/16, Alan Stern <[EMAIL PROTECTED]>: > On Wed, 14 Sep 2005, xiu zhanyu wrote: > > > Alan Stern: > > I report debug-log, this log track that I copy a file from Host to > > Device . > > > > I looked at your log, but I can't tell what the problem is. Each time the > host sends a WRITE

Re: [linux-usb-devel] oops on usb storage device disconnect with 2.6.14-rc1

2005-09-15 Thread Mike Anderson
James Bottomley <[EMAIL PROTECTED]> wrote: > On Thu, 2005-09-15 at 15:19 -0700, Mike Anderson wrote: > > A side effect of not applying Alan's previous patch that added > > SHOST_RECOVERY to the SHOST_CANCEL: state is that we will not move to the > > SHOST_CANCEL and subsequently not to SHOST_DEL st

Re: [linux-usb-devel] oops on usb storage device disconnect with 2.6.14-rc1

2005-09-15 Thread Greg KH
On Thu, Sep 15, 2005 at 05:08:03PM -0400, James Bottomley wrote: > On Thu, 2005-09-15 at 15:57 -0400, James Bottomley wrote: > > I haven't had time to review the eh changes, but I was going to reply to > > the other one (basically there's a better way to try to close the device > > add/host remove

[linux-usb-devel] PM for the PXA27x OHCI host

2005-09-15 Thread Todd Poynor
Richard Purdie and I have been sending updates for the same driver... here's a new version of PM support that applies to 2.6.14-rc1 after his "USB PXA-27x OHCI Separate platform code from main driver" patch. Thanks -- Todd Power Management for the Intel XScale PXA27x OHCI USB host controller Sig

Re: [linux-usb-devel] oops on usb storage device disconnect with 2.6.14-rc1

2005-09-15 Thread James Bottomley
On Thu, 2005-09-15 at 15:19 -0700, Mike Anderson wrote: > A side effect of not applying Alan's previous patch that added > SHOST_RECOVERY to the SHOST_CANCEL: state is that we will not move to the > SHOST_CANCEL and subsequently not to SHOST_DEL state if the eh is active > during the start of scsi_

Re: [linux-usb-devel] [PATCH] more device IDs for Option card driver

2005-09-15 Thread Greg KH
On Thu, Sep 15, 2005 at 08:53:36PM +0200, Matthias Urlichs wrote: > Added support for HUAWEI E600 and Audiovox AirCard > > User reports say that these devices work without driver modification. > > Signed-Off-By: Matthias Urlichs <[EMAIL PROTECTED]> > CC: linux-usb-devel@lists.sourceforge.net Ugh

Re: [linux-usb-devel] oops on usb storage device disconnect with 2.6.14-rc1

2005-09-15 Thread Mike Anderson
James Bottomley <[EMAIL PROTECTED]> wrote: > On Thu, 2005-09-15 at 15:57 -0400, James Bottomley wrote: > > I haven't had time to review the eh changes, but I was going to reply to > > the other one (basically there's a better way to try to close the device > > add/host remove race using the host st

Re: [linux-usb-devel] nitpick in hub.c:usb_new_device()

2005-09-15 Thread Bill Rees
Alan Stern wrote: On Wed, 14 Sep 2005, Bill Rees wrote: Hi All, While working on a driver for an in-house built usb board, I found that even when the board failed to register the id strings were printed out. This ended up confusing me for a short while as I expected the strings to on

Re: [linux-usb-devel] oops on usb storage device disconnect with 2.6.14-rc1

2005-09-15 Thread James Bottomley
On Thu, 2005-09-15 at 15:57 -0400, James Bottomley wrote: > I haven't had time to review the eh changes, but I was going to reply to > the other one (basically there's a better way to try to close the device > add/host remove race using the host state model). > > Let me complete the SCSI process a

Re: [linux-usb-devel] g_file_storage do_wrtie() timeout!

2005-09-15 Thread Alan Stern
On Wed, 14 Sep 2005, xiu zhanyu wrote: > Alan Stern: > I report debug-log, this log track that I copy a file from Host to > Device . > I looked at your log, but I can't tell what the problem is. Each time the host sends a WRITE command, the first 512 bytes get written okay but then the

[linux-usb-devel] Re: [patch 2.6.14-rc1, 3/5] remove usb_suspend_device() parameter

2005-09-15 Thread David Brownell
> There are in fact two distinct but related problems here. One is the > problem you mention, in which usbcore doesn't call the root-hub-suspend > methods if CONFIG_USB_SUSPEND isn't set. Or in fact, ANY hub suspend methods... to be fixed at some point. :) > But I was talking about a > diff

Re: [linux-usb-devel] oops on usb storage device disconnect with 2.6.14-rc1

2005-09-15 Thread James Bottomley
On Thu, 2005-09-15 at 12:29 -0700, Greg KH wrote: > Ah, thanks for the pointer. SCSI developers, any objections to these > patches being merged? I haven't had time to review the eh changes, but I was going to reply to the other one (basically there's a better way to try to close the device add/ho

Re: [linux-usb-devel] How to mount a usb stick without hotplug config

2005-09-15 Thread Pete Zaitcev
On Thu, 15 Sep 2005 13:41:03 -0400 (EDT), Alan Stern <[EMAIL PROTECTED]> wrote: > On Thu, 15 Sep 2005, Franck wrote: > > > OK, I didn't added SCSI disk support in my kernel. It's not > > automatically selected when selecting USB mass storage driver, is > > there any reasons ? > > Yes. USB mass s

[linux-usb-devel] Re: 2.6.13-mm3 (general protection fault)

2005-09-15 Thread Andrew Morton
Andrew Morton <[EMAIL PROTECTED]> wrote: > > Dominik Karall <[EMAIL PROTECTED]> wrote: > > > > On Monday 12 September 2005 11:43, Andrew Morton wrote: > > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.13/2.6.13 > > >-mm3/ > > > > hi, > > again a general protection f

[linux-usb-devel] Re: 2.6.13-mm3 (general protection fault)

2005-09-15 Thread Andrew Morton
Dominik Karall <[EMAIL PROTECTED]> wrote: > > On Monday 12 September 2005 11:43, Andrew Morton wrote: > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.13/2.6.13 > >-mm3/ > > hi, > again a general protection fault... scsi or USB I guess. Does the crash happen without loading

Re: [linux-usb-devel] oops on usb storage device disconnect with 2.6.14-rc1

2005-09-15 Thread Greg KH
On Thu, Sep 15, 2005 at 03:23:11PM -0400, Alan Stern wrote: > On Thu, 15 Sep 2005, Greg KH wrote: > > > Here's a nice oops I get when removing a usb-storage device with > > 2.6.14-rc1. I've also created a bug for this for those who like to > > track bugzilla: > > http://bugzilla.kernel.org/sh

Re: [linux-usb-devel] oops on usb storage device disconnect with 2.6.14-rc1

2005-09-15 Thread Alan Stern
On Thu, 15 Sep 2005, Greg KH wrote: > Here's a nice oops I get when removing a usb-storage device with > 2.6.14-rc1. I've also created a bug for this for those who like to > track bugzilla: > http://bugzilla.kernel.org/show_bug.cgi?id=5265 > > Any ideas? Patches for this bug plus two othe

[linux-usb-devel] oops on usb storage device disconnect with 2.6.14-rc1

2005-09-15 Thread Greg KH
Here's a nice oops I get when removing a usb-storage device with 2.6.14-rc1. I've also created a bug for this for those who like to track bugzilla: http://bugzilla.kernel.org/show_bug.cgi?id=5265 Any ideas? thanks, greg k-h --- hub 1-3:1.0: state 5 ports 4 chg

[linux-usb-devel] [PATCH] more device IDs for Option card driver

2005-09-15 Thread Matthias Urlichs
Added support for HUAWEI E600 and Audiovox AirCard User reports say that these devices work without driver modification. Signed-Off-By: Matthias Urlichs <[EMAIL PROTECTED]> CC: linux-usb-devel@lists.sourceforge.net --- diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c --- a

[linux-usb-devel] Fw: [Bugme-new] [Bug 5258] New: usb stick has only usb 1.1 speed when it should be 2.0

2005-09-15 Thread Andrew Morton
Begin forwarded message: Date: Thu, 15 Sep 2005 03:42:53 -0700 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Bugme-new] [Bug 5258] New: usb stick has only usb 1.1 speed when it should be 2.0 http://bugzilla.kernel.org/show_bug.cgi?id=5258 Summary: usb stick has only usb

Re: [linux-usb-devel] How to mount a usb stick without hotplug config

2005-09-15 Thread Alan Stern
On Thu, 15 Sep 2005, Franck wrote: > 2005/9/15, Alan Stern <[EMAIL PROTECTED]>: > > On Thu, 15 Sep 2005, Franck wrote: > > > > > OK, I didn't added SCSI disk support in my kernel. It's not > > > automatically selected when selecting USB mass storage driver, is > > > there any reasons ? > > > > Y

Re: [linux-usb-devel] How to mount a usb stick without hotplug config

2005-09-15 Thread Franck
2005/9/15, Alan Stern <[EMAIL PROTECTED]>: > On Thu, 15 Sep 2005, Franck wrote: > > > OK, I didn't added SCSI disk support in my kernel. It's not > > automatically selected when selecting USB mass storage driver, is > > there any reasons ? > > Yes. USB mass storage devices need not be disk drive

Re: [linux-usb-devel] How to mount a usb stick without hotplug config

2005-09-15 Thread Franck
2005/9/15, Alan Stern <[EMAIL PROTECTED]>: > On Thu, 15 Sep 2005, Franck wrote: > > > Hi Alan > > > > Acutally every drivers scsi_mod, sd_mod, and usb-storage are built in > > the kernel. BTW, does that mean hotplug thing is useless ? I added > > some traces in the driver, I attached them. Does t

Re: [linux-usb-devel] How to mount a usb stick without hotplug config

2005-09-15 Thread Alan Stern
On Thu, 15 Sep 2005, Franck wrote: > OK, I didn't added SCSI disk support in my kernel. It's not > automatically selected when selecting USB mass storage driver, is > there any reasons ? Yes. USB mass storage devices need not be disk drives. You might have a USB DVD drive, so the disk driver i

Re: [linux-usb-devel] How to mount a usb stick without hotplug config

2005-09-15 Thread Alan Stern
On Thu, 15 Sep 2005, Franck wrote: > Hi Alan > > Acutally every drivers scsi_mod, sd_mod, and usb-storage are built in > the kernel. BTW, does that mean hotplug thing is useless ? I added > some traces in the driver, I attached them. Does the communication > look good to you ? The communication

Re: [linux-usb-devel] How to mount a usb stick without hotplug config

2005-09-15 Thread Franck
Hi Alan Acutally every drivers scsi_mod, sd_mod, and usb-storage are built in the kernel. BTW, does that mean hotplug thing is useless ? I added some traces in the driver, I attached them. Does the communication look good to you ? Thanks. -- Franck minicom.cap Description: Bina

Re: [linux-usb-devel] How to mount a usb stick without hotplug config

2005-09-15 Thread Alan Stern
On Thu, 15 Sep 2005, Franck wrote: > Hi ! > > I have finally implemented a part of my HCD and it seems to > communicate with the usb stick (a Profilic one) that I have. But I > don't know how to mount it wihout hotplug. I tried to install udev and > diethotplug but the whole thing doesn't work fo

[linux-usb-devel] How to mount a usb stick without hotplug config

2005-09-15 Thread Franck
Hi ! I have finally implemented a part of my HCD and it seems to communicate with the usb stick (a Profilic one) that I have. But I don't know how to mount it wihout hotplug. I tried to install udev and diethotplug but the whole thing doesn't work for now. I tried: mknod sda1 b 8 1; mount

[linux-usb-devel] USB device driver binding.

2005-09-15 Thread Nitin Mahajan
Hi! I am writing a bulk transfer driver for data xfer through host-to-host xfer cable. I don't want to use the usbnet driver for the same. This driver is based on usb-skeleton.c and presently tested with PL-2301 chips. My problem is that I want the driver binding to happen for all such kind of

Re: [linux-usb-devel] Re: High speed device initialization

2005-09-15 Thread Alan Stern
On Wed, 14 Sep 2005, Giridhar Pemmasani wrote: > I haven't been able to understand why the transfers fail under Linux whereas > it works fine under Windows (note that I am using the same Windows driver > in Linux, albeit with ndiswrapper). All URBs exchanged until the failed URB > seem to be ident