Re: [Barry-devel] Multiple USB Endpoints

2007-11-23 Thread Alan Stern
On Fri, 23 Nov 2007, Chris Frey wrote: > On Fri, Nov 23, 2007 at 02:45:29PM -0500, Chris Frey wrote: > > > What's the conflict? > > > > When a Blackberry Pearl is plugged in, showing product ID 0004, and > > while the usb_storage module is loaded, I get the following error > > when trying to set

Re: [Barry-devel] Multiple USB Endpoints

2007-11-23 Thread Chris Frey
On Fri, Nov 23, 2007 at 02:45:29PM -0500, Chris Frey wrote: > > What's the conflict? > > When a Blackberry Pearl is plugged in, showing product ID 0004, and > while the usb_storage module is loaded, I get the following error > when trying to set the configuration: > > Usb::Error caught: (-16, cou

Re: [Barry-devel] Multiple USB Endpoints

2007-11-23 Thread Chris Frey
On Fri, Nov 23, 2007 at 09:55:54PM +0100, Simon Ruggier wrote: > If there are no devices with more than one functionally different > configuration, then why bother even checking? It turned out that it wasn't hard to check, so I coded it up anyway. The proper logic is now coded explicitly, for both

Re: [Barry-devel] Multiple USB Endpoints

2007-11-23 Thread Simon Ruggier
If there are no devices with more than one functionally different configuration, then why bother even checking? - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.at

Re: [Barry-devel] Multiple USB Endpoints

2007-11-23 Thread Chris Frey
On Fri, Nov 23, 2007 at 09:43:49PM +0100, Simon Ruggier wrote: > Are there other configurations for the devices in question? Some old Blackberries (like the old 7750 I have here) seem to show two identical configurations, with the same interfaces in them. But more recent Blackberries seem to only

Re: [Barry-devel] Multiple USB Endpoints

2007-11-23 Thread Martin Owens
> Are there other configurations for the devices in question? Nope, USB Device 0fca:0004: + Main Configuration - Mass Storage Interface Endpoint 0 Endpoint 1 - Database Interface Endpoints 2..10 --

Re: [Barry-devel] Multiple USB Endpoints

2007-11-23 Thread Simon Ruggier
On 11/23/07, Chris Frey <[EMAIL PROTECTED]> wrote: > I'm trying to determine if there is a way to read the current config > through libusb, in order to avoid calling set_configuration() if it is > already using #1. Are there other configurations for the devices in question? --

Re: [Barry-devel] Multiple USB Endpoints

2007-11-23 Thread Chris Frey
On Fri, Nov 23, 2007 at 09:28:17PM +0100, Simon Ruggier wrote: > According to LDD3 chapter 13 (http://lwn.net/Kernel/LDD3/), multiple > configuration devices are rare, and interfaces can be claimed by > separate drivers (i.e. I have a Logitech webcam with a mic in it, and > an ALSA driver handles t

Re: [Barry-devel] Multiple USB Endpoints

2007-11-23 Thread Simon Ruggier
On 11/23/07, Chris Frey <[EMAIL PROTECTED]> wrote: > I know the configuration exists, since the same code works when > the usb_storage module is not loaded. > > I've always assumed that this conflict is a fundamental issue when > two programs try to access the same USB device (even if one is a kern

Re: [Barry-devel] Multiple USB Endpoints

2007-11-23 Thread Chris Frey
On Thu, Nov 22, 2007 at 09:47:04PM -0500, Alan Stern wrote: > You are mixing up "configuration" and "interface". I think you mean > "interface" here (configurations don't have classes but interfaces do). Oops, yes, I had those reversed. > > The problem is that usb_storage sees the Mass Storage

Re: [Barry-devel] Multiple USB Endpoints

2007-11-22 Thread Alan Stern
On Thu, 22 Nov 2007, Martin Owens wrote: > > Now you're sounding even more confused. Which are you talking about, > > configurations or interfaces? > > I believe it is a confusion; I had to read the usb spec a few times in > order to understand what is supposed to happen and what is going on > h

Re: [Barry-devel] Multiple USB Endpoints

2007-11-22 Thread Martin Owens
> Now you're sounding even more confused. Which are you talking about, > configurations or interfaces? I believe it is a confusion; I had to read the usb spec a few times in order to understand what is supposed to happen and what is going on here. > You say the set_configuration call returns an

Re: [Barry-devel] Multiple USB Endpoints

2007-11-22 Thread Alan Stern
On Thu, 22 Nov 2007, Chris Frey wrote: > On Fri, Nov 16, 2007 at 01:59:16PM -0500, Alan Stern wrote: > > > On Fri, 16 Nov 2007, Martin Owens wrote: > > > As you can see it needs to be put in the second mode anyway, but there > > > is a third mode which is just the database stuff, without the mass

Re: [Barry-devel] Multiple USB Endpoints

2007-11-22 Thread Chris Frey
On Fri, Nov 16, 2007 at 01:59:16PM -0500, Alan Stern wrote: > > On Fri, 16 Nov 2007, Martin Owens wrote: > > As you can see it needs to be put in the second mode anyway, but there > > is a third mode which is just the database stuff, without the mass > > storage device. I believe the existing barry