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

2005-09-14 Thread Alan Stern
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 only show up if

Re: [linux-usb-devel] [RFC PATCH] USB: add endpoint information to sysfs

2005-09-14 Thread Alan Stern
On Wed, 14 Sep 2005, Greg KH wrote: > Any objections to me adding this to mainline after 2.6.14 comes out? > I think we now have all of the information that is in > /proc/bus/usb/devices in sysfs. Or does anyone know of anything we are > missing? > > And yes, it's a huge pain to dynamically crea

Re: [linux-usb-devel] High-speed host controller testing for 2.4 kernel

2005-09-14 Thread David Brownell
> From: Nishant Kamat <[EMAIL PROTECTED]> > Date: Mon, 12 Sep 2005 19:24:30 -0500 > > Hi, > > I would like some suggestions for testing a high-speed host controller > driver which is based on a 2.4 kernel. Well, http://www.linux-usb.org/usbtest is the best way to test things, but that's only for

Re: [linux-usb-devel] Testing the USB host controller on linux 2.6.12

2005-09-14 Thread David Brownell
> From: Conio sandiago <[EMAIL PROTECTED]> > Date: Tue, 13 Sep 2005 10:12:09 +0200 > > Hi all > I have a USB host controller on a application board. > The OS is Linux kernel 2.6.12 > Now i want to test the USB host controller. > Please explain Start with http://www.linux-usb.org/usbtest/ and make

RE: [linux-usb-devel] Usb storage devices auto-promoted to scsi2 spec issue

2005-09-14 Thread Timothy Thelin
> That flag already exists. SG_FLAG_LUN_INHIBIT -- see > sg.torque.net for > details. > > Matt Thanks, I somehow missed that. It should solve my problem. Tim --- SF.Net email is sponsored by: Tame your development challenges with Apache's

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

2005-09-14 Thread Bill Rees
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 only show up if the device registered successfully. What abo

Re: [linux-usb-devel] application's close function call

2005-09-14 Thread Greg KH
On Wed, Sep 14, 2005 at 09:57:59AM +0530, Savita H. Neelannava wrote: > > Hi All, > > I am wrtting USB scanner driver is 2.6.11 kernel. The usb scanner driver has been removed from the 2.6 kernel tree a while ago. Please use usbfs instead for this, you do not need a kernel driver for it. thank

Re: [linux-usb-devel] Usb storage devices auto-promoted to scsi2 spec issue

2005-09-14 Thread Matthew Dharm
On Wed, Sep 14, 2005 at 01:18:52PM -0700, Timothy Thelin wrote: > > > It ought to be possible to add a flag that would prevent the > > SCSI midlayer > > from overlaying the LUN bits on top of cdb[1]. Then we could > > still set > > the revision number to 2 and you would be happy. > > Sounds

Re: [linux-usb-devel] Usb storage devices auto-promoted to scsi2 spec issue

2005-09-14 Thread Matthew Dharm
On Wed, Sep 14, 2005 at 12:19:39PM -0700, Timothy Thelin wrote: > > > > Why would a usb-storage device ever report itself as scsi0 > > if it actually > > > supports scsi3? Is it because the USB/ATA bridge spec > > doesn't support asking > > > the device it self, so the usb-subsystem just makes

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

2005-09-14 Thread Giridhar Pemmasani
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 identical. The URB that fails is 2400 bytes long bulk IN URB.

[linux-usb-devel] [RFC PATCH] USB: add endpoint information to sysfs

2005-09-14 Thread Greg KH
Any objections to me adding this to mainline after 2.6.14 comes out? I think we now have all of the information that is in /proc/bus/usb/devices in sysfs. Or does anyone know of anything we are missing? And yes, it's a huge pain to dynamically create sysfs attributes and attribute groups on the f

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

2005-09-14 Thread Alan Stern
On Wed, 14 Sep 2005, David Brownell wrote: > > > The parameter isn't needed, or even usable, without the recursion > > > removed in the previous patch. > > > > These patches look great, and I intend to go through them carefully. At > > first glance, there appears to be a small problem in the pm-

RE: [linux-usb-devel] Usb storage devices auto-promoted to scsi2 spec issue

2005-09-14 Thread Timothy Thelin
> It ought to be possible to add a flag that would prevent the > SCSI midlayer > from overlaying the LUN bits on top of cdb[1]. Then we could > still set > the revision number to 2 and you would be happy. Sounds plausable, but i'm not an expert on the Linux scsi stack to know where the flag

[linux-usb-devel] Fw: [Bugme-new] [Bug 5253] New: usb storage disappears after hotplug

2005-09-14 Thread Andrew Morton
A regression wrt 2.6.11. Begin forwarded message: Date: Wed, 14 Sep 2005 11:04:54 -0700 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Bugme-new] [Bug 5253] New: usb storage disappears after hotplug http://bugzilla.kernel.org/show_bug.cgi?id=5253 Summary: usb storage disa

RE: [linux-usb-devel] Usb storage devices auto-promoted to scsi2 spec issue

2005-09-14 Thread Alan Stern
On Wed, 14 Sep 2005, Timothy Thelin wrote: > > SCSI 3 triggers new and exciting behavior from SCSI core. Note that usb-storage even sets the version number for SCSI-3 devices back to 2. That's because a lot of them report SCSI-3 and then crash when asked to carry out a REPORT LUNS command. It

RE: [linux-usb-devel] Usb storage devices auto-promoted to scsi2 spec issue

2005-09-14 Thread Timothy Thelin
> > Why would a usb-storage device ever report itself as scsi0 > if it actually > > supports scsi3? Is it because the USB/ATA bridge spec > doesn't support asking > > the device it self, so the usb-subsystem just makes an (un? > ;)-educated > > guess? Or is it because it is possible, but the

RE: [linux-usb-devel] Usb storage devices auto-promoted to scsi2 spec issue

2005-09-14 Thread Timothy Thelin
> On Wed, Sep 14, 2005 at 10:45:37AM -0700, Timothy Thelin wrote: > > > > I was curious about the reasoning behind this decision and > how to fix an > > issue that came up because of it. > > The reasoning goes something like this: There are lots of > devices which > report 0, but need the SCS

RE: [linux-usb-devel] Usb storage devices auto-promoted to scsi2 spec issue

2005-09-14 Thread Timothy Thelin
> On Wednesday 14 September 2005 19:45, Timothy Thelin wrote: > > I was curious about the reasoning behind this decision and > how to fix an > > issue that came up because of it. > > ... > > (1) Is easy to do, but is it going to cause other issues? > I'd imagine any > > *usb storage* device tha

Re: [linux-usb-devel] Usb storage devices auto-promoted to scsi2 spec issue

2005-09-14 Thread Matthew Dharm
On Wed, Sep 14, 2005 at 08:29:19PM +0200, Christian Iversen wrote: > On Wednesday 14 September 2005 19:45, Timothy Thelin wrote: > > I was curious about the reasoning behind this decision and how to fix an > > issue that came up because of it. > > ... > > (1) Is easy to do, but is it going to cause

Re: [linux-usb-devel] Usb storage devices auto-promoted to scsi2 spec issue

2005-09-14 Thread Matthew Dharm
On Wed, Sep 14, 2005 at 10:45:37AM -0700, Timothy Thelin wrote: > > I was curious about the reasoning behind this decision and how to fix an > issue that came up because of it. The reasoning goes something like this: There are lots of devices which report 0, but need the SCSI-II 10-byte commands

[linux-usb-devel] Fw: [Bugme-new] [Bug 5250] New: Cannot find USB devices on 2.6.13.1, on ICH4m chipset

2005-09-14 Thread Andrew Morton
A regression. Begin forwarded message: Date: Wed, 14 Sep 2005 07:13:56 -0700 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Bugme-new] [Bug 5250] New: Cannot find USB devices on 2.6.13.1, on ICH4m chipset http://bugzilla.kernel.org/show_bug.cgi?id=5250 Summary: Cannot f

Re: [linux-usb-devel] Usb storage devices auto-promoted to scsi2 spec issue

2005-09-14 Thread Christian Iversen
On Wednesday 14 September 2005 19:45, Timothy Thelin wrote: > I was curious about the reasoning behind this decision and how to fix an > issue that came up because of it. > ... > (1) Is easy to do, but is it going to cause other issues? I'd imagine any > *usb storage* device that reports scsi0 rea

[linux-usb-devel] Usb storage devices auto-promoted to scsi2 spec issue

2005-09-14 Thread Timothy Thelin
I was curious about the reasoning behind this decision and how to fix an issue that came up because of it. Here is the issue found: 1) Some USB storage peripherals identify themselves as following scsi spec 0 (i.e. "we don't follow a spec, we just kinda magically work with some of the commands fo

[linux-usb-devel] [patch 2.6.14-rc1] sl811-hcd minor fixes

2005-09-14 Thread David Brownell
Nothing earth-shattering, these came up from people reading the code not real-world error reports. - Dave Three minor sl811-hcd fixes: - Elminate memory leak on one (rare) disable/shutdown path. - For periodic transfers that don't need to be scheduled, update urb->start_frame to represent t

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

2005-09-14 Thread David Brownell
> > The parameter isn't needed, or even usable, without the recursion > > removed in the previous patch. > > These patches look great, and I intend to go through them carefully. At > first glance, there appears to be a small problem in the pm-usbsusp patch: Not with that patch ... it's actually

[linux-usb-devel] [patch] fix pxa2xx_udc compile warnings

2005-09-14 Thread Richard Purdie
I saw this when compiling the pxa25x_udc driver in the lastest linus git kernel. I've included a patch below as one way of cleaning this up. CC drivers/usb/gadget/pxa2xx_udc.o drivers/usb/gadget/pxa2xx_udc.c: In function `write_ep0_fifo': drivers/usb/gadget/pxa2xx_udc.c:532: warning: passin

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

2005-09-14 Thread Alan Stern
On Tue, 13 Sep 2005, David Brownell wrote: > The parameter isn't needed, or even usable, without the recursion > removed in the previous patch. These patches look great, and I intend to go through them carefully. At first glance, there appears to be a small problem in the pm-usbsusp patch: st