Re: [linux-usb-devel] Re: Question about OTG operations

2006-03-01 Thread Steve Calfee
From: David Brownell <[EMAIL PROTECTED]> To: [email protected] CC: "Steve Calfee" <[EMAIL PROTECTED]> Subject: Re: [linux-usb-devel] Re: Question about OTG operations Date: Tue, 28 Feb 2006 23:42:35 -0800 On Tuesday 28 February 2006 11:03 pm, Steve Calfe

Re: [linux-usb-devel] Re: Question about OTG operations

2006-02-28 Thread David Brownell
On Tuesday 28 February 2006 11:03 pm, Steve Calfee wrote: > Yes, it is a huge drawback to the spec. Being host does not say you provide > power, being "A" connector does. How do you communicate the fact that your > handheld can use and get power from a device if it is plugged in properly. That

Re: [linux-usb-devel] Re: Question about OTG operations

2006-02-28 Thread Steve Calfee
From: David Brownell <[EMAIL PROTECTED]> To: "Steve Calfee" <[EMAIL PROTECTED]> CC: [email protected] Subject: Re: [linux-usb-devel] Re: Question about OTG operations Date: Tue, 28 Feb 2006 22:46:42 -0800 On Tuesday 28 February 2006 10:20 pm, Steve C

RE: [linux-usb-devel] Re: Question about OTG operations

2006-02-28 Thread Steve Calfee
From: Li Yang-r58472 <[EMAIL PROTECTED]> To: Steve Calfee <[EMAIL PROTECTED]>, [EMAIL PROTECTED] CC: [email protected] Subject: RE: [linux-usb-devel] Re: Question about OTG operations Date: Wed, 1 Mar 2006 14:44:31 +0800 > -Original Message- > From

Re: [linux-usb-devel] Re: Question about OTG operations

2006-02-28 Thread David Brownell
On Tuesday 28 February 2006 10:20 pm, Steve Calfee wrote: > So for instance if you have a battery powered PC and wish to connect it to a > powered printer or a display device it would be nice if the A connector goes > into the "peripheral" and the b into the "computer" that way the computer > w

RE: [linux-usb-devel] Re: Question about OTG operations

2006-02-28 Thread Li Yang-r58472
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Steve > Calfee > Sent: Wednesday, March 01, 2006 2:21 PM > To: [EMAIL PROTECTED] > Cc: [email protected] > Subject: RE: [linux-usb-devel] Re: Question about

[linux-usb-devel] RE: Question about OTG operations

2006-02-28 Thread Li Yang-r58472
> -Original Message- > From: David Brownell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 01, 2006 12:59 PM > To: Li Yang-r58472 > Cc: [email protected] > Subject: Re: Question about OTG operations > > On Tuesday 28 February 2006 7:44 pm, Li Yang-r58472 wrote: > >

RE: [linux-usb-devel] Re: Question about OTG operations

2006-02-28 Thread Steve Calfee
On Tuesday 28 February 2006 7:44 pm, Li Yang-r58472 wrote: > Thanks Dave, > > So the current application of HNP is only to correct wrongly connected cable? That's not what I said, but it _is_ the only scenario that's completely spelled out in the specs. One other really useful aspect of OTG

[linux-usb-devel] Re: Question about OTG operations

2006-02-28 Thread David Brownell
On Tuesday 28 February 2006 7:44 pm, Li Yang-r58472 wrote: > Thanks Dave, > > So the current application of HNP is only to correct wrongly connected cable? That's not what I said, but it _is_ the only scenario that's completely spelled out in the specs. Once HNP is enabled, if the host side inte

[linux-usb-devel] RE: Question about OTG operations

2006-02-28 Thread Li Yang-r58472
Thanks Dave, So the current application of HNP is only to correct wrongly connected cable? I don't think it's the original target of adding OTG to USB. Though we don't have much examples of OTG usage in the market, I do think OTG is to add the peer-to-peer ability to the previous client/serve

Re: [linux-usb-devel] Re: Question about OTG operations

2006-02-28 Thread Stephen J. Gowdy
FYI the original didn't make it to the list due to an HTML attachment. On Tue, 28 Feb 2006, David Brownell wrote: > On Tuesday 28 February 2006 4:15 am, Li Yang-r58472 wrote: > > > > I'm doing OTG support on a Freescale PowerPC platform. > > The basic ID specified role change can work correctly.

[linux-usb-devel] Re: Question about OTG operations

2006-02-28 Thread David Brownell
On Tuesday 28 February 2006 4:15 am, Li Yang-r58472 wrote: > > I'm doing OTG support on a Freescale PowerPC platform. > The basic ID specified role change can work correctly. Good ... that's the first milestone! I'm assuming you're using a 2.6.10 (or newer) kernel, since that's where the first O

[linux-usb-devel] Re: question for add multi-serial port to usb serial driver

2005-12-13 Thread Ian Abbott
On 13/12/05 09:35, tong changda wrote: I see qualcomm's inf file that has this %xxx% = QportInstall6k, SB\VID_1234&PID_&MI_01 %xxx% = QportInstallNMEA, USB\VID_1234&PID_&MI_02 xxx% = QportInstalltest, USB\VID_1234&PID_&MI_00 all this three has same VID&PID, diff only on

Re: [linux-usb-devel] Re: Question about evdev

2005-02-16 Thread Vojtech Pavlik
On Wed, Feb 16, 2005 at 12:43:14PM -0500, Dan Streetman wrote: > > On Wed, 16 Feb 2005, Vojtech Pavlik wrote: > > >It doesn't flip them while it should flip the Y coordinate. This is > >because many touchscreens have [0,0] in their bottom left corner by > >hardware, being in the 1st quadrant, whi

[linux-usb-devel] Re: Question about evdev

2005-02-15 Thread Vojtech Pavlik
On Tue, Feb 15, 2005 at 06:40:37PM -0500, Dan Streetman wrote: > > Hi Vojtech, > > I have a question about the "contract" of the evdev interface... > > I have 2 touch screens, both USB. Both of them have drivers (hid-input > and mtouchusb) that provide ABS_X and ABS_Y coordinates to the input

[linux-usb-devel] Re: question for Greg : NULL pointer dereference exception in bluetooth.c

2004-07-13 Thread Greg KH
On Tue, Jul 13, 2004 at 12:58:47PM +0530, Amol Kailash wrote: > Hi, > > I am trying to write/understand the working of a USB bluetooth driver > by using bluetooth tty driver using bluetooth.c (by Greg > Kroah-Hartman) found in kernel source. I am aware of the hci_usb bluez > source, tested it and

Re: [linux-usb-devel] Re: question on hid usage pages

2004-01-28 Thread Oliver Neukum
Am Mittwoch, 28. Januar 2004 11:44 schrieb Brad Hards: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Sun, 25 Jan 2004 22:20 pm, Oliver Neukum wrote: > > Aren't keys who are advertising themselves in that way according to the > > standard declaring themselves not to be keyboards? It seem

Re: [linux-usb-devel] Re: question on hid usage pages

2004-01-28 Thread Vojtech Pavlik
On Wed, Jan 28, 2004 at 01:27:35PM +0100, Oliver Neukum wrote: > Am Mittwoch, 28. Januar 2004 11:44 schrieb Brad Hards: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > On Sun, 25 Jan 2004 22:20 pm, Oliver Neukum wrote: > > > Aren't keys who are advertising themselves in that way acco

Re: [linux-usb-devel] Re: question on hid usage pages

2004-01-28 Thread Brad Hards
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 25 Jan 2004 22:20 pm, Oliver Neukum wrote: > Aren't keys who are advertising themselves in that way according to the > standard declaring themselves not to be keyboards? It seems to me that > such devices should use the system control usage of

Re: [linux-usb-devel] Re: question on hid usage pages

2004-01-27 Thread Brad Hards
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 09 Jan 2004 20:12 pm, Vojtech Pavlik wrote: > > I have been notified that there are devices of this type which would > > rather be accessed through hiddev. Reading the usage page specification > > which calls such devices "application specific"

Re: [linux-usb-devel] Re: question on hid usage pages

2004-01-27 Thread Oliver Neukum
Am Sonntag, 25. Januar 2004 02:38 schrieb Brad Hards: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Fri, 09 Jan 2004 20:12 pm, Vojtech Pavlik wrote: > > > I have been notified that there are devices of this type which would > > > rather be accessed through hiddev. Reading the usage page

Fwd: Re: [linux-usb-devel] Re: question on hid usage pages

2004-01-26 Thread Brad Hards
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sorry, wrong reply option in KMail. - -- Forwarded Message -- Subject: Re: [linux-usb-devel] Re: question on hid usage pages Date: Sun, 25 Jan 2004 22:28 pm From: Brad Hards <[EMAIL PROTECTED]> To: Oliver Neukum <[EMAIL

[linux-usb-devel] Re: question on hid usage pages

2004-01-09 Thread Vojtech Pavlik
On Fri, Jan 09, 2004 at 09:42:51AM +0100, Oliver Neukum wrote: > Am Freitag, 9. Januar 2004 08:35 schrieb Vojtech Pavlik: > > On Fri, Jan 09, 2004 at 01:08:40AM +0100, Oliver Neukum wrote: > > > > > Hi Vojtech, hi list, > > > > > > could someone tell me why hid accepts devices with usage page 0xc

[linux-usb-devel] Re: question on hid usage pages

2004-01-09 Thread Oliver Neukum
Am Freitag, 9. Januar 2004 08:35 schrieb Vojtech Pavlik: > On Fri, Jan 09, 2004 at 01:08:40AM +0100, Oliver Neukum wrote: > > > Hi Vojtech, hi list, > > > > could someone tell me why hid accepts devices with usage page 0xc as input > > devices in this check from hid.h: > > #define IS_INPUT_APPLIC

[linux-usb-devel] Re: question on hid usage pages

2004-01-09 Thread Vojtech Pavlik
On Fri, Jan 09, 2004 at 01:08:40AM +0100, Oliver Neukum wrote: > Hi Vojtech, hi list, > > could someone tell me why hid accepts devices with usage page 0xc as input > devices in this check from hid.h: > #define IS_INPUT_APPLICATION(a) (((a >= 0x0001) && (a <= 0x00010008)) || (a == > 0x000100

Re: [linux-usb-devel] Re: Question [WORKS NOW!]

2003-11-28 Thread Kleiner Hampel
David Brownell wrote: > Yeouch! Microsoft's EHCI drivers? From what OS version? > Identical hardware in both cases? So i did the test: Hardware: USB 2.0 storage (supporting max sectors = 240) connected to usb extension PCI card. Tested Partition: Partition 1 (18GB), FAT32 Filesize: 799MB 1: Wi

Re: [linux-usb-devel] Re: Question [WORKS NOW!]

2003-11-28 Thread Kleiner Hampel
Alan Stern wrote: > To be safest, I would choose multiples of 8. I don't know to what extent > it matters. The max. value i can choose is 135, but you said a multiple of 8 is besser, so now i'm using value 128... regards, hampel --- This SF

Re: [linux-usb-devel] Re: Question [WORKS NOW!]

2003-11-28 Thread David Brownell
[EMAIL PROTECTED] wrote: Alan Stern wrote: This isn't diretly connected with the speed; it's more a question of how much data can be sent in a single command. Setting max_sectors to 120 limits the driver to sending 60 KB at once (a sector is 512 bytes). It's the only real throughput-restricting c

Re: [linux-usb-devel] Re: Question [WORKS NOW!]

2003-11-28 Thread Alan Stern
On Fri, 28 Nov 2003 [EMAIL PROTECTED] wrote: > Alan Stern wrote: > > Are you sure that _all_ values don't work? I would expect that at least > > 128 would be okay. But no, I can't explain what's going on with your > > device. > > I tried some values down until 140, all of them didn't work. >

Re: [linux-usb-devel] Re: Question [WORKS NOW!]

2003-11-28 Thread kleiner_hampel
Alan Stern wrote: > Are you sure that _all_ values don't work? I would expect that at least > 128 would be okay. But no, I can't explain what's going on with your > device. I tried some values down until 140, all of them didn't work. So i made a jump from 140 to 120 and this value is working n

Re: [linux-usb-devel] Re: Question [WORKS NOW!]

2003-11-27 Thread Alan Stern
On Thu, 27 Nov 2003, Kleiner Hampel wrote: > Alan Stern wrote: > > You will have to manually edit the file drivers/usb/storage/scsiglue.c in > > your kernel source. Around about line 320 in the file you may or may not > > see a line that says > > > > .max_sectors = 240, > > > > I

Re: [linux-usb-devel] Re: Question [WORKS NOW!]

2003-11-27 Thread Kleiner Hampel
Alan Stern wrote: > You will have to manually edit the file drivers/usb/storage/scsiglue.c in > your kernel source. Around about line 320 in the file you may or may not > see a line that says > > .max_sectors = 240, > > If it's there, try changing the 240 to 120. If it's not th

Re: [linux-usb-devel] Re: Question

2003-11-27 Thread Alan Stern
On Thu, 27 Nov 2003 [EMAIL PROTECTED] wrote: > Would it help you knowing, that i tested an other usb 2.0 hard disk > enclosure, that did work with kernel 2.6? > But again, both work good with kernel 2.4.22. It doesn't surprise me. There is only a small number of devices that work with 2.4.22 an

Re: [linux-usb-devel] Re: Question

2003-11-27 Thread kleiner_hampel
Alan Stern wrote: > Looking through the dmesg output isn't as useful as I had hoped. There > are other differences between 2.4 and 2.6 that obscure the problem we're > trying to solve. > > Don't be too surprised that something works under 2.4 and fails under 2.6! > > There have been a lot of

Re: [linux-usb-devel] Re: Question

2003-11-26 Thread Alan Stern
On Wed, 26 Nov 2003, Kleiner Hampel wrote: > Am Mit, den 26.11.2003 schrieb Alan Stern um 16:28: > > Interesting. It shows everything working at first, and then the device > > fails at the first large (>64 KB) read. > > > > Is this using the EHCI driver (is it a high-speed connection)? I've se

Re: [linux-usb-devel] Re: Question

2003-11-26 Thread Kleiner Hampel
Am Mit, den 26.11.2003 schrieb Alan Stern um 16:28: > Interesting. It shows everything working at first, and then the device > fails at the first large (>64 KB) read. > > Is this using the EHCI driver (is it a high-speed connection)? I've seen > problems similar to yours on systems where the E

[linux-usb-devel] Re: Question

2003-11-26 Thread Alan Stern
On Wed, 26 Nov 2003, Kleiner Hampel wrote: > Hello, > > do you have any idea, how can i solve the usb 2.0 storage problem? > I send you the dmesg output few days ago. > > regards, > hampel Sorry, I must have missed it. Interesting. It shows everything working at first, and then the device fa

Re: [linux-usb-devel] Re: question on 64bit DMA

2003-06-23 Thread David Brownell
what needs to be included to get 64bit DMA? For a USB network driver, set NETIF_F_HIGHDMA. Well, I should be more specific. What needs to be #include find /usr/src/linux/include -name '*.h' |xargs grep NETIF_F_HIGHDMA --- This SF.Net email i

Re: [linux-usb-devel] Re: question on 64bit DMA

2003-06-22 Thread Oliver Neukum
Am Montag, 23. Juni 2003 07:22 schrieb David Brownell: > Oliver Neukum wrote: > > what needs to be included to get 64bit DMA? > > For a USB network driver, set NETIF_F_HIGHDMA. Well, I should be more specific. What needs to be #include Regards Oliver --

[linux-usb-devel] Re: question on 64bit DMA

2003-06-22 Thread David Brownell
Oliver Neukum wrote: what needs to be included to get 64bit DMA? For a USB network driver, set NETIF_F_HIGHDMA. - Dave --- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer

[linux-usb-devel] Re: question on storage_probe()

2003-03-30 Thread Matthew Dharm
Well, I haven't tested it with 2.5... I'm sure someone has, tho. It is necessary to set the configuration to 1 on some devices. I haven't seen a device that falls into this category with multiple interfaces. Matt On Sun, Mar 30, 2003 at 02:53:59AM +0100, Oliver Neukum wrote: > Hi, > > is the f

[linux-usb-devel] Re: question on ehci-hcd.c::ehci_urb_dequeue()

2003-01-18 Thread David Brownell
Hi, But you don't check for asynchronousity, you check for in_interrupt(). Got patch? :) Not the complicated patch you prefer. I don't know enough about ehci yet. I'd likely kill the driver. That's a one-liner. I think it won't actually affect much, but its clearly wrong and should get f

[linux-usb-devel] Re: question on ehci-hcd.c::ehci_urb_dequeue()

2003-01-18 Thread Oliver Neukum
Am Samstag, 18. Januar 2003 02:59 schrieb David Brownell: > Oliver Neukum wrote: > > Am Samstag, 18. Januar 2003 02:00 schrieb David Brownell: > >>Oliver Neukum wrote: > >>>Hi, > >>> > >>>regarding this piece of code: > >>> spin_lock_irqsave (&ehci->lock, flags); > >>> ... > >>> > >>>Does this

[linux-usb-devel] Re: question on ehci-hcd.c::ehci_urb_dequeue()

2003-01-18 Thread David Brownell
Oliver Neukum wrote: Am Samstag, 18. Januar 2003 02:00 schrieb David Brownell: Oliver Neukum wrote: Hi, regarding this piece of code: spin_lock_irqsave (&ehci->lock, flags); ... Does this mean that any call to usb_unlink_urb() for an URB on EHCI with a spinlock held will fail? No, but a

[linux-usb-devel] Re: question on ehci-hcd.c::ehci_urb_dequeue()

2003-01-17 Thread Oliver Neukum
Am Samstag, 18. Januar 2003 02:00 schrieb David Brownell: > Oliver Neukum wrote: > > Hi, > > > > regarding this piece of code: > > spin_lock_irqsave (&ehci->lock, flags); > > ... > > > > Does this mean that any call to usb_unlink_urb() for an URB on EHCI > > with a spinlock held will fail?

[linux-usb-devel] Re: question on ehci-hcd.c::ehci_urb_dequeue()

2003-01-17 Thread David Brownell
Oliver Neukum wrote: Hi, regarding this piece of code: spin_lock_irqsave (&ehci->lock, flags); ... Does this mean that any call to usb_unlink_urb() for an URB on EHCI with a spinlock held will fail? No, but a _synchronous_ one might need to wait_ms(1) for the relevant hardware resource to be

[linux-usb-devel] Re: question on TD allocation in ohci-hcd.c

2002-07-18 Thread David Brownell
Oliver Neukum wrote: > Am Donnerstag, 18. Juli 2002 23:45 schrieben Sie: > >>>is there a deeper reason for the TDs being allocated under a spinlock? >> >>The presence of an annoying hashtable needed for bus_to_virt() >>style mappings. Minimally, stuffing the hashbuckets needs to >>be reentrant,

[linux-usb-devel] Re: question on TD allocation in ohci-hcd.c

2002-07-18 Thread Oliver Neukum
Am Donnerstag, 18. Juli 2002 23:45 schrieben Sie: > > is there a deeper reason for the TDs being allocated under a spinlock? > > The presence of an annoying hashtable needed for bus_to_virt() > style mappings. Minimally, stuffing the hashbuckets needs to > be reentrant, and that's done as part of

[linux-usb-devel] Re: question on TD allocation in ohci-hcd.c

2002-07-18 Thread David Brownell
> is there a deeper reason for the TDs being allocated under a spinlock? The presence of an annoying hashtable needed for bus_to_virt() style mappings. Minimally, stuffing the hashbuckets needs to be reentrant, and that's done as part of allocation. After my next set of OHCI patches I hope to p

Re: [linux-usb-devel] Re: Question about HIDs that aren't really

2002-05-30 Thread Brad Hards
On Fri, 31 May 2002 04:53, [EMAIL PROTECTED] wrote: > Quoting Brad Hards <[EMAIL PROTECTED]>: > > Nope - hiddev > > See http://www.frogmouth.net/hid-doco/linux-hid.html for incomplete > > description. I'll update it over the weekend to the version I have here, > > Thanks, I can talk to the device

Re: [linux-usb-devel] Re: Question about HIDs that aren't really

2002-05-30 Thread Dan Streetman
On Thu, 30 May 2002 [EMAIL PROTECTED] wrote: >do I need to blacklist my device in the hid driver to prevent it from >being grabbed? If you are using usbfs/usbdevfs, use the new DISCONNECT ioctl to remove HID from the interface you want. If you're not using usbfs/usbdevfs (i.e. using HID/hiddev

[linux-usb-devel] Re: Question about HIDs that aren't really

2002-05-30 Thread steve
Quoting Brad Hards <[EMAIL PROTECTED]>: > Nope - hiddev > See http://www.frogmouth.net/hid-doco/linux-hid.html for incomplete > description. I'll update it over the weekend to the version I have here, Thanks, I can talk to the device and issue ioctls now, and I'm figuring out how to send and rec

[linux-usb-devel] Re: Question on the usbserial driver

2002-05-01 Thread Greg KH
On Wed, May 01, 2002 at 11:57:40AM -0700, Abhijeet Bisain wrote: > Hi Greg, > > Thanks for the quick reply. > > I am using the generic usbserial driver. I do a modprobe usbserial to > invoke and lsmod lists it as usbserial. The driver on windows is a custom > driver and not a generic one. A

[linux-usb-devel] Re: Question on the usbserial driver

2002-05-01 Thread Abhijeet Bisain
Hi Greg, Thanks for the quick reply. I am using the generic usbserial driver. I do a modprobe usbserial to invoke and lsmod lists it as usbserial. The driver on windows is a custom driver and not a generic one. What are some of the other drivers tuned for throughput? Do you have any suggesti

[linux-usb-devel] Re: Question on the usbserial driver

2002-05-01 Thread Greg KH
On Wed, May 01, 2002 at 11:11:21AM -0700, Abhijeet Bisain wrote: > Hi, > >I am trying to use the usbserial driver with a wireless modem. The >driver tetects the device fine and I can setup ppp over the ttys in > /dev/usb/tts directory. But my only issue is the throughput I get u

[linux-usb-devel] Re: Question on the usbserial driver

2002-05-01 Thread Greg KH
On Wed, May 01, 2002 at 11:11:21AM -0700, Abhijeet Bisain wrote: > Hi, > >I am trying to use the usbserial driver with a wireless modem. First off, which usbserial driver for which modem? The "generic" driver, or another one? > The >driver tetects the device fine and I can set